Home › Forums › WoodMart support forum › Error while reply to the comment
Error while reply to the comment
- This topic has 12 replies, 2 voices, and was last updated 1 year, 10 months ago by Artem Temos.
-
AuthorPosts
-
February 20, 2023 at 11:46 am #444584
johnyParticipantHello,
I am trying to reply to the comment on the product. On the backend, if I try to reply to the comment, made by user, and click on reply button. Comment does not show.
I thought due to plugin conflicts I am unable to comment. So I deactivated all the plugins . But it did not solve the problem.
After that, I changed the theme to default “Twenty Twenty-Three” theme, and now I can comment.
Attachments:
You must be logged in to view attached files.February 20, 2023 at 12:17 pm #444595
Artem TemosKeymasterHello,
Please, disable all plugins that are not related to our theme. We will log in and check what is wrong there. You can leave only the following plugins that are required for our theme:
WoodMart core
WooCommerce
Elementor/WPBakery page builderThank you in advance
February 20, 2023 at 12:37 pm #444607
johnyParticipantHello,
All the plugins except WoodMart core, WooCommerce and Elementor have been disabled. Please check.
If you solve the error, please let me know. I will make changes in the live website too. This is the clone of main website.
February 20, 2023 at 12:40 pm #444613
Artem TemosKeymasterHello,
Please, switch to the parent theme also. It may be affected by some custom PHP code in the child theme.
Kind Regards
February 20, 2023 at 12:43 pm #444618
johnyParticipantDone.
February 20, 2023 at 3:13 pm #444657
Artem TemosKeymasterIt seems to be working well now. Please, check from your end.
Here is a screenshot https://gyazo.com/2de9ac4b8e54c0afba9e951ee78042eaFebruary 20, 2023 at 6:22 pm #444753
johnyParticipantDid you make any changes to the theme/code? If yes, would you mind sharing what changes did you make so I can make them on the live site too?
February 21, 2023 at 10:09 am #444908
Artem TemosKeymasterNo, we didn’t change anything on your website.
February 22, 2023 at 9:30 am #445276
johnyParticipantHello,
Thanks for the reply.I can’t stay on the main theme. I have to switch back to the child theme.
I removed all the code from child theme e.g from Additional CSS, theme functions, and from stylesheet too. But the error is still there. Would you mind what should I do?
February 22, 2023 at 9:44 am #445278
johnyParticipantI just found that if I remove the following code from child’s theme function, the website works. But don’t know what the code does. I think this is woodmart code.
<?php
/**
* Enqueue script and styles for child theme
*/
function woodmart_child_enqueue_styles() {
wp_enqueue_style( ‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array( ‘woodmart-style’ ), woodmart_get_theme_info( ‘Version’ ) );
}
add_action( ‘wp_enqueue_scripts’, ‘woodmart_child_enqueue_styles’, 10010 );February 22, 2023 at 10:10 am #445293
Artem TemosKeymasterHello,
This code should not affect the comment section. Please, remove all the rest of your custom code and leave this one. We will check how it works again.
Kind Regards
February 22, 2023 at 11:26 am #445315
johnyParticipantDone. Please check now.
February 22, 2023 at 12:19 pm #445336
Artem TemosKeymasterHello,
We checked everything but can’t understand why it gives an error. We also tested the same code in the child theme on our environment and it doesn’t cause such problems. Anyway, all the replies are posted correctly and you can see them when you refresh the page. So you can ignore these errors for now and use comments replies.
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register