Home Forums WoodMart support forum I can’t edit the Single Product template from Update Elementor.

I can’t edit the Single Product template from Update Elementor.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #611029

    McQueen
    Participant

    Hello,

    I’m sorry, the problem has not been resolved, it was only temporary.

    Since the last Elementor update, I have been experiencing problems with the single product layout template.

    The templates I already have won’t open, and while the new ones I create work fine, I get an error when trying to save them, and then I can’t access them anymore. Here is the error message.

    Could you please take a look? I have deactivated all plugins, leaving only WooCommerce, Elementor, and Wordmart Core, but the issue persists.

    I look forward to your response. Thank you.

    Fatal error: Uncaught Error: count(): Argument #1 ($value) must be of type Countable|array, false given
    in /var/www/www.*****.com/wp-includes/formatting.php on line 3495
    
    Call stack:
    
    convert_smilies()
    wp-includes/class-wp-hook.php:324
    WP_Hook::apply_filters()
    wp-includes/plugin.php:205
    apply_filters()
    wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:1871
    WP_REST_Posts_Controller::prepare_item_for_response()
    wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:575
    WP_REST_Posts_Controller::get_item()
    wp-includes/rest-api/class-wp-rest-server.php:1230
    WP_REST_Server::respond_to_request()
    wp-includes/rest-api/class-wp-rest-server.php:1063
    WP_REST_Server::dispatch()
    wp-includes/rest-api.php:547
    rest_do_request()
    wp-includes/rest-api.php:2925
    rest_preload_api_request()
    array_reduce()
    wp-includes/block-editor.php:750
    block_editor_rest_api_preload()
    wp-admin/edit-form-blocks.php:80
    require()
    wp-admin/post.php:187
    #611079

    McQueen
    Participant

    Hello,

    I have discovered that this happens when I add the “Add cart” plugin and save the changes. From that moment on, I can no longer access the template.

    Could you please check it? Thank you.

    Best regards.

    #611113

    McQueen
    Participant

    Hello,

    I have identified that the issue comes from the WordPress Core “formatting.php” file on line 3495.

    I have already reported the issue to WordPress through the following link: https://core.trac.wordpress.org/ticket/62370

    However, I would like to know if you are aware of this problem and if there is anything that can be done from your theme’s side to resolve it.

    Thank you.

    Best regards.

    #611228

    Luke Nielsen
    Keymaster

    Hello,

    Could you please check how it works with some default WordPress themes like TwentyTwenty or WooCommerce Storefront to understand if is it our theme issue or not?

    Kind Regards

    #611236

    McQueen
    Participant

    Hello,

    The issue is in the Layout section of Woodmart. Why do you want me to try another theme?

    I managed to resolve it by modifying the Core file in WordPress. You can see how I did it here: https://core.trac.wordpress.org/ticket/62370.

    However, this doesn’t seem like a viable long-term solution. Do you have any idea why this is happening?

    Thanks. Best regards.

    #611243

    Luke Nielsen
    Keymaster

    Hello,

    Did you try to check how it works when the Layout is disabled? If not, can you please check how it works when the Layout is disabled? If the same issue happens when the Layouts is disabled then check how it works on the default theme.

    It will help us to understand from where the issue comes. Maybe it’s something directly related to WP or not.

    Looking forward to collaborating with you!

    Kind Regards

    #611246

    McQueen
    Participant

    Hello,

    If I don’t modify the formatting.php file, the error persists regardless of the theme I use.

    Let me know if you need anything else. Thanks.

    Best regards

    #611316

    Luke Nielsen
    Keymaster

    Hello,

    It means that it’s something related to WP itself as this issue persists regardless of the theme. I hope they will fix it at their core.

    Let me know if you have any questions.

    Kind Regards

    #611318

    McQueen
    Participant

    Hello,

    Ok, well I’ll wait to see if they listen to me or if I’ll have to change the function with each update 🙁

    Thank you.

    #611532

    Luke Nielsen
    Keymaster

    Hello,

    Okay, please let me know the result.

    Thank you for your time.

    Kind Regards

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