Crash the website
-
Hi, when I activate your plugin, I’m getting the following error
Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to a member function get_children()
wp-content/plugins/woo-variation-swatches/includes/class-woo-variation-swatches-product-page.php:170\nStack trace.When I activate it the website is not working at all.
PHP version 7.4
Wordpress version 6.0.3
-
Please kindly do a plugin compatibility check by doing these steps to identify the error :
=> Deactivate all of your additional plugins except the WooCommerce and WooCommerce Variation Swatches Plugin.
=> See if the problem persists. If the problem is resolved, you can tell which plugin might be the culprit of this error by activating your additional plugins one by one.
Looking forward to hearing from you soon.
Hi,
still happened. The same error
I forgot to mention that happened only the products with variation. I’m able to open a normal (simple) product properly
Which theme you are using? Is it available in the WordPress Theme repository?
If so, can you please give us the theme URL? So that, we can check it with our plugin.
Hi, I’m using the enfold.
Here is the link of the theme
https://themeforest.net/item/enfold-responsive-multipurpose-theme/4519990I tested the plug-in with another theme (twenty twenty and it works)
Form the support of the theme they told me that they cannot do anything if it is with third party plug-ins
Are you using any child theme?
No I’m not using any child theme
Did you customize the theme?
Not at all. There is no custom code in the files of the theme. That’s why we haven’t worked yet with child theme.
I have a snippet plug-in that class code inside but I tested the variation plug-in with every other plug-in closed. So I don’t think that there is an issue there
Sorry for your inconvenience. I have tried to replicate the issue on our end.
But we couldn’t reproduce it.
Please check it here- https://wptestbox.com/enfold/?product=hoodie
Yes :/
Trying to load the product I’m getting 500 on that request (at the network tab on chrome).
I have another thought but sound really strange if something like that causes the error.
So I had your plug-in and I was working with that many days.. it was okay.. actually weeks.
I was uploading all of my products with csv and with size attributes (medium, large, extra large and extra extra large). Everything was fine. The day that the error causes(in the evening) or the previous day I uploaded another list with products but I added a new size called small. Before I upload the csv I went to the attributes and added the size small which was only for the new list. Then I uploaded the list with products (csv) and after couple of hours working I changed the footer and then the issue came up.
Although at the beginning the issue was only on these products with variations.. the next morning the issue was in the whole site.. I couldn’t even open the front end.. and after many hours closing and open combination of plugins to figure it out the issue was only in these particular Products.Please follow these steps:
=> Install a fresh WordPress environment (on your local machine or staging site).
=> Install & Enable Enfold Theme.
=> Install WooCommerce, Variation Swatches Plugin.
=> Import the sample CSV (provided by WooCommerce).Then check if it happens or not. Hope to hear from you soon!
Hi, it’s working.. but on my site is not working. That means defiantly it’s not about your side.. but I can’t understand mine…
Again: This is the error
PHP Fatal error: Uncaught Error: Call to a member function get_children() on bool in /sneakacesv2-www/wp-content/plugins/woo-variation-swatches/includes/class-woo-variation-swatches-product-page.php:170\nStack trace:\n#0 /sneakacesv2-www/wp-includes/class-wp-hook.php(307): Woo_Variation_Swatches_Product_Page->add_to_cart_variation_params(Array, 'wc-add-to-cart-...')\n#1 /sneakacesv2-www/wp-includes/plugin.php(191): WP_Hook->apply_filters(Array, Array)\n#2 /sneakacesv2-www/wp-content/plugins/woocommerce/includes/class-wc-frontend-scripts.php(625): apply_filters('woocommerce_get...', Array, 'wc-add-to-cart-...')\n#3 /sneakacesv2-www/wp-content/plugins/woocommerce/includes/class-wc-frontend-scripts.php(466): WC_Frontend_Scripts::get_script_data('wc-add-to-cart-...')\n#4 /sneakacesv2-www/wp-content/plugins/woocommerce/includes/class-wc-frontend-scripts.php(633): WC_Frontend_Scripts::localize_script('wc-add-to-cart-...')\n#5 /sneakacesv2-www/wp-includes/class-wp-hook.php(307): WC_Frontend_Script...'The
get_childrenerror will come when you have some issues in product variation.I think there is some issue with your last export. It didn’t insert all the data properly.
Whet you mean by last export ? You meant import?
Btw I just changed plug-in
The topic ‘Crash the website’ is closed to new replies.