• Resolved lalitjalandhar

    (@lalitjalandhar)


    Getting this error when tries to access rest Pages/Posts APIs and when per_page is greater than a specific value.
    https://xyz.com/wp-json/wp/v2/pages?per_page=13 Works fine
    https://xyz.com/wp-json/wp/v2/pages?per_page=14 Gives following error for any value above 14.
    CRITICAL Uncaught Error: Call to a member function get_cart() on null in /home/wplive/web/wp-live/wp-content/plugins/jetpack/modules/woocommerce-analytics/classes/class-jetpack-woocommerce-analytics-universal.php:250
    Stack trace:
    #0 /home/wplive/web/wp-live/wp-includes/class-wp-hook.php(292): Jetpack_WooCommerce_Analytics_Universal->checkout_process(”)
    #1 /home/wplive/web/wp-live/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(”, Array)

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Jen H. (a11n)

    (@jenhooks)

    Hi @lalitjalandhar,

    Please rule out a plugin or theme conflict as a first line of troubleshooting.

    To do so, first set your active theme to Twenty Twenty. The Twenty Twenty theme comes preinstalled with your WordPress, and you can find it under Appearance > Themes.

    See if the error persists when you access your pages and posts. If it does not, try activating your usual theme, to see if the issue returns. If it does, you’ll need to contact your theme’s developer to see if they can help you troubleshoot.

    If changing to a different theme didn’t affect things, try deactivating all of your plugins except for Jetpack and WooCommerce. Then, activate your plugins one-by-one and try to reproduce the problem. If the problem comes back when you activate a particular plugin, you’ve found the one causing the problem.

    Just a side-note; before you swap your theme and deactivate your plugins, we recommend that you make a full backup of your site.

    Let us know what you find, and if that doesn’t turn anything up, we’ll keep working on it.

    Best,

    • This reply was modified 3 years, 11 months ago by Jen H. (a11n).
    Plugin Contributor Jen H. (a11n)

    (@jenhooks)

    Hey @lalitjalandhar,

    Since it’s been more than a week since we’ve heard from you, I’m going to go ahead and mark this thread as Resolved. If you still need a hand, please feel free to reach back out here and mark the thread as not resolved.

    Thanks!

    Thread Starter lalitjalandhar

    (@lalitjalandhar)

    Yes, that was due to a plugin conflict. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CRITICAL Uncaught Error: Call to a member function get_cart() on null’ is closed to new replies.