Viewing 10 replies - 1 through 10 (of 10 total)
  • did u check if the permalink structure has changed ?

    Thread Starter deuts

    (@deuts)

    Yup. And that is exactly how they appear in the file structure inside my wordpress installation directory.

    There must be a reason helpers always tell you don’t use those automatic gizmos.

    So, if you look at your server via FTP, are the images still there in the proper folders?

    Thread Starter deuts

    (@deuts)

    Yeah, they are there intact. It’s only that they are not viewable directly via web browser. They return a 404.

    Also in the media files under the “Manage” Section, the files are there but no small thumbnails. Note: these are images uploaded even before the upgrade.

    Permissions on those folders? (just shooting in the dark)
    Changing/resetting permalinks?

    On a second thought:
    This dir has content – https://www.deuts.net/wp-content/uploads/2008/03/
    This one is empty – https://www.deuts.net/wp-content/uploads/2008/09/

    So, now I am wondering WHAT are you seeing there when using FTP?

    Thread Starter deuts

    (@deuts)

    Both directories have jpg files in them, including the /2008/03/ only that the 2008/09/ have no other non-jpeg files. It means it’s returning non-jpg files but not the jpg ones.

    I actually have some leads here. It appears that the wordpress automatic upgrade plugin is the culprit. I’ve just deactivated the plugin and the images inside my stylesheet is not showing up anymore. Will try to reinstall manually and get back to on this issue.

    Thanks for the help.

    Thread Starter deuts

    (@deuts)

    Yup, it was the WPAU that was the culprit (I’m not going to use that plugin ever again). To prove that, here what I did:

    • Disabled the plugin (WPAU) and deleted the folder and other folders and files created by such

      result: same problem

    • Downloaded WP2.6.2 and manually reinstalled in my current installation

      Result: same problem, couldn’t see the images.

    • Went back to the 2.6 back-up i had (before running the WPAU script), switched it to the current directory and run

      Result: Everything seems went fine. I could already see my images. Some files were missing (of course) from my last upload after I upgraded to 2.6.2 by WPAU, so I just had to re-upload them.

      At first, one might think that WordPress 2.6.2 must be the culprit, but watch out for the next step.

    • Now, upgrade manually

      Result: Everything’s fine.

    Scary steps heh. Good thing I had back up copies.

    Thread Starter deuts

    (@deuts)

    Investigating further, I noticed these lines in my .htaccess after the upgrade using the wordpress automatic upgrade plugin:

    RewriteCond %{HTTP_REFERER} !^https://allsubdomains.deuts.net$ [NC]
    RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

    Multiply the first line with the number of domains and subdomains I had in my shared host (change the “allsubdomains”). There were more than 100 lines like that (the first line).

    Somebody please explain what does this mean?

    Thanks.

    That was probably some kind of hotlink-prevention rules… obviously done in the wrong way.
    Good reading:
    https://www.zann-marketing.com/developer/20050713/stop-image-hotlinking-using-htaccess.html

    Thread Starter deuts

    (@deuts)

    Uh-oh. My bad. Please forgive me for pointing fingers, when I should point my finger to me. It was not WordPress 2.6.2’s fault. It was not WPAU’s fault. It was my fault. I enabled the hotlink protection from the control panel the other day. And now my site is in a mess.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Images Not Viewable in WordPress 2.6.2’ is closed to new replies.