bluon
Forum Replies Created
-
Answering my own question here. I had to enable the php extension php73-php-fileinfo. Was able to do that in WHM by going to EasyApache 4 -> Currently Installed Packages -> PHP Extensions and select php73-php-fileinfo. Looks like it is working fine now.
I commented out lines 44-45 on enable-media-replace/classes/file.php and that seemed to work for now. I get a warning stating the mime types don’t match, but that at least lets me replace files for now.
Any idea why mime_content_type() wouldn’t work? Was it using this php function before, or was it recently changed?
I’m experiencing the same problem. Here’s the error I am getting. Looks like I am running the latest version of the plugin?
——————–
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 5.8.1
Current theme: ***
Current plugin: Enable Media Replace (version 3.6.0)
PHP version 7.3.31Error Details
=============
An error of type E_ERROR was caused in line 45 of the file /wp-content/plugins/enable-media-replace/classes/file.php. Error message: Uncaught Error: Call to undefined function EnableMediaReplace\mime_content_type() in /wp-content/plugins/enable-media-replace/classes/file.php:45
Stack trace:
#0 /wp-content/plugins/enable-media-replace/classes/replacer.php(65): EnableMediaReplace\emrFile->__construct(‘/home/legalrf5/…’)
#1 /wp-content/plugins/enable-media-replace/views/popup.php(38): EnableMediaReplace\Replacer->__construct(8228)
#2 /wp-content/plugins/enable-media-replace/classes/emr-plugin.php(154): require_once(‘/home/legalrf5/…’)
#3 /wp-includes/class-wp-hook.php(303): EnableMediaReplace\EnableMediaReplacePlugin->route(”)
#4 /wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(”, Array)
#5 /wp-includes/plugin.php(470): WP_Hook->do_action(Array)
#6 /wp-admin/admin.php(259): do_action(‘media_page_enab…’)