The solution is to find the location where the error is reported and see which variable is used directly without initialization. Instantiate this variable into an empty class first. For example:
Copy code The code is as follows:
$ct = new stdClass();
Modify the corresponding code of the file, For example:
Copy code The code is as follows:
if ( ! isset( $themes[$current_theme] ) ) {
delete_option( 'current_theme' );
$current_theme = get_current_theme();
}
$ct = new stdClass();
$ct-> name = $current_theme;
Problem solved.
http://www.bkjia.com/PHPjc/748679.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/748679.htmlTechArticleThe solution is to find the location of the error and then see which variable is used directly without initialization, and instantiate this variable first Make an empty class. For example: Copy the code The code is as follows: $ct = ne...