Home Forums WoodMart support forum Error while reply to the comment

Error while reply to the comment

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #444584

    johny
    Participant

    Hello,

    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.
    #444595

    Artem Temos
    Keymaster

    Hello,

    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 builder

    Thank you in advance

    #444607

    johny
    Participant

    Hello,

    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.

    #444613

    Artem Temos
    Keymaster

    Hello,

    Please, switch to the parent theme also. It may be affected by some custom PHP code in the child theme.

    Kind Regards

    #444618

    johny
    Participant

    Done.

    #444657

    Artem Temos
    Keymaster

    It seems to be working well now. Please, check from your end.
    Here is a screenshot https://gyazo.com/2de9ac4b8e54c0afba9e951ee78042ea

    #444753

    johny
    Participant

    Did 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?

    #444908

    Artem Temos
    Keymaster

    No, we didn’t change anything on your website.

    #445276

    johny
    Participant

    Hello,
    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?

    #445278

    johny
    Participant

    I 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 );

    #445293

    Artem Temos
    Keymaster

    Hello,

    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

    #445315

    johny
    Participant

    Done. Please check now.

    #445336

    Artem Temos
    Keymaster

    Hello,

    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

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