Unable to display images or attachments for the problem

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
duongnvm
Posts: 35
Joined: 19 May 2010, 07:26

Unable to display images or attachments for the problem

Post 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!
Attachments
Attachments cannot be displayed
Attachments cannot be displayed
File.png (25.76 KiB) Viewed 6254 times
duongnvm
Posts: 35
Joined: 19 May 2010, 07:26

Re: Unable to display images or attachments for the problem

Post by duongnvm »

Even deploying new version 2.25.2 (initial blank) still does not attach files
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: Unable to display images or attachments for the problem

Post 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.
duongnvm
Posts: 35
Joined: 19 May 2010, 07:26

Re: Unable to display images or attachments for the problem

Post 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!
Attachments
Class 'finfo' not found
Class 'finfo' not found
2022-02-08_083326.png (73.75 KiB) Viewed 6062 times
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: Unable to display images or attachments for the problem

Post 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
duongnvm
Posts: 35
Joined: 19 May 2010, 07:26

Re: Unable to display images or attachments for the problem

Post by duongnvm »

Thanks.
I'm trying to figure out how to fix it.
duongnvm
Posts: 35
Joined: 19 May 2010, 07:26

Re: Unable to display images or attachments for the problem

Post by duongnvm »

cas wrote: 08 Feb 2022, 07:21 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
My system is running:
The AppServ Open Project - 9.3.0 for Windows
Now you running on PHP 7.3.10
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: Unable to display images or attachments for the problem

Post by cas »

did you check php.ini and is the fileinfo.dll available on your system?
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Unable to display images or attachments for the problem

Post 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.
Please use Search before posting and read the Manual
duongnvm
Posts: 35
Joined: 19 May 2010, 07:26

Re: Unable to display images or attachments for the problem

Post 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?
Attachments
2022-02-09_100810.png
2022-02-09_100810.png (9.7 KiB) Viewed 5992 times
Post Reply