我用 WordPress 建立了一个网站,但最近停止工作了。我无法使用 Wp-Admin 页面登录。当我登录时,出现以下错误,如下面的代码所示。
我想知道是否可能是转速滑块引起了问题。我已更新基类 admin.php 文件以更改private static $arrMetaBoxes = '';
为private static $arrMetaBoxes = array();
. 不幸的是这并没有奏效。
Fatal error: Uncaught Error: Call to undefined function mysql_error() in /home3/epicccon/public_html/sophia/wp-content/plugins/revslider/inc_php/framework/db.class.php:29 Stack trace: #0 /home3/epicccon/public_html/sophia/wp-content/plugins/revslider/inc_php/framework/db.class.php(127): UniteDBRev->checkForErrors('fetch') #1 /home3/epicccon/public_html/sophia/wp-content/plugins/revslider/inc_php/revslider_params.class.php(42): UniteDBRev->fetch('wp_xiht_revslid...') #2 /home3/epicccon/public_html/sophia/wp-content/plugins/revslider/inc_php/revslider_operations.class.php(1072): RevSliderParams->getFieldFromDB('general') #3 /home3/epicccon/public_html/sophia/wp-content/plugins/revslider/revslider_front.php(30): RevOperations::getGeneralSettingsValues() #4 /home3/epicccon/public_html/sophia/wp-includes/plugin.php(525): RevSliderFront->onAddScripts('') #5 /home3/epicccon/public_html/sophia/wp-includes/script-loader.php(1049): do_action('wp_enqueue_scri...') #6 /home3/epicccon/public_html/sophia/wp-includes/plugin.php(525): wp in /home3/epicccon/public_html/sophia/wp-content/plugins/revslider/inc_php/framework/db.class.php on line 29
Warning: Parameter 1 to W3_Plugin_TotalCache::ob_callback() expected to be a reference, value given in /home3/epicccon/public_html/sophia/wp-includes/functions.php on line 3570
Run Code Online (Sandbox Code Playgroud)
小智 5
您将需要更新革命滑块插件的源代码。 编辑 wp-content/plugins/revslider/inc_php/framework/db.class.php 找到checkForErrors函数并替换下面的代码
if(mysql_error()){
Run Code Online (Sandbox Code Playgroud)
和
if($this->wpdb->last_error){
Run Code Online (Sandbox Code Playgroud)