500 Internal Server Error After Plugin Update
-
Hi,
After I ran the plugin update for custom-sidebars the site refused to load showing 500 Internal Server Error.
I had to deactivate the plugin via cPanel > Filemanager and the site loads correctly with the plugin deactivated.
Everything was working fine using the previous version of the plugin.
Can you advise why this is happening and how to fix it?
-
Hi @etcltdmegan,
Hope you’re doing well π
I have tried replicating this on my installation but no errors pop up.
500 error usually means that there’s fatal error going on somewhere but on it its own it doesn’t tell us much.
Can you enable debug log in your wp-config.php by replacing define(‘WP_DEBUG’, false); with this code:// Enable WP_DEBUG mode define('WP_DEBUG', true); // Enable Debug logging to the /wp-content/debug.log file define('WP_DEBUG_LOG', true); // Disable display of errors and warnings define('WP_DEBUG_DISPLAY', false); @ini_set( 'display_errors', 0 );Reinstall the plugin so the error shows up again and this should create debug.log file in your wp-content folder that could tell us what is going on.
Cheers,
PredragI’m getting the same thing. The update took down a site of mine.
Here’s our debug logs.
[Tue Oct 11 14:00:06.395357 2016] [:error] [pid 14169] [client 136.62.90.8:48286] PHP Fatal error: Uncaught Error: Call to undefined function mb_strtolower() in
/htdocs/wp-content/plugins/custom-sidebars/inc/class-custom-sidebars.php:888
Stack trace:\n#0 [internal function]: CustomSidebars::sort_sidebars_cmp_function(Array, Array)\n#1 /htdocs/wp-content/plugins/custom-sidebars/inc/class-custom-sidebars.php(911): usort(Array, Array)\n#2
/htdocs/wp-content/plugins/custom-sidebars/inc/class-custom-sidebars-replacer.php(61): CustomSidebars::sort_sidebars_by_name(Array)\n#3
/htdocs/wp-includes/plugin.php(524): CustomSidebarsReplacer->register_custom_sidebars(”)\n#4
/htdocs/wp-includes/widgets.php(1474): do_action(‘widgets_init’)\n#5
/htdocs/wp-includes/plugin.php(524): wp_widgets_init(”)\n#6
/htdocs/wp-settings.php(411): do_action(‘init’)\n#7 /var/www/adoptionadvocates.net/htdocs/wp-config.php(95): require_once in
/htdocs/wp-content/plugins/custom-sidebars/inc/class-custom-sidebars.php on line 888I got the same error after the update and I fixed it.
I edited my php.ini file and made two changes.
1) Change the line that reads
;zend.multibyte = Off
to this
zend.multibyte = On
(remove the semicolon at the beginning and change the ‘Off’ to ‘On’ at the end)
2) Change the line that reads
;extension=php_mbstring.dll
to this
extension=php_mbstring.dll
(remove the semicolon at the beginning)
After I made those two changes my website came up.
Hi,
Link to debug log file is https://gist.github.com/anonymous/6aeb52eb734f7ae4c9651a1f34ca1ee2
Thanks, Megan.
Thanks for sharing the logs, both of them are showing same fatal error that is fixed by enabling zend.multibyte in your php.ini file.
Could you please follow instructions from @dcpwebber above and see if that helps for you as well.
Cheers,
PredragThe instructions from @dcpwebber above are for a windows installation. What if one is running Linux? There is no extension=php_mbstring.dll line
Fixed in linux via the following:
In php.ini change
;zend.multibyte = OffTo
zend.multibyte = OnThen (if not already installed)
yum install php-mbstringHi,
I added a php.ini file to my root (public_html).
php.ini has the following code;
zend.multibyte = On yum install php-mbstringI confirmed using phpinfo.php that it is calling the correct php.ini file.
However, I still can’t get the plugin to work. I still get the error:
Fatal error: Call to undefined function mb_strtolower() in /home/ent77912/public_html/wp-content/plugins/custom-sidebars/inc/class-custom-sidebars.php on line 888Can you advise what to do from here?
Hi @etcltdmegan,
We are currently working on changing the way changes in latest version works so it doesn’t cause this issue on servers with such setup, while we wait for the release can you please install version 2.1.1.1
You can download it from here:
https://ww.wp.xz.cn/plugins/custom-sidebars/developers/Cheers,
PredragThanks for all your help, looks like the latest plugin update has fixed the issues!
Glad to hear that, thanks for confirming that update fixed the issue π
Cheers,
Predrag
The topic ‘500 Internal Server Error After Plugin Update’ is closed to new replies.