3.6.0 update causes Critical Error when replacing a file
-
Page displays following message:
There has been a critical error on this website. Please check your site admin email inbox for instructions.
Learn more about troubleshooting WordPress.GET https://www.staugs.qld.edu.au/wp-admin/upload.php?page=enable-media-replace%2Fenable-media-replace.php&action=media_replace&attachment_id=782&_wpnonce=487f56a525 500 (Internal Server Error)
-
Hi @pembroke,
Can you please check your site admin email inbox and copy-paste the error you got there?
Thanks!
Having the same issue, but only on our IIS instance. Linux is working.
Experiencing the same issue:
WordPress version 5.8.1
Current theme: Bamboo (version 0.6.2)
Current plugin: Enable Media Replace (version 3.6.0)
PHP version 7.4.16I have the same problem. After update replacing the file with the option of updating the name and links generates the following errors:
Warning: mime_content_type(/home/customer/www/xxxxxxxxxxxxxxxxxx.net/public_html/wp-content/uploads/sites/31/TEST-2-1.pdf): failed to open stream: No such file or directory in /home/customer/www/xxxxxxxxxxxxxxxxxx.net/public_html/wp-content/plugins/enable-media-replace/classes/file.php on line 45
Warning: Cannot modify header information – headers already sent by (output started at /home/customer/www/xxxxxxxxxxxxxxxxxx.net/public_html/wp-content/plugins/enable-media-replace/classes/file.php:45) in /home/customer/www/xxxxxxxxxxxxxxxxxx.net/public_html/wp-includes/pluggable.php on line 1340
To add, however, replacing the file and keeping the same name does work. Unfortunately, had to roll back the plugin to the previous version because of this error.
I rolled back to version 3.5 and it is working again. Our DBA reported developer tools stating something about “no </body> tag” in version 3.6.
I don’t even have the ability to upload a new file with the same name. When I click “replace media”, I immediately get the following error message:
There has been a critical error on this website. Please check your site admin email inbox for instructions.
What’s the easiest way to roll back to version 3.5?
Hi guys,
Can anyone provide the actual error? When WordPress says “There has been a critical error on this website. Please check your site admin email inbox for instructions.”, there is an error that is sent to the administrator e-mail address, with more information.
Thank you,
Hi Gerard, Here you go: (I have redacted the website url)
G'day! Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email. In this case, WordPress caught an error with one of your plugins, Enable Media Replace. First, visit your website (***/) and check for any visible issues. Next, visit the page where the error was caught (https://***/wp-admin/upload.php?page=enable-media-replace%2Fenable-media-replace.php&action=media_replace&attachment_id=782&_wpnonce=c05cbb175d) and check for any visible issues. Please contact your host for assistance with investigating this issue further. If your site appears broken and you can't access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further. https://***/wp-login.php?action=enter_recovery_mode&rm_token=*** To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires. When seeking help with this issue, you may be asked for some of the following information: WordPress version 5.8.1 Current theme: Dynamik-Gen (version 2.6.9.9) Current plugin: Enable Media Replace (version 3.6.0) PHP version 7.3.31
Error 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 /home/cns/public_html/***/wp-content/plugins/enable-media-replace/classes/file.php:45
Stack trace:
#0 /home/cns/public_html/***/wp-content/plugins/enable-media-replace/classes/replacer.php(65): EnableMediaReplace\emrFile->__construct(‘/home/cns/publi…’)
#1 /home/cns/public_html/***/wp-content/plugins/enable-media-replace/views/popup.php(38): EnableMediaReplace\Replacer->__construct(782)
#2 /home/cns/public_html/***/wp-content/plugins/enable-media-replace/classes/emr-plugin.php(154): require_once(‘/home/cns/publi…’)
#3 /home/cns/public_html/***/wp-includes/class-wp-hook.php(303): EnableMediaReplace\EnableMediaReplacePlugin->route(”)
#4 /home/cns/public_html/***/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(”, Array)
#5 /home/cns/public_html/***/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
#6 /home/cns/I also rolled back to 3.5 and all good. Used FTP and uploaded the older version I had on my local drive.
Thank you @pembroke!
The issue will be solved in the next version, which should be released in the next few days.
Best,
Thanks for the quick update everyone.
experiencing same issue. Will fix next update? Thank you!
Hi everybody,
We just released a new version fixing this issue. Feel free to update π
Have a good one!
I’m still receiving an error when I try to replace a file. I get a message that says: File successfully replaced. But then there’s also an error message that says: There was an issue with updating your image URLS: Search and replace have different amount of values. Aborting updating thumbnails.
Here’s a screenshot of what I’m seeing: https://unsophisticook.com/wp-content/uploads/2021/11/Screen-Shot-2021-11-05-at-9.16.29-AM.png
I can regenerate the thumbnails separately with the Regenerate Thumbnails Advanced plugin, so maybe they’re not playing nicely together?
@unsophisticook Could you please open a new support thread to keep things organized? π
Thank you!
- The topic ‘3.6.0 update causes Critical Error when replacing a file’ is closed to new replies.