Home Forums WoodMart support forum Critical Error On Products

Critical Error On Products

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #628748

    For 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

    #628765

    Artem Temos
    Keymaster
    Xtemos team

    Hello,

    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,

    #628883

    So 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 fixed

    #629176

    Artem Temos
    Keymaster
    Xtemos team

    Hello,

    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

    #629484

    It 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 now

    #629529

    Artem Temos
    Keymaster
    Xtemos team

    Hello,

    OK, how can we get this app working with your website and check this issue?

    Kind Regards

    #630158

    hi,

    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

    #630200

    Artem Temos
    Keymaster
    Xtemos team

    We 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.

    #630278

    as 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

    #630285

    Artem Temos
    Keymaster
    Xtemos team

    The screenshot you sent is not from the mobile APP. We tried to save more than 20 times and didn’t get this error.

    #630860

    i 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/

    #631104

    Artem Temos
    Keymaster
    Xtemos team

    Try 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 );
    #631182

    please guide me on how i can add this?
    can i use code snippet plugin to add ?

    #631221

    Artem Temos
    Keymaster
    Xtemos team

    You can find the instructions about our child theme in the documentation here https://xtemos.com/docs-topic/setup-child-theme/

Viewing 14 posts - 1 through 14 (of 14 total)