You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When exporting users, log shows the following warning:
PHP Warning: finfo_open(/etc/magic.mime): failed to
open stream: No such file or directory in /var/www/html/lib/pkp/classes/core/PKPString.inc.php on line 318, referer: http://ada.uab.cat:811
7/languesparole/management/importexport/plugin/UserImportExportPlugin
A preliminary search points that libmime is missing but installing it via "file" package ("apk add --no-cache file") makes no real difference.
When running "file -version" I got the path of the magic file (not magic.mime but I suspect will do the job) and it's /usr/share/misc/magic.
A possible solution would be change the dockerfile to add "file" and link "/etc/magic.mime" to "/usr/share/misc/magic" but I'm not sure about side effects.
I'm not sure if this only happens with 3.2.1-4 over php 7.3 or is a general issue.
In short: although this is just a warning and I can see any real impact in the application functionality... more research is required.
The text was updated successfully, but these errors were encountered:
Looks like apache includes a mime file.
Linking /etc one to apache fixes the issue:
$ ln -s /etc/apache2/magic /etc/magic.mime
Anyway, as far as we are going to move from alpine to debian-slim it won't be required anymore.
marcbria
added
outdated
The issue refers to old versions and won't be fixed.
bug
Something isn't working
and removed
outdated
The issue refers to old versions and won't be fixed.
labels
Feb 28, 2024
When exporting users, log shows the following warning:
This warning raises when OJS calls fileinfo functions: https://www.php.net/manual/es/class.finfo.php
A preliminary search points that libmime is missing but installing it via "file" package ("apk add --no-cache file") makes no real difference.
When running "file -version" I got the path of the magic file (not magic.mime but I suspect will do the job) and it's /usr/share/misc/magic.
A possible solution would be change the dockerfile to add "file" and link "/etc/magic.mime" to "/usr/share/misc/magic" but I'm not sure about side effects.
I'm not sure if this only happens with 3.2.1-4 over php 7.3 or is a general issue.
In short: although this is just a warning and I can see any real impact in the application functionality... more research is required.
The text was updated successfully, but these errors were encountered: