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.
- This topic has 9 replies, 2 voices, and was last updated 1 day, 22 hours ago by Luke Nielsen.
-
AuthorPosts
-
November 9, 2024 at 1:43 pm #611029
McQueenParticipantHello,
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
November 9, 2024 at 9:15 pm #611079
McQueenParticipantHello,
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.
November 10, 2024 at 2:08 pm #611113
McQueenParticipantHello,
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.
November 11, 2024 at 12:29 pm #611228
Luke NielsenKeymasterHello,
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
November 11, 2024 at 12:46 pm #611236
McQueenParticipantHello,
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.
November 11, 2024 at 12:56 pm #611243
Luke NielsenKeymasterHello,
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
November 11, 2024 at 1:09 pm #611246
McQueenParticipantHello,
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
November 11, 2024 at 3:50 pm #611316
Luke NielsenKeymasterHello,
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
November 11, 2024 at 3:51 pm #611318
McQueenParticipantHello,
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.
November 12, 2024 at 10:28 am #611532
Luke NielsenKeymasterHello,
Okay, please let me know the result.
Thank you for your time.
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register