tantannoodles.com WordPress Flickr Plugins / Discuss

Current Discussion

Flickr Photo Album and Jquery Cycle
Latest: 6 days ago
Disqus issue
Latest: 7 days ago
lightbox 800pix size
Latest: 2 months ago
Photo Stream Empty
Latest: 2 months ago
It does not show my albums
Latest: 2 months ago
Photos no longer showing..
Latest: 2 months ago
WP 3.3 Breaks The Plugin (apparently)
Latest: 3 months ago
Using Lightbox with the Flickr Photo Album Plugin
Latest: 3 months ago
No sufficient permission
Latest: 4 months ago
Insert albums into a page
Latest: 4 months ago
Using Tantannoodles plugin with Thesis theme
Latest: 5 months ago
Can't activate plugin
Latest: 5 months ago
More...

Search this group's discussions

404 Issue is back again

view profile

g1r2e3g says:

Hi everyone.

I have an issue where every photo page generated gives a 404 in the header. IE shows a generic 404 page but all other browsers will still show the content, but with Not Found in the title bar.

Going by searching 404 in these forums it seems this was a common issue in the year 2006 but not since. However it seems im not the only one experiencing this issue.

Based on discussion in2006 I have:
1: created a page with the same slug as the plugin creates
2: am not using the default permalinks

Both which have made no difference.

Wordpress: 3.0.1
Flickr Photo Album: 1.1

It's also worth noting I am hosted on Linux, not IIS.

This pluin really is awesome and ticks every requirement for me but this 404 issue is a real buzz kill. Thanks in advance to anyone who might be able to solve this issue.

Cheers!
Posted at 3:16PM, 30 September 2010 PDT (permalink)

/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)

view photostream

Geoff Holden says:

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)

view photostream

jeaganlee says:

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)

view photostream

Barossa Dirt  Pro User  says:

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)

view photostream

foistclub  Pro User  says:

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)

view photostream

gw.ucilnicavnaravi says:

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)

view photostream

foistclub  Pro User  says:

Still not working unfortunately
Posted 18 months ago. (permalink)

view photostream

Julien Menichini  Pro User  says:

Thank you very much for your patch gw.ucilnicavnaravi, works great with my WP.
Posted 17 months ago. (permalink)

view photostream

Rex Dog Hotel + Spa  Pro User  says:

Hi gw.ucilnicavnaravi,
I've never patched wordpress before. Where would I need to put this hack?
Cheers.
Dave.
Posted 17 months ago. (permalink)

view photostream

Rex Dog Hotel + Spa  Pro User  says:

anyone?
Posted 17 months ago. (permalink)

view photostream

linuxrick  Pro User  says:

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)

view photostream

trick77 says:

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)

view photostream

tdhooper says:

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)

view photostream

The Nancy Blackett Trust  Pro User  says:

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).

RSS 2.0 feedSubscribe to a feed of stuff on this page...</!!> Feed – Subscribe to tantannoodles.com WordPress Flickr Plugins discussion threads