WordPress.org

Support

Support » Plugins and Hacks » Bug in upgrading from yarp 3_5_2b2

Bug in upgrading from yarp 3_5_2b2

Viewing 9 replies - 1 through 9 (of 9 total)
  • 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.

    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.

    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.

    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

    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.