• Resolved bearcubbaby

    (@bearcubbaby)


    The following warning is displayed where the “x”s to remove an item from the cart should be. Strangely this does not appear when I am logged in as an admin.

    Warning: str_replace() expects at least 3 parameters, 2 given in /home4/bearcubb/public_html/wp-content/plugins/jetpack/modules/woocommerce-analytics/classes/wp-woocommerce-analytics-universal.php on line 182

    Line 182 reads:
    $url = str_replace( ‘href=’, $new_attributes );

    I am not familiar with php, but this looks to me like it is looking for 2 parameters?? Does anyone know how to fix this or has anyone seen a similar error?

    Any help would be GREATLY appreciated. This is driving me crazy!

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • D Smith a11n

    (@dsmithweb)

    Automattic Happiness Engineer

    Hi there! Are you using https://woocommerce.com/products/woocommerce-google-analytics/ ?

    This sounds to me like a scripting conflict. I’d make sure that WooCommerce core was up-to-date and that the versions of PHP and MySQL your site’s running on are both at least 5.6, then test whether the problem goes away if you temporarily switch themes to Twenty Seventeen and disable all plugins except analytics and WooCommerce core.

    If it does (which I suspect it will) you can then begin gradually reenabling your theme and other plugins until you find the source of the issue.

    Hope this helps!

    I have the same problem. have you solved it? thank you very much Giuliano

    if I remove jetpack the problem is solved but I need jetpack. thank you Giuliano

    D Smith a11n

    (@dsmithweb)

    Automattic Happiness Engineer

    Hi @giuliano61!

    In general, please do start a new thread for your issue,

    Are you seeing a fatal error with only Jetpack, our Google Analytics plugin, and Stripe plugins enabled and the theme switched to Twenty Seventeen?

    Hi D Smith thank you very much
    sorry I did not see that the thread was closed.
    So the problem is the theme, with twenty seventeen work fine!!
    Thank you

    D Smith a11n

    (@dsmithweb)

    Automattic Happiness Engineer

    Glad to hear you were able to find the source! I’m going to close this ticket, then 🙂

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

The topic ‘Fatal error caused by woocommerce-analytics’ is closed to new replies.