Forums

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

  1. Ipstenu
    Member
    Posted 7 months ago #

    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. mitchoyoshitaka
    Member
    Posted 7 months ago #

    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. Ipstenu
    Member
    Posted 7 months ago #

    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. mitchoyoshitaka
    Member
    Posted 7 months ago #

    @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. Ipstenu
    Member
    Posted 7 months ago #

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

  6. mitchoyoshitaka
    Member
    Posted 7 months ago #

    @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. Ipstenu
    Member
    Posted 7 months ago #

    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. mitchoyoshitaka
    Member
    Posted 7 months ago #

    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.

Reply

You must log in to post.

About this Topic