WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[resolved] PHP Fatal error: Call to undefined function yarpp_get_option() (3 posts)

  1. Jean-Marc Liotier
    Member
    Posted 1 year ago #

    YARP 4.0.6 on WordPress 3.3.2+dfsg-1~squeeze1 (Debian)

    Posting a comment on an article returns a blank page. This may or may not be related to YARP. Anyway, while investigating I found this sort of entry in the acces logs for every comment attempt:

    2001:470:1f12:bfd::2 - - [28/May/2013:14:21:23 +0200] "POST /index.php/2013/05/28/no-anne-in-fifteen-years-my-insurance-will-not-be-tailored-to-my-genetic-risks HTTP/1.1" 500 20 "http://serendipity.ruwenzori.net/index.php/2013/05/28/no-anne-in-fifteen-years-my-insurance-will-not-be-tailored-to-my-genetic-risks" "Mozilla/5.0 (Windows NT 5.1; rv:20.0) Gecko/20100101 Firefox/20.0"

    Looking at the corresponding entry in the error log :

    [Tue May 28 14:21:23 2013] [error] [client 2001:470:1f12:bfd::2] PHP Fatal error: Call to undefined function yarpp_get_option() in /usr/share/wordpress/wp-content/plugins/yarpp-experiments/yarpp-experiments.php on line 364, referer: http://serendipity.ruwenzori.net/index.php/2013/05/28/no-anne-in-fifteen-years-my-insurance-will-not-be-tailored-to-my-genetic-risks

    The function where arpp-experiments.php's line 364 lies :

    function yarpp_pingback_maybe_block_pingback($url, $post, $leavename) {
       global $yarpp;
       if ( !yarpp_get_option('experiment_pingback') || !$yarpp->cache->is_yarpp_time() )
          return $url;

    So I disabled YARP Experiment's "Avoid pingbacks to own site" option.

    Now the error is :

    [Tue May 28 15:17:11 2013] [error] [client 2001:470:1f12:bfd::2] PHP Fatal error: Call to a member function get_option() on a non-object in /usr/share/wordpress/wp-content/plugins/yet-another-related-posts-plugin/yarpp.php on line 54, referer: http://serendipity.ruwenzori.net/index.php/2013/05/28/no-anne-in-fifteen-years-my-insurance-will-not-be-tailored-to-my-genetic-ris`ks

    And the function where arpp.php's line 54 is :

    function yarpp_get_option($option = null) {
        global $yarpp;
        return $yarpp->get_option($option);
    }

    Now what ?

  2. Jean-Marc Liotier
    Member
    Posted 1 year ago #

    Found the answer... My YARP Experiments plugin was still at 1.0 - I updated to 1.1 and this problem is now solved.

    I guess that this topic will provide good search engine fodder for people with the same problem...

  3. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    Glad you resolved it! :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.