Viewing 4 replies - 1 through 4 (of 4 total)
  • Thanks for the fix! I was having this problem too.

    Thread Starter kitchin

    (@kitchin)

    Great!

    @kitchin – Just to make sure I got this straight as I’m code impaired. ??

    Line 605 and 606 originally:

    $target_post = get_post($post_id);
    		if (($post_id > 0) && !is_object($target_post))

    So I want to change the two “$post_id” to “$_post_id”, yes? So it should read like this:

    $target_post = get_post($_post_id);
    		if (($_post_id > 0) && !is_object($target_post))

    Do I have this right? (yeah, dumb question but I’m getting old–forgetting what I learned when I was a geek)

    Thread Starter kitchin

    (@kitchin)

    Yes, that’s it. That makes the code sensible, but I can’t vouch for what the code is doing. If you have a test that is not working, make this change and see if it starts working.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error in add_subscription()’ is closed to new replies.