Technoblog

concerning latter-day magic

   Jan 07

[Solved] WordPress Gallery Attachment Page is 404 not found

Keywords:  GavickPro portfolio “This is somewhat embarrassing, isn’t it?” Administrator logged in logged out cookies

If you are in a hurry, skip down to the paragraph that begins SOLUTION:

I spent hours yesterday reading post after post of people who had spent hours reading post after post around this topic: You have a gallery, looks good, works well, but when you log out of WordPress, or tell your friend to try your gallery, the image doesn’t come up, only “This is somewhat embarrassing, isn’t it?” 404 page, if you use the GavickPro Portfolio theme.  In a different theme, the browser-based message said that the page was not navigable, and it might have something to do with cookies.

So I Google around, trying to find the correct combination of keywords.  I found A LOT of people asking the question.  Here’s what people are responding:  You don’t have this configured right, or that configured right.  .htaccess is wrong.  You have the wrong permalinks  You have a couple of lines of PHP that need to be written.  But the person who asked the question comes back and says, “Sorry, that didn’t fix it.”

But not most of the time. Most of the time, the question is asked, and then the topic is closed.

In my case, I got the failure condition in two dissimilar photography-centric themes, so it seemed not to be related to the theme.  I looked at the various folder permissions on the server and there did not seem to be any issues there.  While a lot of people are having the problem, it is clear that not EVERYONE is having the problem, otherwise the product would not offer the capability.  So what does that leave?

1) You are not using the product as intended, and/or 2) there is something the matter with the input. Once you convince yourself that you are in fact using the product as intended, that only leaves the input.

I have a big-boy camera and it takes huge (over 5 MB) .jpg files.  I was in a hurry to see my new gallery, so I simply uploaded a few pix at my fingertips, and made up a test page.  It was at this point that I discovered the error condition.

I knew I would be using smaller files on the website in production, but the idea that my input was bad and the error message was wrong only occurred to me after I had lost all that time Googling (and trying a couple of configuration and php fixes).

SOLUTION: Your photos are too big.  The file is there, but the program is coughing on the size of it, and giving you an incorrect diagnosis or error condition.  Reduce the size of the photos to, oh, less than 1MB, and enjoy your gallery.

I do not care enought about the innards of WordPress to go fishing for the offending code.  It is not at all clear to me how the file can be found and yet given the attribution in code that it doesn’t exist.  Maybe a really fast load timer times out.

The whole Search Engine and Help Forum behavior is also a problem, but that’s another post in a different blog.

 

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

9 Comments

  1. girl k says:

    PENTAX : Welcome to the PENTAX Photo Gallery

  2. You did so much job with this blog! Thanks a lot for sharing so many interesting posts every day.

  3. Greetings! I am impressed by the solution of this problem. I though that this issue is not even doable, but you made me to change my mind!

  4. you raised a very interesting question. because the site is really good but it lacks skillful optimization

  5. oceano says:

    BIBLIOGRAPHY – Roy Lichtenstein Foundation

  6. Adam Muiz says:

    Actually i got this affter insert a script in Function php

  7. Thanx For Sharing Such Useful Post Keep It Up :)

  8. Hi Buddy, Your Blog’ S Design Is Simple And Clean And I Like It. Your Blog Posts About Online Writing Help Are Superb. Please Keep Them Coming. Greets!

  9. imgrum says:

    Thank you! I hope to hear more updates from you, it’s very interesting to know more about this.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>