fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

Eli Inskeep

We’re having several 500 errors on our site and looks like they’re related to ?wc-ajax=get_variation

We were receiving critical errors on our product pages from the plugin. We updated to the latest version and then started having these issues. Here are one of the PHP fatal errors we’re receiving.

PHP Fatal error:  Uncaught Error: Call to a member function get_variation() on string in /nas/content/live/cranecountry/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:1100nStack trace:n#0 /nas/content/live/cranecountry/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(224): WC_Product_Data_Store_CPT->find_matching_product_variation(Object(WC_Product_Variation), Array)n#1 /nas/content/live/cranecountry/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(503): WC_Data_Store->__call(‘find_matching_p…’, Array)n#2 /nas/content/live/cranecountry/wp-includes/class-wp-hook.php(308): WC_AJAX::get_variation(”)n#3 /nas/content/live/cranecountry/wp-includes/class-wp-hook.

php(332): WP_Hook->apply_filters(”, Array)n#4 /nas/content/live/cranecountry/wp-includes/plugin.php(517): WP_Hook->do_action(Array)n#5 /nas/content/live/cranecountry/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(94): do_action(‘wc_ajax_get_var…’)n#6 /nas/content/live/cranecountry/wp-includes/cl in /nas/content/live/cranecountry/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php on line 1100, referer: https://cranes-country-store.com/product/the-original-stormy-kromer-cap/?attribute_color=Black+Grey+Plaid&attribute_size=7

Golam Kibria

Hi Eli,

Can you please give us temporary admin access to your site? We’ll try to investigate the issue for you.

You can add new users by going to Users > Add New set the user and password for us, set the role to admin and set the info here.

And add your site URL, login username, and password in the site login area. Follow this guideline: https://www.useloom.com/share/27c1f2ac633c4060b2da883d946107d7

Hope to hear from you soon!

Eli Inskeep

Golam,

I have added the SFTP information as well as the credentials to access the WordPress dashboard.

Golam Kibria

Hi Eli,

We are sorry for the inconvenience but we could not reproduce the issue on our end.

BTW, the error is also coming from WooCommerce.

Does it only occur when you use our plugin? How can we replicate it?

Thank You