• Resolved Jasper

    (@lucydog)


    Hello,
    My Gravity Forms + Stripe payment processing stopped working when I installed QM, and upon installation, it started working again.

    On the payment processing page, it gave the following error:
    Unable to authorize card. No response from Stripe.js.

    Sorry I don’t have more detail, but on our server logs we have this error:

    PHP Catchable fatal error: Argument 1 passed to QM_Output_Html_Assets::dependency_row() must be an instance of _WP_Dependency, boolean given, called in /www/wp-content/plugins/query-monitor/output/html/assets.php on line 120 and defined in /www/wp-content/plugins/query-monitor/output/html/assets.php on line 128

    https://wordpress.org/plugins/query-monitor/

Viewing 5 replies - 1 through 5 (of 5 total)
  • @jasper: what version of Gravity Forms + Stripe are you using? I did a search of the entire plugin for the phrase that (reportedly) the plugin threw (“Unable to authorize…”), and did not find anything. What’s more, there is no physical stripe.js file, so the error itself doesn’t provide much insight.

    “Payment processing”… does that mean the payment has been submitted and is actively processing, or the user is viewing the payment form?

    It would be simple enough to resolve the QM error, but am interested in finding the base issue.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Previously: https://wordpress.org/support/topic/php-catchable-fatal-error-argument-1-passed-to-qm_output_html_assetsdependen

    This could be caused by a plugin that’s breaking a script dependency in a really weird way.

    Thread Starter Jasper

    (@lucydog)

    I am sorry – you know how we deactivate and activate plugins and lose track of what we just did? Maybe it’s just me, but that is what happened here- conflict is Autoptimize.

    Thank you so much for your help.

    hi jasper; you can simply disable AO on the checkout-page using code like this:

    add_filter('autoptimize_filter_noptimize','checkout_noptimize',10,0);
    function checkout_noptimize() {
    	if (strpos($_SERVER['REQUEST_URI'],'/checkout')!==false) {
    		return true;
    	} else {
    		return false;
    	}
    }

    this assumes your checkout has “/checkout” in the URL.

    frank (ao dev)

    Thread Starter Jasper

    (@lucydog)

    Thanks, Frank – Very nice of you to add this in! I will check out this suggestion.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Conflict with Gravity forms Stripe payment processing’ is closed to new replies.