What's New
Viewing 15 posts - 1 through 15 (of 15 total)
Viewing 15 posts - 1 through 15 (of 15 total)
You must be logged in to reply to this topic.
Hi,
I tried it but no change for the module Stickers block, image are not uploaded 🙁
For Blog module, after thumbnails regenerating, images are displaying on front.
But when I try to add a cover image, the debug mode displays :
ExceptionLogs 2Stack Trace
Exception
in modules/stblog/classes/phpthumb/ThumbBase.inc.php (line 193)
protected function triggerError ($errorMessage) { $this->hasError = true; $this->errorMessage = $errorMessage; throw new Exception ($errorMessage); } /** * Calls plugin / imported functions
Thanks for your help
ok thanks for your reply and I understand it. But it’s curious that it’s not for all upload folders, just a few of them. For example blog module : error 500 when I save a new post with a cover image. But if I launch image regenerating, the picture is displayed. So it was correctly uploaded.
The error message is about the img/tmp image. In this folder, I found file with the same name as the error message but it have no type (.jpg). For example PS4OFvLZ and not PS4OFvLZ.jpg. And the permission is 600
I think it’s only for blog module and ststicker module in upload folder.
Are them the only modules who need to load first images in img/tmp folder ?
I think I just found the reason : in img folder there is a .htaccess file. After to have renamed it in _htaccess, the upload image for the blog is ok.
The content is
<IfModule mod_php5.c>
php_flag engine off
</IfModule>
# Apache 2.2
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
<Files ~ “(?i)^.*\.(jpg|jpeg|gif|png|bmp|tiff|svg|pdf|mov|mpeg|mp4|avi|mpg|wma|flv|webm|ico)$”>
Allow from all
</Files>
</IfModule>
# Apache 2.4
<IfModule mod_authz_core.c>
Require all denied
<Files ~ “(?i)^.*\.(jpg|jpeg|gif|png|bmp|tiff|svg|pdf|mov|mpeg|mp4|avi|mpg|wma|flv|webm|ico)$”>
Require all granted
</Files>
</IfModule>
How can I change it ?
Thanks a lot !
Hi,
Please replace the /upload/.htaccess file with my attached one.
Best regards.
You must be logged in to reply to this topic.