WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: All in One SEO Pack] Getting Warning: array_slice() message (17 posts)

  1. hayem
    Member
    Posted 5 years ago #

    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

  2. stvwlf
    Member
    Posted 5 years ago #

    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

  3. hayem
    Member
    Posted 5 years ago #

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

  4. jmccann
    Member
    Posted 5 years ago #

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

  5. stvwlf
    Member
    Posted 5 years ago #

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

    I used 1.4.8 successfully

  6. mannerv
    Member
    Posted 5 years ago #

    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.

  7. danger89
    Member
    Posted 5 years ago #

    Strange same problem. Probably not very important bug.

  8. Jehy
    Member
    Posted 5 years ago #

    Same problem after upgrade to last version.

  9. danger89
    Member
    Posted 5 years ago #

    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.

  10. Jehy
    Member
    Posted 5 years ago #

    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.

  11. danger89
    Member
    Posted 5 years ago #

    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);
    ?>
  12. Michael Torbert
    WordPress Virtuoso
    Posted 5 years ago #

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

  13. Jehy
    Member
    Posted 5 years ago #

    Ok now.

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

  14. Michael Torbert
    WordPress Virtuoso
    Posted 5 years ago #

    What trash?

  15. Jehy
    Member
    Posted 5 years ago #

    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.

  16. Michael Torbert
    WordPress Virtuoso
    Posted 5 years ago #

    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. :)

  17. Jehy
    Member
    Posted 5 years ago #

    Ok ok, sorry :)
    Great plugin anyway, thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic