iT邦幫忙

0

Wordpress 備份後,在本機端測試出現錯誤

阿B 2016-02-22 16:12:383318 瀏覽
  • 分享至 

  • twitterImage

Warning: Declaration of nys_SubscribeWidget::widget($args) should be compatible with WP_Widget::widget($args, $instance) in C:\xampp\htdocs\wp-content\plugins\navayan-subscribe\functions.php on line 306

我們公司網站是用Wordpress做的
因為也是前一個工程師做...在我來之後他就離職了

所以想要在本機端測試公司網站(例如一些改版之類的)

就從虛擬主機上備份了網站資料和資料庫

然後用XAMPP測試

有把舊的資料庫匯入了

之後輸入localhost的確會出現網站的樣子

但是在頂部會出現幾行錯誤想請教各位前輩該如何解決

Warning: Declaration of nys_SubscribeWidget::form() should be compatible with WP_Widget::form($instance) in C:\xampp\htdocs\wp-content\plugins\navayan-subscribe\functions.php on line 306

Warning: Declaration of Custom_Wrap::start_lvl(&$output, $depth) should be compatible with Walker_Nav_Menu::start_lvl(&$output, $depth = 0, $args = Array) in C:\xampp\htdocs\wp-content\themes\cru\functions.php on line 283

Warning: Declaration of Custom_Wrap::end_lvl(&$output, $depth) should be compatible with Walker_Nav_Menu::end_lvl(&$output, $depth = 0, $args = Array) in C:\xampp\htdocs\wp-content\themes\cru\functions.php on line 283

By 阿B

羊羊 iT邦新手 5 級 ‧ 2016-03-13 12:11:20 檢舉
我後來忘記回來看
Wordpress在Linux底下運最比較順唷!
通常換到WAMP有很多問題很正常
而且每裝一個外掛就有不同的問題
建議你可以用虛擬機去跑LINUX^^
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

0
羊羊
iT邦新手 5 級 ‧ 2016-02-23 13:49:41
最佳解答

SQL匯出後,用記事本打開,使用ctrl+H,輸入查詢原本的網址並全部修改成127.0.0.1,並全部修改後再匯入。

阿B iT邦新手 4 級 ‧ 2016-02-24 11:35:46 檢舉

之前移除過navayan-subscribe外掛
還是會剩下版型的錯誤

現在正在嘗試把SQL的網址全部改成127.0.0.1
之前只有改wp_options的siteurl和home的網址而已
一樣也是會錯誤

我要發表回答

立即登入回答