革命滑块在php7.0中不起作用

时间:2019-07-23 07:26:26

标签: wordpress revolution-slider

1) go to revslider\inc_php\framework\db.class.php
   see function function checkForErrors($prefix = "") and change a code
   private function checkForErrors($prefix = ""){
            global $wpdb;

            //if($wpdb->last_error !== ''){
            if($this->wpdb->last_error){    
                $query = $this->wpdb->last_query;
                $message =  $this->wpdb->last_error;
                //$query = $wpdb->last_query;
                //$message = $wpdb->last_error;

                if($prefix) $message = $prefix.' - <b>'.$message.'</b>';
                if($query) $message .=  '<br>---<br> Query: ' . $query;

                $this->throwError($message);
            }
        }

2) go to revslider\inc_php\framework\base_admin.class.php
see this code private static $arrMetaBoxes = ""; 
please remove this code and put thiis code private static $arrMetaBoxes = array();

0 个答案:

没有答案