Clone function isn’t working
-
Hello! I am using WC Fields Factory for Variation fields. And I have quite massive group of fields which needs to be cloned and mapped to different kind of product variations.
But then I click on the link “Clone” (under the name of groupd field) – page reloads and nothing changes. There are still no any new cloned group fields.
Can you please help me to understand what I am doing wrong? I will be very grateful!
-
Hi, I couldn’t replicate the issue, can you post the exceptions entries from php’s error.log, If any.
Hello @sarkware I checked WooCommerce fatal errors and there are quite a lot of them as I see, but I’m not sure which of them are involved with WC Fields Factory:
2022-09-11T15:29:14+00:00 CRITICAL Klaidos ?inut?: Uncaught Error: The script tried to modify a property on an incomplete object. Please ensure that the class definition "MKL\PC\Choice" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php:5010 Stack trace: #0 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(5005): map_deep() #1 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(5005): map_deep() #2 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(5005): map_deep() #3 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(5005): map_deep() #4 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(2799): map_deep() #5 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(5634): stripslashes_deep() #6 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/meta.php(206): wp_unslash() #7 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/user.php(1169): update_metadata() #8 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-content/plugins/woocommerce/includes/class-wc-cart-session.php(262): update_user_meta() #9 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/class-wp-hook.php(309): WC_Cart_Session->persistent_cart_update() #10 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #11 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/plugin.php(476): WP_Hook->do_action() #12 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1276): do_action() #13 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(918): WC_Cart->add_to_cart() #14 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(790): WC_Form_Handler::add_to_cart_handler_variable() #15 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/class-wp-hook.php(307): WC_Form_Handler::add_to_cart_action() #16 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #17 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/plugin.php(476): WP_Hook->do_action() #18 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-settings.php(620): do_action() #19 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-config.php(102): require_once('/home/u57657220...') #20 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-load.php(50): require_once('/home/u57657220...') #21 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-blog-header.php(13): require_once('/home/u57657220...') #22 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/index.php(17): require('/home/u57657220...') #23 {main} thrown (rasta faile /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php, eilut?s numeris 5010) 2022-09-11T15:29:36+00:00 CRITICAL Klaidos ?inut?: Uncaught Error: The script tried to modify a property on an incomplete object. Please ensure that the class definition "MKL\PC\Choice" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php:5010 Stack trace: #0 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(5005): map_deep() #1 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(5005): map_deep() #2 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(5005): map_deep() #3 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(5005): map_deep() #4 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(2799): map_deep() #5 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(5634): stripslashes_deep() #6 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/meta.php(206): wp_unslash() #7 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/user.php(1169): update_metadata() #8 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-content/plugins/woocommerce/includes/class-wc-cart-session.php(262): update_user_meta() #9 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/class-wp-hook.php(309): WC_Cart_Session->persistent_cart_update() #10 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #11 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/plugin.php(476): WP_Hook->do_action() #12 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1276): do_action() #13 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(918): WC_Cart->add_to_cart() #14 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(790): WC_Form_Handler::add_to_cart_handler_variable() #15 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/class-wp-hook.php(307): WC_Form_Handler::add_to_cart_action() #16 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #17 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/plugin.php(476): WP_Hook->do_action() #18 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-settings.php(620): do_action() #19 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-config.php(102): require_once('/home/u57657220...') #20 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-load.php(50): require_once('/home/u57657220...') #21 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-blog-header.php(13): require_once('/home/u57657220...') #22 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/index.php(17): require('/home/u57657220...') #23 {main} thrown (rasta faile /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php, eilut?s numeris 5010) 2022-09-11T15:33:03+00:00 CRITICAL Klaidos ?inut?: Uncaught Error: The script tried to modify a property on an incomplete object. Please ensure that the class definition "MKL\PC\Choice" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php:5010 Stack trace: #0 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(5005): map_deep() #1 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(5005): map_deep() #2 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(5005): map_deep() #3 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(5005): map_deep() #4 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(2799): map_deep() #5 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(5634): stripslashes_deep() #6 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/meta.php(206): wp_unslash() #7 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/user.php(1169): update_metadata() #8 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-content/plugins/woocommerce/includes/class-wc-cart-session.php(262): update_user_meta() #9 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/class-wp-hook.php(309): WC_Cart_Session->persistent_cart_update() #10 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #11 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/plugin.php(476): WP_Hook->do_action() #12 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1276): do_action() #13 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(918): WC_Cart->add_to_cart() #14 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(790): WC_Form_Handler::add_to_cart_handler_variable() #15 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/class-wp-hook.php(307): WC_Form_Handler::add_to_cart_action() #16 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #17 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/plugin.php(476): WP_Hook->do_action() #18 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-settings.php(620): do_action() #19 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-config.php(102): require_once('/home/u57657220...') #20 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-load.php(50): require_once('/home/u57657220...') #21 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-blog-header.php(13): require_once('/home/u57657220...') #22 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/index.php(17): require('/home/u57657220...') #23 {main} thrown (rasta faile /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php, eilut?s numeris 5010) 2022-09-11T15:35:37+00:00 CRITICAL Klaidos ?inut?: Uncaught Error: The script tried to modify a property on an incomplete object. Please ensure that the class definition "MKL\PC\Choice" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php:5010 Stack trace: #0 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(5005): map_deep() #1 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(5005): map_deep() #2 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(5005): map_deep() #3 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(5005): map_deep() #4 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(2799): map_deep() #5 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(5634): stripslashes_deep() #6 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/meta.php(206): wp_unslash() #7 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/user.php(1169): update_metadata() #8 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-content/plugins/woocommerce/includes/class-wc-cart-session.php(262): update_user_meta() #9 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/class-wp-hook.php(309): WC_Cart_Session->persistent_cart_update() #10 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #11 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/plugin.php(476): WP_Hook->do_action() #12 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1276): do_action() #13 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(824): WC_Cart->add_to_cart() #14 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(796): WC_Form_Handler::add_to_cart_handler_simple() #15 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/class-wp-hook.php(307): WC_Form_Handler::add_to_cart_action() #16 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #17 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/plugin.php(476): WP_Hook->do_action() #18 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-settings.php(620): do_action() #19 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-config.php(102): require_once('/home/u57657220...') #20 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-load.php(50): require_once('/home/u57657220...') #21 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-blog-header.php(13): require_once('/home/u57657220...') #22 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/index.php(17): require('/home/u57657220...') #23 {main} thrown (rasta faile /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php, eilut?s numeris 5010) 2022-09-11T15:36:03+00:00 CRITICAL Klaidos ?inut?: Uncaught Error: The script tried to modify a property on an incomplete object. Please ensure that the class definition "MKL\PC\Choice" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php:5010 Stack trace: #0 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(5005): map_deep() #1 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(5005): map_deep() #2 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(5005): map_deep() #3 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(5005): map_deep() #4 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(2799): map_deep() #5 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php(5634): stripslashes_deep() #6 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/meta.php(206): wp_unslash() #7 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/user.php(1169): update_metadata() #8 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-content/plugins/woocommerce/includes/class-wc-cart-session.php(262): update_user_meta() #9 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/class-wp-hook.php(309): WC_Cart_Session->persistent_cart_update() #10 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #11 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/plugin.php(476): WP_Hook->do_action() #12 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1276): do_action() #13 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(824): WC_Cart->add_to_cart() #14 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(796): WC_Form_Handler::add_to_cart_handler_simple() #15 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/class-wp-hook.php(307): WC_Form_Handler::add_to_cart_action() #16 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #17 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/plugin.php(476): WP_Hook->do_action() #18 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-settings.php(620): do_action() #19 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-config.php(102): require_once('/home/u57657220...') #20 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-load.php(50): require_once('/home/u57657220...') #21 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-blog-header.php(13): require_once('/home/u57657220...') #22 /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/index.php(17): require('/home/u57657220...') #23 {main} thrown (rasta faile /home/u576572207/domains/e-locks.eu/public_html/shopelockseu/wp-includes/formatting.php, eilut?s numeris 5010)
-
This reply was modified 2 years, 5 months ago by
adamauskas.
Also I checked the clone function in Product fields section and it also doesn’t work for me, so here is the screen record, may be I am just doing something wrong?
I just checked this situation on newly installed WordPress (v 6.0.2) + WooCommerce (Version 6.9.1) without any other additional modules only with WC Fields Factory – and it is still don’t make a copy of product/variation field groups.
So I think the problem is in my actions?Which version of php are you using, php 8.X.X .?
Ok, I got the issue, I am able to replicate it with php 8.1.X,
I will find the issue and release the update ASAP.@sarkware thank you very much!
Yes, It was php 8.0 and everything started to work when I changed php version to 7.4 -
This reply was modified 2 years, 5 months ago by
- The topic ‘Clone function isn’t working’ is closed to new replies.