 |
/usr/foto/forward/ [deleted] says:
I don't have this problem with wordpress 2.9.2
Haven't used it with wordpress 3
Posted 20 months ago.
(permalink)
|
|
I recently dealt with this issue myself.
I found a workaround, that works for me, but may or may not mess up your theme.
In class-public.php, I added the is_search line to parse_query:
function parse_query(&$query) {
$query->is_404 = false;
$query->did_permalink = false;
$query->is_search = true;
}
If your theme does something different if you're on a search page, this may mess things up, but it seems to work for me, until the bug is properly fixed.
Posted 20 months ago.
(permalink)
|
|
I have had a similar problem with WP3.0.1, Infimum theme and the photo album plugin 1.1.
This issue has kept me awake for the last couple of weeks. Now with Geoff's solution, everything's OK!
Thank you very much Geoff.
Cheeres!!
Posted 19 months ago.
(permalink)
|
|
I am having the same problem on my site. Running WP3.0.1, Revolution Magazine theme and the photo album plugin 1.1. Geoff's solution fixed the 404 error problem, but made my main navigation disappear.
www.barossadirt.com/image-gallery/album/72157625237179223...
Any help would be greatly appreciated.
Posted 19 months ago.
(permalink)
|
|
Would love to use this plugin - I'm getting 404 errors when clicking on a thumbnail - I've edited the class-public.php as above and still have the 404 error.
Any ideas?
Page here;
www.ponky.eu/?page_id=193
Ta
JOhn
Posted 19 months ago.
(permalink)
|
|
After a couple an hour of searching for the correct solution I gave up. The 404 page codes problem lies in the fact that the (TanTan) Flickr Photo Album does not set up any Wordpress rewrites and therefore Wordpress interprets it as a normal page, which of course does not exist with that exact name and therefore it sets a 404 error code, but later on the plugin hijacks the output and does it's thing. Then some web servers and browsers show their own error page if they see a 404 error code (eg. Nginx with fastcgi_intercept_errors on;).
The correct solution would be to register correct rewrite rules, so that it doesn't get interpreted as a page or not even at all, but as a photo album.
After giving up on the correct solution I made a simple hack for hack for fixing 404 page codes for photo galleries, that forces the flushing of headers before 404 code is set and therefore it can not be set later. The patch can be found on:
gw.tnode.com/0275-WordPress/
Hm, Geoff's workaround should also work for simple themes.
Posted 18 months ago.
(permalink)
|
|
Still not working unfortunately
Posted 18 months ago.
(permalink)
|
|
Thank you very much for your patch gw.ucilnicavnaravi, works great with my WP.
Posted 17 months ago.
(permalink)
|
|
Hi gw.ucilnicavnaravi,
I've never patched wordpress before. Where would I need to put this hack?
Cheers.
Dave.
Posted 17 months ago.
(permalink)
|
|
anyone?
Posted 17 months ago.
(permalink)
|
|
I am getting this error too, have tried the patch created by gw.ucilnicavnaravi but that didn't fix it for me. I also tried modifying class-public.php and still no luck.
I change themes in WP and the 404 in IE goes away! It must be something to do with the theme used?? Try using the Twenty Ten 1.1 Wordpress Team theme and see if it works for you. It did for me, same page that gave me 404 before now works. It varies from theme to theme though on if it works or not.
Still hoping to find a fix though, not the theme I want to use.
Posted 16 months ago.
(permalink)
|
|
Those 404's can lead to a lot of trouble, beware!
trick77.com/2011/02/27/google-reader-not-refreshing-feed-...
Posted 15 months ago.
(permalink)
|
|
Thanks gw.ucilnicavnaravi :) that partly worked.
The is_404() flag was still being set though causing the page title to '404'. Looking through the plugin code this should be turned off by parse_query in class_public.php but it's being turned on again somewhere afterwards.
the only effective place I could find to turn it off was in photoalbum-index.php with:
global $wp_query;
$wp_query->is_404 = false;
get_header();
Posted 14 months ago.
(permalink)
|
|
That last fix worked for us too. Thanks.
Posted 12 months ago.
(permalink)
|
Would you like to comment?
Sign up for a free account, or sign in (if you're already a member).
|