WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. -creynolds-aiec
    Member
    Posted 1 year 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

    http://wordpress.org/extend/plugins/block-bad-queries/

  2. Jeff Starr
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year ago #

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

  5. brasofilo
    Member
    Posted 11 months 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
    Member
    Plugin Author

    Posted 9 months ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic