[Plugin: Yet Another Related Posts Plugin] Warning message in formatting.php (7 posts)

  1. markovacs
    Posted 5 years ago #


    I have just moved my blog to a new URL.
    Everything is fully OK, working and all, but if I go into any of my posts, I have a warning message at the beggining right before the body of the text saying: Warning: strip_tags() expects parameter 1 to be string, array given in.../html/wp-includes/formatting.php on line 631

    Now line 631 is the following:

    629function sanitize_user( $username, $strict = false ) {
    630 $raw_username = $username;
    631 $username = strip_tags($username);
    632 // Kill octets
    633 $username = preg_replace('|%([a-fA-F0-9][a-fA-F0-9])|', '', $username);
    634 $username = preg_replace('/&.+?;/', '', $username); // Kill entities

    Could anyone help me with this please, I am really lost now.
    I found that YARPP is causing this message, probably I have done something wrong.
    Also that could be important that when I moved over to this new URL I use the new 2.9 WP while the last page was on 2.8.

    Please if anyone have had this before let me know how to get rig of thise lines.


  2. llaughy
    Posted 5 years ago #

    I am receiving this same warning as well - in WP 2.8.4. The related posts are showing up, but the widget doesn't seem to work when I place it in the sidebar. Thanks for any suggestions!

  3. markovacs
    Posted 5 years ago #

    Anyone? please

  4. llaughy
    Posted 5 years ago #

    I have discovered in other forum entries that the widget does not work at all, so I can stop worrying about that. I deactivated all my other plugins to see if there is a conflict there, but still get the warning message. I am also running this plugin on another install of WP 2.8.4, and it is working just fine. I am just going to assume that once I am done setting up this WP install and I turn off error reporting that all will be well.

  5. I've updated the YARPP widget code in the latest beta, 3.1.4b3. I invite you to try it out.


  6. lencanoot
    Posted 5 years ago #

    With this version the problem still exist for the non-widget usage. :-(

  7. lencanoot, where exactly are you seeing this issue?

Topic Closed

This topic has been closed to new replies.

About this Topic