Support » Fixing WordPress » [Plugin: All in One SEO Pack] Getting Warning: array_slice() message

  • I was changing the seo option settings when I tryed to save it gor this error/warning message:

    Highest Warning: array_slice() [function.array-slice]: The first argument should be an array in /homepages/…/wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.php on line 1749

    * No items

    Donations Warning: array_slice() [function.array-slice]: The first argument should be an array in /homepages/…/wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.php on line 1767

    * No items

Viewing 15 replies - 1 through 15 (of 16 total)
  • Hi

    I was getting that error message last night, too. I reverted back to version 1.8 and the errors went away. Search the WP plugins page – the link to download older versions is there. I assume that will be cleaned up in the next release of the plugin.

    First disable the plugin, then upload the older version, then reenable the plugin

    I can’t seem to find the link for older version an you please paste here,thank you

    Hi,
    I also get the error, and a link to older version would be apprecited.

    Other versions are here
    http://wordpress.org/extend/plugins/all-in-one-seo-pack/download/

    I used 1.4.8 successfully

    I am getting an error message like this:

    Highest
    Warning: array_slice() expects parameter 1 to be array, null given in /home/lahjaopasf/domains/lahjaopas.fi/public_html/wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.php on line 1749

    * No items

    Donations
    Warning: array_slice() expects parameter 1 to be array, null given in /home/lahjaopasf/domains/lahjaopas.fi/public_html/wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.php on line 1767

    * No items

    Seems similar.

    Strange same problem. Probably not very important bug.

    Same problem after upgrade to last version.

    Strange same problem.

    The first time I visit this plug-in page I doesn’t have this problem. After refresh I do.

    Please debug All in One SEO Pack.

    I was bothered by this error and looked through code.
    There’s some kind of problem with script which shows donations for plugin via RSS.
    At real, this little problem doesn’t matter because it makes no harm.

    If you don’t like error messages, just remove lines 1743-1778 from all_in_one_seo_pack/all_in_one_seo_pack.php.

    Yep, I was too lasy to find it xD

    Remove this:

    Highest
    <?php
    $uri = "http://donations.semperfiwebdesign.com/category/highest-donations/feed/";
    include_once(ABSPATH . WPINC . '/rss.php');
    $rss = fetch_rss($uri);
    $maxitems = 5;
    $items = array_slice($rss->items, 0, $maxitems);
    ?>
    <ul>
    <?php if (empty($items)) echo '<li>No items</li>';
    else
    foreach ( $items as $item ) : ?>
    <li><a href='<?php echo $item['description']; ?>'
    title='<?php echo $item['title']; ?>'>
    <?php echo $item['title']; ?>
    </a></li>
    <?php endforeach; ?>
    </ul>
    Donations
    <?php
    $uri = "http://donations.semperfiwebdesign.com/category/all-in-one-seo-pack/feed/";
    include_once(ABSPATH . WPINC . '/rss.php');
    $rss = fetch_rss($uri);
    $maxitems = 5;
    $items = array_slice($rss->items, 0, $maxitems);
    ?>

    Michael Torbert

    (@hallsofmontezuma)

    WordPress Virtuoso

    Try the latest version (1.5). let me know if you’re still having this issue.

    Ok now.

    But so much trash on config page is really awful >_<

    Michael Torbert

    (@hallsofmontezuma)

    WordPress Virtuoso

    What trash?

    Donation links take half of the screen place on plugin settings page.
    It would be good if you made buttons “collapse links” or checkbox “don’t bug me anymore”, like other plugin developers do.

    Michael Torbert

    (@hallsofmontezuma)

    WordPress Virtuoso

    I understand how you may not like the top few lines of the options page to show the latest donations. I think it’s nice to recognize the people who’ve generously decided to make a contribution to the project, which allow me to continue to release and support the plugin for free so that everyone can benefit. Besides, I’m sure you don’t go to the options page too often, so it shouldn’t be a big bother. 🙂

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘[Plugin: All in One SEO Pack] Getting Warning: array_slice() message’ is closed to new replies.