Permission denied in timthumb.php


#1

Somebody can help me pls???

In post with image do not see the image :frowning:
http://unnico.it/post-blog/

I copied the url image and paste it in a browser but back an error
http://unnico.it/wp-content/themes/londoncreative/scripts/timthumb.php?src=http://unnico.it/wp-content/uploads/2010/10/bella.jpg&w=560&zc=1&h=170

ERROR
Warning: touch() [function.touch]: Unable to create file ./cache/e5a8d8fa1a241a29f6d779f14b2ec822.png because Permission denied in /var/www/vhosts/unnico.it/httpdocs/wp-content/themes/londoncreative/scripts/timthumb.php on line 236

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/unnico.it/httpdocs/wp-content/themes/londoncreative/scripts/timthumb.php:236) in /var/www/vhosts/unnico.it/httpdocs/wp-content/themes/londoncreative/scripts/timthumb.php on line 246

thank you grazie assai :slight_smile:


#2
Somebody can help me pls???

In post with image do not see the image :frowning:
http://unnico.it/post-blog/

I copied the url image and paste it in a browser but back an error
http://unnico.it/wp-content/themes/londoncreative/scripts/timthumb.php?src=http://unnico.it/wp-content/uploads/2010/10/bella.jpg&w=560&zc=1&h=170

ERROR
Warning: touch() [function.touch]: Unable to create file ./cache/e5a8d8fa1a241a29f6d779f14b2ec822.png because Permission denied in /var/www/vhosts/unnico.it/httpdocs/wp-content/themes/londoncreative/scripts/timthumb.php on line 236

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/unnico.it/httpdocs/wp-content/themes/londoncreative/scripts/timthumb.php:236) in /var/www/vhosts/unnico.it/httpdocs/wp-content/themes/londoncreative/scripts/timthumb.php on line 246

thank you grazie assai :slight_smile:

did you contact the author in the comments section of the theme? where you bought it.... first problem is a set permission for cache folder to 777 or if it dose not exist create it... second problem is with white spaces in the timthumb plugin... remove them on the 246 and 236 lines

#3

You most likely need to change the permissions of the scripts and cache folders so that the server can create files and directories. The best way to do this is to change the owner of the file to the server user (for example, I know on an Ubuntu server the user name is www-data).

Or you can change the permissions to 777 as it suggests on the official timthumb page: http://www.darrenhoyt.com/2008/04/02/timthumb-php-script-released/

There are most likely directions included in the London Creative theme on how to do this as well. If you’re using ssh, the commands chmod and chown will come in handy. You can also change the file permissions through an FTP client like FileZilla.

Most likely the header error is occurring because the permission error is being printed before the headers are sent, so resolving the former will hopefully resolve the latter as well.

Hope that helps


#4
You most likely need to change the permissions of the scripts folder so that the server can create files and directories. The best way to do this is to change the owner of the file to the server user (for example, I know on an Ubuntu server the user name is www-data.

Or you can change the permissions to 777 as it suggests on the official timthumb page: http://www.darrenhoyt.com/2008/04/02/timthumb-php-script-released/

There are most likely directions included in the London Creative theme on how to do this as well. If you’re using ssh, the commands chmod and chown will come in handy. You can also change the file permissions through an FTP client like FileZilla.

Most likely the header error is occurring only because the permission error is being printed before the headers, so resolved the former will hopefully resolve the latter as well.

Hope that helps

i know that the header started error can be from white spaces to… got it a couple of times :))


#5
i know that the header started error can be from white spaces to... got it a couple of times :))

Good to know! Thanks for the heads up :slight_smile:


#6
i know that the header started error can be from white spaces to... got it a couple of times :))

Good to know! Thanks for the heads up :slight_smile:

it is only a warning but hey… better safe than sorry


#7
Somebody can help me pls???

In post with image do not see the image :frowning:
http://unnico.it/post-blog/

I copied the url image and paste it in a browser but back an error
http://unnico.it/wp-content/themes/londoncreative/scripts/timthumb.php?src=http://unnico.it/wp-content/uploads/2010/10/bella.jpg&w=560&zc=1&h=170

ERROR
Warning: touch() [function.touch]: Unable to create file ./cache/e5a8d8fa1a241a29f6d779f14b2ec822.png because Permission denied in /var/www/vhosts/unnico.it/httpdocs/wp-content/themes/londoncreative/scripts/timthumb.php on line 236

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/unnico.it/httpdocs/wp-content/themes/londoncreative/scripts/timthumb.php:236) in /var/www/vhosts/unnico.it/httpdocs/wp-content/themes/londoncreative/scripts/timthumb.php on line 246

thank you grazie assai :slight_smile:

did you contact the author in the comments section of the theme? where you bought it.... first problem is a set permission for cache folder to 777 or if it dose not exist create it... second problem is with white spaces in the timthumb plugin... remove them on the 246 and 236 lines

Hi duotive, thank you vary much, now it works :slight_smile:

I bought the london creative theme in theme forest

i can go to sleep more web quite :wink:

bye bye ciao
Alessandra