Michael Nino

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
in reply to: Fatal error when uploading a file #205739

Michael Nino
Participant

In case it helps in troublshooting, if I remove this line from the .htaccess file:
AddHandler application/x-httpd-ea-php83___lsphp .php .php8 .phtml
The Download Manager works fine. But this line is generated automatically by cPanel so it gets added back, see below how it looks in the .htaccess:

# php — BEGIN cPanel-generated handler, do not edit
# Set the “ea-php83” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php83___lsphp .php .php8 .phtml
</IfModule>
# php — END cPanel-generated handler, do not edit

in reply to: Fatal error when uploading a file #205738

Michael Nino
Participant

I get this error, and your filter didn’t help, do you have any other ideas?
[27-Apr-2025 00:05:23 UTC] PHP Fatal error: Uncaught Error: Class “finfo” not found in /public_html/wp-content/plugins/download-manager/src/__/FileSystem.php:989
Stack trace:
#0 /public_html/wp-content/plugins/download-manager/src/__/FileSystem.php(1078): WPDM\__\FileSystem::getMimeType(‘/…’)
#1 /public_html/wp-content/plugins/download-manager/src/Admin/Menu/Packages.php(212): WPDM\__\FileSystem::validateUploadMimeType(‘/…’, ‘hydro-one-outag…’)
#2 /public_html/wp-content/plugins/download-manager/src/Admin/Menu/Packages.php(159): WPDM\Admin\Menu\Packages->chunkUploadFile(‘/…’)
#3 /public_html/wp-includes/class-wp-hook.php(324): WPDM\Admin\Menu\Packages->uploadFile(”)
#4 /public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
#5 /public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#6 /public_html/wp-admin/admin-ajax.php(192): do_action(‘wp_ajax_wpdm_ad…’)
#7 {main}
thrown in /public_html/wp-content/plugins/download-manager/src/__/FileSystem.php on line 989

Viewing 2 posts - 1 through 2 (of 2 total)