[solved] Timthumb + Visual Editor not working

#1
In one of my wordpress theme i have problem with Timthumb + Visual Editor.
If i enable the litespeed, this 2 not working if i turn back in Apache all is fine.
I have also Build Matching PHP Binary, but all is the same, i have also update Timthumb to latest version.
 
Last edited by a moderator:
#3
Thank you for your help to find the problem.
For future reference for people who had that problem, the problem solved with delete of htaccess of the theme (extra htaccess that was in theme directory and had some rules for photos).
 

NiteWave

Administrator
#4
for more detail:

public_html/wp-content/themes/aspiration/.htaccess
<Files *>
Order Allow,Deny
Deny from all
</Files>

<Files ~ "\.(css|js|gif|jpg|png)$">
Order Allow,Deny
Allow from all
</Files>
public_html/wp-content/themes/aspiration/AIT/.htaccess
<Files *>
Order Allow,Deny
Deny from all
</Files>

<Files ~ "\.(css|js|gif|jpg|png|swf)$|ThemeBoxAjax\.php|timthumb\.php|pluginScript\.php|popupWindow\.php">
Order Allow,Deny
Allow from all
</Files>
when access
domain.com/wp-content/themes/aspiration/AIT/Framework/Libs/timthumb/timthumb.php?src=...
will leave a message in error.log(or error_log):
2013-02-22 06:51:02.963 [INFO] [x.x.x.x:27440-0#APVH_domain.com][ACL] Access to context [/wp-content/themes/aspiration/AIT/] is denied!
the result is 403 error in litespeed and ok in apache.

you can delete or empty public_html/wp-content/themes/aspiration/.htaccess
a better workaround would be:
mv public_html/wp-content/themes/aspiration/AIT/.htaccess public_html/wp-content/themes/aspiration/
so for wordpress theme with File, FilesMatch etc control in .htaccess, need adjust a bit.
 
Top