Jamesons Posted October 26, 2008 Report Share Posted October 26, 2008 Tātad instalēju WordPress blogu uz sava pc un izlec man šāds errors, kuru vispār pirmoreiz redzu. Fatal error: Declaration of Walker_Page::start_lvl() must be compatible with that of Walker::start_lvl() in C:\AppServ\www\wp-includes\classes.php on line 594 Tātad ieeju C:\AppServ\www\wp-includes\classes.php on line 594 un tur man ir šāds kods class Walker_PageDropdown extends Walker { var $tree_type = 'page'; var $db_fields = array ('parent' => 'post_parent', 'id' => 'ID'); //TODO: decouple this function start_el(&$output, $page, $depth, $args) { $pad = str_repeat(' ', $depth * 3); $output .= "\t<option value=\"$page->ID\""; if ( $page->ID == $args['selected'] ) $output .= ' selected="selected"'; $output .= '>'; $title = wp_specialchars($page->post_title); $output .= "$pad$title"; $output .= "</option>\n"; } Kas tad man šeit ir jālabo? PS: Lietoju AppServ 2.6.0. PHP6 Link to comment Share on other sites More sharing options...
bubu Posted October 26, 2008 Report Share Posted October 26, 2008 Tev tur ir tikai 15 rindiņas. Bet kļūda ir 594 rindā. Skaidri un gaiši teikts, ka kļūda ir Walker_Page klasē, nevis Walker_PageDropdown, kuru tu te rādi. Visdrīzāk nepareiza start_lvl metodes deklarācija (kā jau teikts kļūdas aprakstā). Un vai vispār esi pārliecināts, ka Wordpress ir savietojams ar PHP6, kurš nemaz nav iznācis stabilā versijā? Link to comment Share on other sites More sharing options...
Jamesons Posted October 26, 2008 Author Report Share Posted October 26, 2008 NJā es vispār par to PHP6 arī iedomājos, laikam būs jāuzinstalē nedaudz vecāk AppServ ar PHP5, jo man viens cits CMS ar negribēja strādāt. PS: Man viens jautājums. Es skatijos Error Log'u un tur bija rakstīts, ka PHP6 register_globals ir jābūt uz Off, jo tajā tādu nemaz nav. Tā ir? Link to comment Share on other sites More sharing options...
bubu Posted October 26, 2008 Report Share Posted October 26, 2008 Apskaties dokumentācijā: http://lv2.php.net/manual/en/security.globals.php http://lv2.php.net/manual/en/ini.core.php#...egister-globals Link to comment Share on other sites More sharing options...
Jamesons Posted October 26, 2008 Author Report Share Posted October 26, 2008 Warning This feature has been DEPRECATED and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged. Nu man viss ir skaidrs :) Link to comment Share on other sites More sharing options...
Recommended Posts