• Resolved kovalchik8

    (@kovalchik8)


    Visiting product page via admin panel no reviews are showing up at Reviews meta box, but reviews actually exist on Reviews page. I’ve debugged code and the issue is as following:

    After Product page in admin is loaded it’s trying to fetch comments (reviews) via ajax. Native wp PHP code is executing:

    $args = apply_filters( ‘comments_list_table_query_args’, $args );

    This code is hooked with Woocommerce method exclude_reviews_from_comments (file ReviewsCommentsOverrides.php) and makes what it is supposed to make – excludes product post type from the comments query.

    So why this hook is triggered when user is visiting Product page in admin?

    Also when adding review manually via admin, rating option is missing, but everything works fine on front-end.

    • This topic was modified 2 years ago by kovalchik8.
    • This topic was modified 2 years ago by kovalchik8.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Saif

    (@babylon1999)

    Hello @kovalchik8,

    If I understand this correctly, the product reviews are hidden when visiting the product as an admin.

    This doesn’t happen on any of my test sites.


    Link to image: https://d.pr/i/w0HIHm

    Could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.

    It’s also worth checking if there are any fatal error logs from WooCommerce > Status > Logs and choosing from the drop-down menu the fatal-errors.log option.

    Look forward to hearing back from you.

    Thread Starter kovalchik8

    (@kovalchik8)

    Not as admin visiting front end but visiting product page in backend. The issue was reproduced with several sites including default wp themes.

    There is a metabox Reviews at the very bottom of backend product page. No reviews are showing there. Even after adding them through this metabox they are not showing after page is reloaded. Also there is no field for adding rating in backend when adding reviews manually.

    screenshot

    anastas10s

    (@anastas10s)

    Hi there @kovalchik8

    Thank you for reaching back, with further information on this!

    It appears there is a bug report about this, #34594.

    Feel free to subscribe, over at GitHub, for receiving all the updates on its progress.

    I hope that helps!

    • This reply was modified 2 years ago by anastas10s. Reason: typo
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Product reviews are not showing on a product page in admin.’ is closed to new replies.