Page 1 of 1
Unable to display images or attachments for the problem
Posted: 01 Feb 2022, 04:00
by duongnvm
Hello everyone,
I upgrade from version 1.2.18 to version 2.25.2.
After the upgrade, an error appeared that the attached image for the problem (stored in the database) could not be displayed, nor could the image attached for the new issue be attached.
Thanks everyone for the help!
Re: Unable to display images or attachments for the problem
Posted: 01 Feb 2022, 04:12
by duongnvm
Even deploying new version 2.25.2 (initial blank) still does not attach files
Re: Unable to display images or attachments for the problem
Posted: 01 Feb 2022, 12:20
by cas
did you check the php error log?
Also you can add the following line to core/config_inc.php:
$g_show_detailed_errors = ON;
This will provide a better error message.
Re: Unable to display images or attachments for the problem
Posted: 08 Feb 2022, 01:40
by duongnvm
Sorry, I've been away for a while (personal work).
After I further configure $g_show_detailed_errors = ON;
The detailed information is as follows (Figure).
I don't know how to adjust this!
Help me! Thank you very much!
Re: Unable to display images or attachments for the problem
Posted: 08 Feb 2022, 07:21
by cas
within your php installation is the finfo module missing.
See here (as an example):
https://community.xibo.org.uk/t/how-do- ... -in-php/78
Re: Unable to display images or attachments for the problem
Posted: 08 Feb 2022, 08:09
by duongnvm
Thanks.
I'm trying to figure out how to fix it.
Re: Unable to display images or attachments for the problem
Posted: 08 Feb 2022, 08:17
by duongnvm
My system is running:
The AppServ Open Project - 9.3.0 for Windows
Now you running on PHP 7.3.10
Re: Unable to display images or attachments for the problem
Posted: 08 Feb 2022, 08:21
by cas
did you check php.ini and is the fileinfo.dll available on your system?
Re: Unable to display images or attachments for the problem
Posted: 08 Feb 2022, 20:14
by atrol
As recommended in Admin Guide, run also admin/check/index.php
I assume you will get a message that PHP fileinfo extension is not installed and maybe some more errors and warnings you shuold fix.
Re: Unable to display images or attachments for the problem
Posted: 09 Feb 2022, 07:15
by duongnvm
Thanks cas and atrol.
I have opened the fileinfo library in the php.ini file and have performed the operation on the file.
PS: Why does the php.ini configuration show the extension=fileinfo command, unlike the extension=php_fileinfo.dll instruction?