Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

timthumb URL needs to be relative path not document root WordPress

  • SOLVED

I have installed the following wordpress 3 theme:

http://themeforest.net/item/accent-clean-wp-for-business-corporate-portfolio/238300

...and i have uploaded slider images for the main homepage slider, however the images are not loading up because my host doesnt allow http requests to the same server.

Therefore the following URL does not work:

http://www.gravitas-sa.com/wp-content/themes/Design6/timthumb.php?src=http://www.gravitas-sa.com/wp-content/uploads/2011 /11/slide1.jpg&h=300&w=480&zc=1

However the following DOES work:

http://www.gravitas-sa.com/wp-content/themes/Design6/timthumb.php?src=/wp-content/uploads/2011 /11/slide1.jpg&h=300&w=480&zc=1

So i need to know what file to edit and with what code to allow this to happen.

Please let meknow ASAP Thanks

Rakesh

Answers (3)

2011-11-06

Maor Barazany answers:

Have you tried to upgrade TimThumb to its latest version?

You use V.2 and there is v2.8.2 which is almost rewritten from scratch. Try it firsr
t[[LINK href="http://timthumb.googlecode.com/svn/trunk/timthumb.php"]]imthumb[[/LINK]]

2011-11-06

Sébastien | French WordpressDesigner answers:

Just use site_URL() instead of bloginfo('url') in the URL of the resized image
?src=site_url()/wp-content...

2011-11-06

Luis Cordova answers:

check on your themes functions.php and also on the page templates, the code should be somewhere in there, can you please provide info over PM to check since we don't have the code of theme

thanks


Luis Cordova comments:

this is correct

Just use site_URL() instead of bloginfo('url') in the URL of the resized image
?src=site_url()/wp-content...

however he needs to know where to place the file, for that i need access to see some code