Home / Forums / WoodMart support forum / Critical Error On Products
Home › Forums › WoodMart support forum › Critical Error On Products
Critical Error On Products
- This topic has 13 replies, 2 voices, and was last updated 1 year, 5 months ago by
Artem Temos.
-
AuthorPosts
-
January 10, 2025 at 11:48 am #628748
manoranjan.panigrahi10ParticipantFor the last few weeks i’m noticing that whenever i try to update any products on the website through the WooCommerce App, it gets a critical error on that products page. upon enabling displayError option in php setting i get this https://paste.pics/SN6FK
i reached out to hosting support and they said its a issue with the theme. i also switched the theme and then it was fine but with woodmart theme i’m getting this issue.
when i update the product again from the admin pane, it gets fixed
please help me with this as this critical error on products is bringing my overall sales down
January 10, 2025 at 12:48 pm #628765Hello,
To assist you more effectively, could you please provide additional details regarding the issues you’re experiencing? Including screenshots and a step-by-step guide to reproduce the problem on your website would greatly aid us in diagnosing and resolving the issue.
We appreciate your cooperation and look forward to assisting you further.
Best regards,
January 10, 2025 at 9:23 pm #628883
manoranjan.panigrahi10ParticipantSo its happening randomly, if i updated 20 products from the woo app, around 15 products are getting this error. i don’t know how and what exactly is causing this. but i’ve attached screenshot https://paste.pics/SN6FK
i took this today when i got the issue.i don’t know how to replicate it again but this is all i’ve got for the issues.
and as i said changing the theme its getting fixedJanuary 13, 2025 at 10:51 am #629176Hello,
Anyway, please write all the steps on how to try to reproduce it. We will try to do this multiple times to see the error and fix it.
Kind Regards
January 14, 2025 at 9:58 am #629484
manoranjan.panigrahi10ParticipantIt is only coming when the products are being updated from the WooCommerce App, that’s it.
I’ve given you all the other details above. please if you can help with this nowJanuary 14, 2025 at 11:14 am #629529Hello,
OK, how can we get this app working with your website and check this issue?
Kind Regards
January 16, 2025 at 10:50 am #630158
manoranjan.panigrahi10Participanthi,
its official woocommerce app, need to create a jepack account and use it.
I’ve attached the id pass to login to the app. you need to install the app from app store or play store
January 16, 2025 at 12:34 pm #630200We have tested a lot of products but don’t see the error https://monosnap.com/file/u5szwT0GsNGsEL3KTZdykLAWx5f0R9
Please let me know the name of the product once you get the error again.January 16, 2025 at 3:34 pm #630278
manoranjan.panigrahi10Participantas i mentioned above it occurs randomly, i attached a screenshot of the error if you can please check that and let me know if anything can be done for this
January 16, 2025 at 3:38 pm #630285The screenshot you sent is not from the mobile APP. We tried to save more than 20 times and didn’t get this error.
January 18, 2025 at 9:53 pm #630860
manoranjan.panigrahi10Participanti think you didnt get the issue.
when i try to update the product from the app, it get updated but some of them show error on the website, on the individual product page. not on the app.
again, today i updated few products and this one is still showing error check. https://shufflegames.co.in/product/upmath-division/
January 20, 2025 at 1:10 pm #631104Try to add the following PHP code snippet to the child theme functions.php file to fix this
function wd_exclude_post_meta_from_woocommerce_app( $response, $product, $request ) { $excluded_meta_keys = [ 'wd_page_css_files', 'wd_page_css_files_mobile', ]; if ( isset( $response->data['meta_data'] ) && is_array( $response->data['meta_data'] ) ) { foreach ( $response->data['meta_data'] as $index => $meta ) { if ( is_object( $meta ) && isset( $meta->key ) && in_array( $meta->key, $excluded_meta_keys, true ) ) { unset( $response->data['meta_data'][ $index ] ); } elseif ( is_array( $meta ) && isset( $meta['key'] ) && in_array( $meta['key'], $excluded_meta_keys, true ) ) { unset( $response->data['meta_data'][ $index ] ); } } $response->data['meta_data'] = array_values( $response->data['meta_data'] ); } return $response; } add_filter( 'woocommerce_rest_prepare_product_object', 'wd_exclude_post_meta_from_woocommerce_app', 10, 3 );January 20, 2025 at 4:02 pm #631182
manoranjan.panigrahi10Participantplease guide me on how i can add this?
can i use code snippet plugin to add ?January 20, 2025 at 5:42 pm #631221You can find the instructions about our child theme in the documentation here https://xtemos.com/docs-topic/setup-child-theme/
-
AuthorPosts
- You must be logged in to create new topics. Login / Register