Image url show error 404 after upload
I install UNACMS successfully and have been working on setting it up. However, when I tried uploading images, it will upload successfully but will not show on the site. I have searched this site for solutions but none seems to work in my case.
Below is the error log in sys_transcoder.log
Apr 24 14:08:20 [3] /image_transcoder.php?o=bx_persons_thumb&h=1&dpx=1&t=1713967700 [bx_persons_thumb] ERROR: applyFilter_Resize failed for file (/www/wwwroot/www . schooloaded. org/tmp/57491Schooloaded Badge.jpg): Unsupported image type text/html. GD driver is only able to decode JPG, PNG, GIF, BMP or WebP files.
Apr 24 14:11:12 [3] /image_transcoder.php?o=bx_persons_icon&h=2&dpx=1&t=1713967871 [bx_persons_icon] ERROR: applyFilter_Resize failed for file (/www/wwwroot/www . schooloaded . org/tmp/12322Schooloaded Badge.jpg): Unsupported image type text/html. GD driver is only able to decode JPG, PNG, GIF, BMP or WebP files.
Apr 24 14:11:12 [3] /image_transcoder.php?o=bx_persons_avatar_big&h=2&dpx=1&t=1713967871 [bx_persons_avatar_big] ERROR: applyFilter_Resize failed for file (/www/wwwroot/www . schooloaded . org/tmp/58412Schooloaded Badge.jpg): Unsupported image type text/html. GD driver is only able to decode JPG, PNG, GIF, BMP or WebP files.
Apr 24 14:11:12 [3] /image_transcoder.php?o=bx_persons_picture&h=2&dpx=1&t=1713967871 [bx_persons_picture] ERROR: applyFilter_Resize failed for file (/www/wwwroot/www . schooloaded . org/tmp/22678Schooloaded Badge.jpg): Unsupported image type text/html. GD driver is only able to decode JPG, PNG, GIF, BMP or WebP files.
-
-
·
LeonidS
- ·
Hello @Jmobile !
You may apply that solution:
https://unacms.com/cmts-view/z9tfe0?sys=bx_forum&cmt_id=43244
-
·
LeonidS
-
- · Jmobile
-
·
In reply to LeonidS
- ·
I have applied that solution and it's still showing the same error. Below is the content on the /etc/hosts file
# Your system has configured 'manage_etc_hosts' as True. # As a result, if you wish for changes to this file to persist # then you will need to either # a.) make changes to the master file in /etc/cloud/templates/hosts.debian. tmpl # b.) change or remove the value of 'manage_etc_hosts' in # /etc/cloud/cloud.cfg or cloud-config from user-data # 127.0.1.1 my dot schooloaded dot com my 127.0.0.1 localhost 127.0.0.1 blog dot schooloaded dot com 127.0.0.1 schooloaded dot org 127.0.0.1 elgold dot schooloaded dot org 127.0.0.1 www dot schooloaded dot org # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters
-
-
·
Alex T⚜️
- ·
@Jmobile you had incorrect Nginx configuration, the following block was commented out to make it work:
If you still need to specify expires header for static files then I suggest the following Nginx config block instead:
location ~* ^(/cache_public/|/plugins_public/|/modules/|/studio/|/template/).+\.(jpg|jpeg|gif|css|png|js|ico|svg|eot|ttf|woff)$ { expires 12M; access_log /dev/null; error_log /dev/null; }
-
·
Alex T⚜️
-
- · Jmobile
- ·
Thanks alot, it's working now.