я последовал за это руководство с Wordpress Codex: 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 Word и увидел ошибку несоответствия функций в wp-includes/class-wp-walker.php
, но я не хочу просто ее исправлять, сопоставляя аргументы, не зная реальной проблемы.
У вас есть какие-либо сведения о том, что может происходить здесь?
Большое спасибо!
EDIT: Исправлены все ошибки декларации, в настоящее время только один остается
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 –
Как вы исправили все ошибки Декларации? – Cheeso