 |
Now this is very interesting. I'm having problems with IE displaying a page not found error on all my photo pages. It looks like the plugin (or something else in WordPress) is setting 404 headers.
Posted 44 months ago.
(
permalink
)
|
 |
that's very strange..... what version of wordpress are you using?
Posted 44 months ago.
(
permalink
)
|
 |
I'm running 2.0.2
Posted 44 months ago.
(
permalink
)
|
 |
im running 2.0.2 as well
Posted 44 months ago.
(
permalink
)
|
 |
Joe, your own page is working as desired, a 200 OK header is returned there. But at Howdeepistheocean.com a 404 Not Found is sent as well. Same for okaymountain.comy and stimuli.ca.
Posted 44 months ago.
(
permalink
)
|
 |
hmmm... try this, and see if it helps anything. a bit of a shot in the dark, since i cant seem to duplicate the bug right now...
in the file flickr.php, change the lines to the following...
line 294:
add_action('template_redirect', array(&$this, 'template'), 1);
line 321:
add_action('init', array(&$this, 'init'), 1);
so basically, just add a ", 1" to those lines, right before the last closing round bracket.
Posted 44 months ago.
(
permalink
)
|
 |
tested that, but didn't help. Sorry. :-(
I have just set up a new wordpress installation with everything default and only the photos-plugin installed. And unfortunately it is not working, but it return a 404 Not Found as you can see.
Posted 44 months ago.
(
permalink
)
|
 |
hmmm ok. i will try another approach and let you know.
Posted 44 months ago.
(
permalink
)
|
 |
I think i'm pretty sure what's causing this issue, and it's working properly on my site because I actually created a wordpress "page" with the exact same URL I entered for the photo album.
i'm working on a fix this problem, but in the meantime...
- copy the "view.php" template file to your current theme, and rename it to "photos.php"
- edit this php file and change the include statement to be something like this...
include(dirname(__FILE__).'/../../plugins/silaspartners/flickr/'.$photoTemplate);
OR, just copy all the photoalbum-*.html templates to the same template directory.
- create a wordpress page, and select "Photo Album" in the custom template drop down.
that should fix the 404 problem, for now. next release should have this fixed....
Originally posted 44 months ago.
(
permalink
)
Joe Tan (a group admin) edited this topic 44 months ago.
|
 |
Thank you for the quick fix, by creating a wordpress page with the same title I now fixed the problem. Thank you so much for your quick help. :-)
Posted 44 months ago.
(
permalink
)
|
 |
It fixed the problem for me too. Thanks Joe. Your plugin is excellent!
Posted 44 months ago.
(
permalink
)
|
 |
I did this...but it didn't fix the issue for me. I'm not sure if it is something to do with Wordpress being on Windows Server (IIS6) or not.
When I go to the page that was created using that template I get these errors and can't seem to get them to go away.
Warning: main(D:\inetpub\wwwroot\MrSikhNet2\wp-content\themes\mrsikhnet/): failed to open stream: Permission denied in D:\inetpub\wwwroot\MrSikhNet2\wp-content\themes\mrsikhnet\photos.php on line 26
Warning: main(): Failed opening 'D:\inetpub\wwwroot\MrSikhNet2\wp-content\themes\mrsikhnet/' for inclusion (include_path='.;c:\php4\pear') in D:\inetpub\wwwroot\MrSikhNet2\wp-content\themes\mrsikhnet\photos.php on line 26
Powered by the Flickr Photo Album plugin for WordPress.
Posted 44 months ago.
(
permalink
)
|
 |
MrSikhNet I have the exact same problem. Did you manage to solve that warning message?
Posted 43 months ago.
(
permalink
)
|
 |
@joe: i have been searching for the solution for the 404 problem,but after implementing the solution suggested above, i encountered this warning:
Warning: main(/home/stupidco/public_html/wp-content/themes/hemingway/) [function.main]: failed to open stream: Success in /home/stupidco/public_html/wp-content/themes/hemingway/photos.php on line 35
Warning: main() [function.include]: Failed opening '/home/stupidco/public_html/wp-content/themes/hemingway/' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/stupidco/public_html/wp-content/themes/hemingway/photos.php on line 35
actually i am not very sure about the edit i made on the photos.php
but i find the only include line in there and replaced it with the one you typed above... so which should be alright....
hope someone can help me with this!
www.stupidcomplexities.com/index.php/flickr-gallery/
Originally posted 41 months ago.
(
permalink
)
La Jace edited this topic 41 months ago.
|
 |
people, any idea how this problem could be fixed?
Originally posted 41 months ago.
(
permalink
)
La Jace edited this topic 41 months ago.
|
 |
Hmm... You are using the Hemingway theme. I think you have set the albums URL to:
yoursite.com/index.php/youralbums/
Try changing that setting to:
yoursite.com/youralbums/
I'm also using Hemingway and I don't need to set the index.php pointer...
Try that and post results!
Cheers,
Sebastian
Posted 41 months ago.
(
permalink
)
|
 |
Sebastian, firstly thank you for your reply. but i am not so sure how to do that. should i change the permalinks structure? or i should change something else?
i tried changing the permastructure to /year/month/day/postname but all of the links got screwed up after it! is this normal? what should i do?
the photo album url in the photo album option i typed was stupidcomplexities.com/fotos/ but it didn't show up, so i adopted joe's solution above.
thanks in advance!
Posted 41 months ago.
(
permalink
)
|
 |
It's strange. By changing the permalinks structure the links should not get screwed up, only reestructurated.
Let's see, step by step.
1) Create a page, with the WP editor, and customize the URL of the page to be the same of the photo album URL. That way, we can get rid of the 404 error. Put the title you want, like "Galleries", but don't write anything, just the title.
2) The permalink structure should be set to another thing than the default, anything. I got it set by number. When I changed the permalink structure, none of my links got messed, they just changed, but everything worked ok. I suspect that there may be a problem with your WP installation if changing the permalink structure messes the links.
3) Go to the photo album options page, check the mark to display it in a custom URL, and set the URL to the same of the page you created in step 1.
With those steps, you should be able to see your photos fine. I got it set that way, also using hemingway, and they display correctly.
Let's check those things, and let's get rid of the 404, and we can go on after that.
Cheers
Sebastian.
Posted 41 months ago.
(
permalink
)
|
 |
Ok, I tried the solution above but the gallery isn't loading. No more 404 though....
is it only compatible with hemingway?
Posted 41 months ago.
(
permalink
)
|
 |
switched themes and gave it a go... no luck, it just displays the title 'Gallery'
so switched back to the old theme:
octographics.net/caloyblog/gallery
Posted 41 months ago.
(
permalink
)
|
Would you like to comment?
Sign up for a free account, or sign in (if you're already a member).
|