404 Not Found from images generated in WordPress
-
I’m including PHP files into my WordPress site that are generating PNG or JPG images through Jpgraph but for some reason the images will just show up sometimes and otherwise be broken and throw a 404 Not Found.
The images are always there though and in the root folder where I want them to be but some of them can’t even be accessed directly, so mydomain.com/firstimage.jpg, generated from one PHP file, always shows up fine while mydomain.com/secondimage.jpg, generated from another PHP file, just refuses to show up unless I connect through FTP and download the file manually.
What could possibly cause this behaviour? Is it something with the headers not always being written properly?
The only difference from what I can tell is the location from where the image file is generated. I’ve gone through the code and .htaccess and so on and I’m really puzzled about this now.
- The topic ‘404 Not Found from images generated in WordPress’ is closed to new replies.