Support » Plugin: YARPP - Yet Another Related Posts Plugin » Bug in upgrading from yarp 3_5_2b2

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter _ikke_

    (@_ikke_)

    Forgot to mention where this needs to be changed. class-core.php:625 in yarpp 4.0.4

    @_ikke_ I’ve heard of reports like this and I’d like to resolve it. In YARPP 4.0.4, there is no mention of get_option in class-core line 625. (it says instead “function upgrade_3_5_2b2() {“) Where did you change it?

    Also, when did you get this error? When you upgraded the plugin?

    A note to others: please *do not* change a reference to get_option to set_option. This will break things further.

    Thread Starter _ikke_

    (@_ikke_)

    Here is the code I have, including a patch to fix it:

    https://gist.github.com/Ikke/4983768

    I get this error indeed when upgrading the plugin.

    Thread Starter _ikke_

    (@_ikke_)

    To give more context to the issue:

    The problem is that yarpp_get_option is called from the constructor (and any methods called from the constructor) of the YARPP class. That means that global $yarpp hasn’t been set yet.

    So calling yarpp_get_options tries to call $yarpp->get_options(), which results in a null reference exception.

    I’m having this problem too and want to be advised of a solution. Thanks.

    Thread Starter _ikke_

    (@_ikke_)

    If you have read this post, you’d see I already have a solution.

    Open plugins/yet-another-related-posts-plugin/class-core.php, go to the function upgrade_3_5_2b2() (around line 625), en search for yarpp_ and replace it with $this->

    _ikke_,

    I was unable to open wordpress to even make changes after the update.

    Eventually it started to work again after shutting down firefox and logging in again.

    Michael

    Thread Starter _ikke_

    (@_ikke_)

    This is something you do outside of wordpress, directly on the code.

    @_ikke_ Thank you for identifying where that code was being called from! I just made this change and pushed the following beta:

    http://downloads.wordpress.org/plugin/yet-another-related-posts-plugin.4.0.5b1.zip

    @makinmyway: please try this version on your site.

    As this is an urgent bugfix, if I can confirm that it improves the situation for a number of people, without introducing new bugs, I would like to push this version 4.0.5 out soon. Thanks in advance for your feedback!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Bug in upgrading from yarp 3_5_2b2’ is closed to new replies.