WordPress.org

Ready to get started?Download WordPress

Forums

Problem with Recent Links plugin and WP2-RC3 (4 posts)

  1. plucky
    Member
    Posted 8 years ago #

    I'm having some trouble getting the Recent Links plugin to work fully with WP2-RC3. Pages it generates (like rss and link archives) indicate the following error:

    Warning: Invalid argument supplied for foreach() in /home/jellis/public_html/micro/wp-includes/classes.php on line 374

    Any idea what this might mean? For an example, check my links rss feed here...
    http://microscopiq.com/links/feed/

    Thanks much for any help.

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    I suggest you post a polite request at the plugin authors site.

  3. plucky
    Member
    Posted 8 years ago #

    Thanks for the idea, podz. I sent him email but my hope is that this might be a somewhat easy fix for folks who understand the wp2 internals.

    I've done a bit of testing and found that if I avoid the rewrite system and access the file directly, there is no problem. So my guess is that there may be an issue with the plugin and the new way wp2 handles rewrites.

    For example, going to the file direct works fine...
    http://microscopiq.com/wp-recent-links-rss2.php

    Where going to it via rewrite produces an error...
    http://microscopiq.com/links/feed/

    The rewrite rule is...
    RewriteRule ^recent-links/feed?/?$ wp-recent-links-rss2.php [QSA]

    Does this spark any ideas? Is there a modification to the rewrite that might help here? Or some WP2 setting I might invoke?

    Thanks for any ideas.

  4. plucky
    Member
    Posted 8 years ago #

    Aha! Moving the plugin's custom rewrite rules to the head of the htaccess file (in front of those introduced by WP2) fixed it.

    Hope this helps someone else. :-)

Topic Closed

This topic has been closed to new replies.

About this Topic