WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Yet Another Related Posts Plugin] WordPress database error (8 posts)

  1. I'm reposting since, for some reason, my post was closed (or bozo'd I think).

    When I go to the admin page for Yarpp and look under the section for Website display code example, I get the error below. Of note, everything seems to work just fine!

    Image: http://img156.imageshack.us/img156/8817/yarpp.png
    Code: http://wordpress.pastebin.ca/1404890

  2. Hmm, bizarre, but I think I found a fix: please try adding this to line 384 of magic.php.

    if ($reference_ID === '' || $reference_ID === false)
    return false;

    So it should look like

    function yarpp_cache_enforce($type=array('post'),$reference_ID,$force=false) {
    global $wpdb, $yarpp_debug, $yarpp_caching_queue;

    if ($reference_ID === '' || $reference_ID === false)
    return false;

    $timeout = 600;

    if (!$force) {

  3. That was already set (I'm using the 3.0.1 plugin, since I thought I'd try that before going forward with a debug).

  4. @Ipstenu the updated version of magic.php I uploaded and linked to here also includes this patch, fyi. Please let me know if it works.

  5. I did (since I too use child themes) and it works! Huzzah! Thank you! :)

  6. @Ipstenu? I'm confused... those two extra lines (the if $reference_ID === ''...) is new and not included in 3.0.1. Can you try the patch I uploaded?

  7. The patch you uploaded (regarding child themes) fixed the issues.

    (Which, since I'm using child themes, makes a certain amount of sense. Oy!)

  8. Alright y'all, I got antsy and pushed this as 3.0.2. After wordpress.org updates its servers, you'll be able to download it.

Topic Closed

This topic has been closed to new replies.

About this Topic