PHP Fatal error: Uncaught Error: Call to a member function get_id() on null
-
Hi, I’m looking for some help for my website.
The Add to Cart button gives a Critical Error and I don’t know how to solve it. Can you help me please?Here is the code from the debug log:
PHP Fatal error: Uncaught Error: Call to a member function get_id() on null in /web/htdocs/www.mazzacana.it/home/wp-content/themes/storefront-child-theme-master/functions.php:120 Stack trace: #0 /web/htdocs/www.mazzacana.it/home/wp-includes/class-wp-hook.php(303): filter_is_purchasable() #1 /web/htdocs/www.mazzacana.it/home/wp-includes/plugin.php(189): WP_Hook->apply_filters() #2 /web/htdocs/www.mazzacana.it/home/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(1575): apply_filters() #3 /web/htdocs/www.mazzacana.it/home/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1168): WC_Product->is_purchasable() #4 /web/htdocs/www.mazzacana.it/home/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(417): WC_Cart->add_to_cart() #5 /web/htdocs/www.mazzacana.it/home/wp-includes/class-wp-hook.php(303): WC_AJAX::add_to_cart() #6 /web/htdocs/www.mazzacana.it/home/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #7 /web/htdocs/www.mazzacana.it/home/wp-includes/plugin.php(470): WP_Hook->do_ in /web/htdocs/www.mazzacana.it/home/wp-content/themes/storefront-child-theme-master/functions.php on line 120
Site URL: https://www.mazzacana.it
— WordPress Configuration
Version: 5.8.3
WP_DEBUG: Enabled
Memory Limit: 256M-- WordPress Active Plugins Advanced Shipment Tracking for WooCommerce: 3.3.1 Booster for WooCommerce: 5.5.0 Coming Soon Page, Maintenance Mode & Landing Pages by SeedProd: 6.6.0 Free Downloads WooCommerce: 3.3.32 Homepage Control: 2.0.3 Jetpack: 10.4 Rank Math SEO: 1.0.80 Storefront Footer Bar: 1.0.4 Title Toggle for Storefront Theme: 1.2.4 W3 Total Cache: 2.2.1 WooCommerce: 6.0.0 WooCommerce Multilingual: 4.12.1 WooCommerce PDF Invoices & Packing Slips: 2.11.3 WPML Media: 2.6.5 WPML Multilingual CMS: 4.4.12 WPML String Translation: 3.1.10 WPML Translation Management: 2.10.8 -- WordPress Inactive Plugins Enable Media Replace: 3.6.3 Public Post Preview: 2.9.3
-- Webserver Configuration PHP Version: 7.4.24 MySQL Version: 5.7.33 Webserver Info: Apache -- PHP Configuration Memory Limit: 1024M Upload Max Size: 128M Post Max Size: 128M Upload Max Filesize: 128M Time Limit: 600 Max Input Vars: 1000 Display Errors: N/A
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PHP Fatal error: Uncaught Error: Call to a member function get_id() on null’ is closed to new replies.