I have been beating my head trying to figure out why thumbnails would not show up using Timthumb.
I tried loading the URL of the thumbnail in a browser window (basically the path to the Timthumb script with the image URL and dimensions as arguments) and kept getting 404 errors.
Google searches for Timthumb and 404 sent me down the wrong path of checking permissions etc, so I am posting my solution here in case anyone else gets stuck.
What I noticed is that the YouTube SimpleGallery plugin uses get_bloginfo('url')
to create the URL for the Timthumb script.
In my case this was different from my “WordPress URL” in my dashboard settings. WordPress URL being the base of the WP installation.
So instead of https://mydomain.com/wpress/wp-content/plugins/youtube-simplegallery/scripts/timthumb.php
it was https://mydomain.com/wp-content/plugins/youtube-simplegallery/scripts/timthumb.php
. The difference is so slight that I didn’t catch it, but yup, that would be a 404.
Changing get_bloginfo('url')
to site_url()
in the plugin fixed this for me.