Hallo zusammen,
habe heute ein Update von 2.8.5 auf 2.9.1 gemacht.
Bisher hat das Fold Page List Plugin immer einwandfrei funktioniert. Es werden auch die Seiten und Links jetzt richtig ausgelesen, aber folgende Fehlermeldung wird trotzdem ausgegeben:
Warning: Invalid argument supplied for foreach() in xxx/wp-content/plugins/fold_page_list.php on line 359
hier die Zeilen ab 359-388
PHP
foreach($page_tree[$parent]['children'] as $page_id) {
$withChild = _wswwpx_page_get_child_ids ( $page_id );
$cur_page = $page_tree[$page_id];
$page_ancestors = _wswwpx_page_get_ancestor_ids($page_id);
$title = $cur_page['mtitle'];
// 14-August-2005
// Add check for linkttl, and revert to default behaviour if not available...
//
if ( isset($cur_page['wswpg_linkttl'] ) ) {
$linkttl = $cur_page['wswpg_linkttl'];
} else {
$linkttl = $title;
}
$queried_page = $queried_obj->ID;
$css_class = 'page_item';
if ( $page_id == $queried_obj->ID ) {
$css_class .= ' current_page_item';
} else if ( in_array($page_id, $all_ancestors) ) {
$css_class .= ' current_page_ancestor';
}
if ( $withChild ) $css_class .= ' page_folder';
// 14-Aug-2005: Add custom title attribute on anchor tag.
$output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page_id) . '" title="' . wp_specialchars($linkttl) . '"' . $linkrel . '>' . $title . '</a>';
if(isset($cur_page['ts'])) {
$format = get_settings('date_format');
if(isset($args['date_format'])) $format = $args['date_format'];
$output .= " " . gmdate($format,$cur_page['ts']);
}
$output .= "\n";
Alles anzeigen
Hat jemand einen Tipp, wodurch solche Fehlermeldungen produziert werden? Kenn mich leider zuwenig mit php dann aus...