Support » Fixing WordPress » [Plugin: Yoast Breadcrumbs] WARNING: array_slice

  • Im using wordpress v2.7, my breadcrumb is showing and funtion good in my blog. but in my wp dashboard showing this: –

    Warning: array_slice() expects parameter 1 to be array, null given in /home/faseven/public_html/blogging/wp-content/plugins/breadcrumbs/yoast-posts.php on line 43
    No items

    Is there any suggestion to fix it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I have the same issue

    I might have fixed this. Go to sociable.php and comment out the line before ?>
    change require_once(“yoast-posts.php”);
    to //require_once(“yoast-posts.php”);

    Looks like it is some rss feed checker from Just get rid of it.

    Not sure where you’re getting sociable.php from phorbidden but this fixed the issue for me:

    Open: yoast-posts.php

    $items = array_slice($rss->items, 0, 2)

    Replace with:
    $items = is_array($rss->items) ? array_slice($rss->items, 0, 2) : '';

    That, at least stops the code erroring out..

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Yoast Breadcrumbs] WARNING: array_slice’ is closed to new replies.