我跟着從WordPress的食品本指南整合:Integrating Wordpress with Your Website 但我發現了以下錯誤:錯誤時WordPress的在我現有的網站
Declaration of Walker_Page::start_lvl() should be compatible with that of Walker::start_lvl() [ On E:\Documents\work\devenv\xampp\htdocs\orp\blog\wp-includes\post-template.php Line 1071 ]
Declaration of Walker_Page::end_lvl() should be compatible with that of Walker::end_lvl() [ On E:\Documents\work\devenv\xampp\htdocs\orp\blog\wp-includes\post-template.php Line 1071 ]
Declaration of Walker_Page::start_el() should be compatible with that of Walker::start_el() [ On E:\Documents\work\devenv\xampp\htdocs\orp\blog\wp-includes\post-template.php Line 1071 ]
Declaration of Walker_Page::end_el() should be compatible with that of Walker::end_el() [ On E:\Documents\work\devenv\xampp\htdocs\orp\blog\wp-includes\post-template.php Line 1071 ]
Declaration of Walker_PageDropdown::start_el() should be compatible with that of Walker::start_el() [ On E:\Documents\work\devenv\xampp\htdocs\orp\blog\wp-includes\post-template.php Line 1116 ]
Declaration of Walker_Category::start_lvl() should be compatible with that of Walker::start_lvl() [ On E:\Documents\work\devenv\xampp\htdocs\orp\blog\wp-includes\category-template.php Line 915 ]
Declaration of Walker_Category::end_lvl() should be compatible with that of Walker::end_lvl() [ On E:\Documents\work\devenv\xampp\htdocs\orp\blog\wp-includes\category-template.php Line 915 ]
Declaration of Walker_Category::start_el() should be compatible with that of Walker::start_el() [ On E:\Documents\work\devenv\xampp\htdocs\orp\blog\wp-includes\category-template.php Line 915 ]
Declaration of Walker_Category::end_el() should be compatible with that of Walker::end_el() [ On E:\Documents\work\devenv\xampp\htdocs\orp\blog\wp-includes\category-template.php Line 915 ]
Declaration of Walker_CategoryDropdown::start_el() should be compatible with that of Walker::start_el() [ On E:\Documents\work\devenv\xampp\htdocs\orp\blog\wp-includes\category-template.php Line 966 ]
Declaration of Walker_Comment::start_lvl() should be compatible with that of Walker::start_lvl() [ On E:\Documents\work\devenv\xampp\htdocs\orp\blog\wp-includes\comment-template.php Line 1400 ]
Declaration of Walker_Comment::end_lvl() should be compatible with that of Walker::end_lvl() [ On E:\Documents\work\devenv\xampp\htdocs\orp\blog\wp-includes\comment-template.php Line 1400 ]
Declaration of Walker_Comment::start_el() should be compatible with that of Walker::start_el() [ On E:\Documents\work\devenv\xampp\htdocs\orp\blog\wp-includes\comment-template.php Line 1400 ]
Declaration of Walker_Comment::end_el() should be compatible with that of Walker::end_el() [ On E:\Documents\work\devenv\xampp\htdocs\orp\blog\wp-includes\comment-template.php Line 1400 ]
Redefining already defined constructor for class WP_Widget [ On E:\Documents\work\devenv\xampp\htdocs\orp\blog\wp-includes\widgets.php Line 93 ]
Declaration of Walker_Nav_Menu::start_lvl() should be compatible with that of Walker::start_lvl() [ On E:\Documents\work\devenv\xampp\htdocs\orp\blog\wp-includes\nav-menu-template.php Line 109 ]
Declaration of Walker_Nav_Menu::end_lvl() should be compatible with that of Walker::end_lvl() [ On E:\Documents\work\devenv\xampp\htdocs\orp\blog\wp-includes\nav-menu-template.php Line 109 ]
Declaration of Walker_Nav_Menu::start_el() should be compatible with that of Walker::start_el() [ On E:\Documents\work\devenv\xampp\htdocs\orp\blog\wp-includes\nav-menu-template.php Line 109 ]
Declaration of Walker_Nav_Menu::end_el() should be compatible with that of Walker::end_el() [ On E:\Documents\work\devenv\xampp\htdocs\orp\blog\wp-includes\nav-menu-template.php Line 109 ]
Fatal error: Call to a member function add_rewrite_tag() on a non-object in E:\Documents\work\devenv\xampp\htdocs\orp\blog\wp-includes\taxonomy.php on line 333
相當錯誤的mouthfull!我在Wordpress v3.3.1和PHP v5.3.1 我的php.ini錯誤報告是error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
,但不確定是否error_reporting越來越重寫代碼中的某處。
我探討了Wordpress php文件,看到wp-includes/class-wp-walker.php
中的函數參數不匹配問題,但我不想只通過匹配參數來修補它,而不知道真正的問題。
你有什麼線索可能會發生什麼嗎?
非常感謝!
編輯:修正所有錯誤的宣言,現在只是一個保持
Fatal error: Call to a member function add_rewrite_tag() on a non-object in E:\Documents\work\devenv\xampp\htdocs\orp\blog\wp-includes\taxonomy.php on line 334
看來$wp_rewrite
是沒有得到定義,它的值是空。實際上,所有全局變量都不可用wp-includes\taxonomy.php
也許看看wordpress.org上的這篇文章? http://wordpress.org/support/topic/cant-get-it-to-install-errors – 2012-03-16 09:32:05
您是如何解決所有聲明錯誤的? – Cheeso 2014-06-12 23:30:50