WordPress problem solving: 500 errors in the background of website moving

WordPress website moved home, visit the background display 500 error

terms of settlement

WordPress enable Developer mode

Modify wp-config.php
Add define ('wp_debug ', true);

Parse error details

Visit the background again and display:

Fatal error: Uncaught Error: [] operator not supported for strings in /home/wwwroot/www.wmsoho.com/wp-content/plugins/revslider/includes/framework/base-admin.class.php:72 Stack trace: #0 /home/wwwroot/www.wmsoho.com/wp-content/plugins/revslider/admin/revslider-admin.class.php(572): RevSliderBaseAdmin::addMetaBox('Revolution Slid...', '', Array, NULL) #1 /home/wwwroot/www.wmsoho.com/wp-content/plugins/revslider/admin/revslider-admin.class.php(73): RevSliderAdmin->addSliderMetaBox() #2 /home/wwwroot/www.wmsoho.com/wp-content/plugins/revslider/admin/revslider-admin.class.php(44): RevSliderAdmin->init() #3 /home/wwwroot/www.wmsoho.com/wp-content/plugins/revslider/revslider.php(162): RevSliderAdmin->__construct('/home/wwwroot/w...') #4 /home/wwwroot/www.wmsoho.com/wp-settings.php(303): include_once('/home/wwwroot/w...') #5 /home/wwwroot/www.wmsoho.com/wp-config.php(87): require_once('/home/wwwroot/w...') #6 /home/wwwroot/www.wmsoho.com/wp-load.php(37): req in /home/wwwroot/www.wmsoho.com/wp-content/plugins/revslider/includes/framework/base-admin.class.php on line 72

It can be seen that there is a problem in the 72nd line of RevSlider plug-in self:: $arrmetboxes [] = $box. Google has found that the plug-in developer has provided a solution

Modify file

Modify the file / WP content / plugins / revslider / includes / framework / base-admin.class.php

Note: some older versions of RevSlider plug-ins are listed in:
/Line 23 of WP content / plugins / revslider / Inc? PHP / framework / base? Admin.class.php

Line 21
private static $arrMetaBoxes = "; //option boxes that will be added to post
Change to
private static $arrMetaBoxes = array(); //option boxes that will be added to post

Access again after saving www.wmsoho.com Backstage, problem solving

Disable developer mode

Finally, modify the wp-config.php file
Delete define ('wp'debug ', true);

to update:
There is another error:

Notice: add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available. in /home/wwwroot/www.wmsoho.com/wp-includes/functions.php on line 4026

Fatal error: Uncaught Error: Call to undefined function mysql_error() in /home/wwwroot/www.wmsoho.com/wp-content/plugins/revslider/inc_php/framework/db.class.php:29 Stack trace: #0 /home/wwwroot/www.wmsoho.com/wp-content/plugins/revslider/inc_php/framework/db.class.php(125): UniteDBRev->checkForErrors('fetch') #1 /home/wwwroot/www.wmsoho.com/wp-content/plugins/revslider/inc_php/revslider_params.class.php(42): UniteDBRev->fetch('wp_revslider_se...') #2 /home/wwwroot/www.wmsoho.com/wp-content/plugins/revslider/inc_php/revslider_operations.class.php(1030): RevSliderParams->getFieldFromDB('general') #3 /home/wwwroot/www.wmsoho.com/wp-content/plugins/revslider/settings/general_settings.php(41): RevOperations::getGeneralSettingsValues() #4 /home/wwwroot/www.wmsoho.com/wp-content/plugins/revslider/inc_php/framework/base_admin.class.php(341): require('/home/wwwroot/w...') #5 /home/wwwroot/www.wmsoho.com/wp-content/plugins/revslider/revslider_admin.php(56): UniteBaseAdminClassRev::requireSettings('general_setting...') #6 /h in /home/wwwroot/www.wmsoho.com/wp-content/plugins/revslider/inc_php/framework/db.class.php on line 29

resolvent
Modify line 29 of / WP content / plugins / revslider / inc_php / framework / db.class.php
If (MySQL error()){
Change to
if($this->wpdb->last_error){

MySQL error() has been stopped in PHP7, so there is a problem with the plug-in
Of course, a better way is to update the plug-in to the latest version

Tags: PHP MySQL Google

Posted on Tue, 05 May 2020 14:16:44 -0400 by birdie