• Resolved edwardsmark

    (@edwardsmark)


    hello – total newbie just got this message:

    Fatal error: Uncaught Error: Call to a member function generate_cart_id() on null in /home/ajcomptonpesl.com/domains/dev.ajcomptonpesl.com/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(584) : eval()’d code:37 Stack trace: #0 /home/ajcomptonpesl.com/domains/dev.ajcomptonpesl.com/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(584) : eval()’d code(99): bbloomer_product_id_in_cart() #1 /home/ajcomptonpesl.com/domains/dev.ajcomptonpesl.com/public_html/wp-includes/class-wp-hook.php(324): bbloomer_conditional_private_key_headers() #2 /home/ajcomptonpesl.com/domains/dev.ajcomptonpesl.com/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #3 /home/ajcomptonpesl.com/domains/dev.ajcomptonpesl.com/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php(101): apply_filters() #4 /home/ajcomptonpesl.com/domains/dev.ajcomptonpesl.com/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php(194): WC_Stripe_API::get_head in?/home/ajcomptonpesl.com/domains/dev.ajcomptonpesl.com/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(584) : eval()’d code?on line?37

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    The error you’re seeing indicates that a custom code snippet running on your site is causing a fatal error. Specifically, the issue is related to the function generate_cart_id() being called on a null object, likely in a custom snippet you’ve added.

    Please note that we do not provide support for customization. To resolve this:

    1. Disable the custom snippet temporarily to confirm it’s the source of the issue.
    2. If your issue is resolved after deactivating the custom code snippet, you may need to review or modify the snippet with the help of a developer.

    If your issue is not resolved even after deactivating the code snippet plugin, please try running a conflict test by following the instructions in this article: How to Test for Conflicts.

    I hope this helps!


    Thread Starter edwardsmark

    (@edwardsmark)

    SORRY – i should have read the word “snippit” over and over (and over and over and over…) in the error source. ??????

    Plugin Support Reynier (a11n)

    (@reynierc)

    Hi @edwardsmark

    No worries! Just wanted to check if you found the code snippet and were able to fix the issue? Just a tip, when implementing custom code, plugins like this help you keep it organized, so you don’t have to edit specific .php files.

    Also, sometimes, when you add custom snippets and when plugins/WordPress core get updated, these types of errors can happen.

    If you’re unsure about the issue, you can always post here like you did so we can try to guide you through simply identifying them. Creation, however, is out of scope as @shahzeenfarooq mentioned. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.