Viewing 15 replies - 1 through 15 (of 23 total)
  • I have the same problem.

    I have the same problem too. Any solutions?

    mh, maybe it depends on the weight tax option missing on YARPP settings options, doesn’t it?!

    yep guys, i think i found a solution to that problem – as if, it works to me.
    I had just installed wordpress, new twentyeleven theme; i installed YARPP then but i didn’t checked the option to see the hidden divs (those where you can set weight tax values)

    Thread Starter kaztheman

    (@kaztheman)

    This is not a solution, but I downgraded to 3.5, and then updated to 3.5.1 again. The message disappeared. I don’t not know the reason.

    could you setup tax weigth on yarpp settings option, before uninstall it?!
    i solved that way …

    just because on line 169 plugins try to cycle on $weight[‘tax’] …

    Thread Starter kaztheman

    (@kaztheman)

    frabiacca

    Sorry! my expression was wrong. Your solution may work, but what I did (downgrading and updating again) was not a solution even though the problem was solved in my case.

    I’m getting a different error. I checked the front end UI and see related posts on existing articles. However, in the post editor I’m getting the following error within the Related Posts block on existing and new posts:

    php_code_error:1:/home/webphysi/public_html/wpb/wp-content/plugins/yet-another-related-posts-plugin/class-admin.php:237:Call to a member function get_post_types() on a non-object

    Here’s a screenshot: http://screencast.com/t/dCQCFRylB

    YARPP 3.5.1 on WP 3.3.1

    I’m having the same issue:
    Warning: Invalid argument supplied for foreach() in /.../wp-content/plugins/yet-another-related-posts-plugin/class-cache.php on line 169

    the bug has been fixed, if you still get such error try some other plugin as YARP takes lots of server resource.

    @techfreak Still looks like version 3.5.1 to me and I’m still getting the Fatal error on line 237 when in the post editor.

    its working great for me, there maybe conflict with other plugins.

    I’m not sure how everything works, but $weight is an empty array(). If I do a check first, if (count($weight) > 0), then I don’t get the error. Unfortunately I’m not sure if that is detrimental to anything. It isn’t finding any related articles, but I only have 40 posts, so maybe that’s to be expected. My PHP skills are weak, so perhaps somebody else can verify this solution.

    @lukeryan why don’t you try other plugins. nrelate is the free wordpress plugin with thumbsnail.

    Change the code on line 169

    foreach ( $weight['tax'] as $tax => $weight ) {
    			$newsql .= " + " . $this->tax_criteria($reference_ID, $tax) . " * " . intval($weight);
    		}

    by this code:

    foreach ( (array) $weight['tax'] as $tax => $weight ) {
    			$newsql .= " + " . $this->tax_criteria($reference_ID, $tax) . " * " . intval($weight);
    		}

    Now warning message dissapear.

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘[Plugin: Yet Another Related Posts Plugin] A warning message after updating to 3.5.1’ is closed to new replies.