Title: Bug in new pingback blocking function
Last modified: August 20, 2016

---

# Bug in new pingback blocking function

 *  Resolved [smerriman](https://wordpress.org/support/users/smerriman/)
 * (@smerriman)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/bug-in-new-pingback-blocking-function/)
 * Hi,
 * There is a bug in the new yarpp_pingback_maybe_block_pingback function. I am 
   using a plugin which hooks into init() and calls the get_permalink() function.
   This calls that pingback function at a time when the global $yarpp option does
   not exist, and you are calling a function on that object so it is crashing.
 * Replacing:
 * `if ( !yarpp_get_option('experiment_pingback') || !$yarpp->cache->is_yarpp_time())`
 * with
 * `if ( !$yarpp || !yarpp_get_option('experiment_pingback') || !$yarpp->cache->
   is_yarpp_time() )`
 * should fix the problem.
 * [http://wordpress.org/extend/plugins/yarpp-experiments/](http://wordpress.org/extend/plugins/yarpp-experiments/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [habilmundir](https://wordpress.org/support/users/habilmundir/)
 * (@habilmundir)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/bug-in-new-pingback-blocking-function/#post-3486220)
 * I’m using feedwordpress and wp-book-little, calling url wwww…myblog.com/?update_feedwordpress
   =1 each hour with cron. I am using yarpp and yarpp-experiments too, but when 
   feedwordpress publish a new article, it fails.
 * Now I can see that $yarpp was not initialized.
 * Thanks for your fix.
 *  Plugin Author [mitcho (Michael Yoshitaka Erlewine)](https://wordpress.org/support/users/mitchoyoshitaka/)
 * (@mitchoyoshitaka)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/bug-in-new-pingback-blocking-function/#post-3486241)
 * This will be fixed in the next version. Here it is if you’d like to test it out.
   Thanks!
 * [http://downloads.wordpress.org/plugin/yarpp-experiments.zip](http://downloads.wordpress.org/plugin/yarpp-experiments.zip)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Bug in new pingback blocking function’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/yarpp-experiments.svg)
 * [YARPP Experiments](https://wordpress.org/plugins/yarpp-experiments/)
 * [Support Threads](https://wordpress.org/support/plugin/yarpp-experiments/)
 * [Active Topics](https://wordpress.org/support/plugin/yarpp-experiments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yarpp-experiments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yarpp-experiments/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [mitcho (Michael Yoshitaka Erlewine)](https://wordpress.org/support/users/mitchoyoshitaka/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/bug-in-new-pingback-blocking-function/#post-3486241)
 * Status: resolved