BBQ: Block Bad Queries
[resolved] Jetpack/Grunion conflict (403) (6 posts)

  1. -creynolds-aiec
    Posted 3 years ago #

    Hi thanks for your plugin.

    Unfortunately we have it disabled at the moment because it is causing Jetpack's contact form creation tool to 403.

    Another interesting side effect is that when I searched for grunion in the add new plugins section of the dashboard I am given a 403 there as well.

    This was happening in 3.5 and 3.5.1


  2. Jeff Starr
    Plugin Author

    Posted 3 years ago #

    Thanks for the report. If you know the URL(s) that are blocked or not working that will help us troubleshoot and perhaps resolve the issue for the next update. Thank you.

  3. Israel Curtis
    Posted 3 years ago #

    Been trying to figure out this jetpack conflict for some time - having the same problem. Basically when you click the icon to insert a new contact form, a thickbox appears, but it is totally blank. Console shows this 403 error:

    GET http://mysite.com/wp-admin/admin-ajax.php?post_id=4&action=grunion_form_builder& 403 (Forbidden) load-scripts.php:2
    (anonymous function) load-scripts.php:2
    v.fn.extend.domManip load-scripts.php:2
    v.fn.extend.append load-scripts.php:2
    tb_show load-scripts.php:265
    tb_click load-scripts.php:95
    v.event.dispatch load-scripts.php:2
    o.handle.u load-scripts.php:2
  4. Jeff Starr
    Plugin Author

    Posted 3 years ago #

    Thanks Israel, that info will help to resolve the issue in the next update.

  5. brasofilo
    Posted 3 years ago #

    I faced the same problem and, as a good and nice plugin, BBQ offers a helpful filter :)

    The following filter only fires in admin side and when doing Ajax, which is the moment where BBQ's union key gets confused about Jetpack's grunion call:

    add_filter( 'query_string_items', 'b5f_filter_bbq_for_jetpack' );
    function b5f_filter_bbq_for_jetpack( $items )
    	if( is_admin() && defined('DOING_AJAX') && DOING_AJAX )
    		$key = array_search( 'union', $items );
    		unset( $items[ $key ] );
    	return $items;

    Related: Where to put my code: plugin or functions.php?

  6. Jeff Starr
    Plugin Author

    Posted 2 years ago #

    Awesome.. thank you for this fix, brasofilo :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BBQ: Block Bad Queries
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic