• If delete a product, and there is attached photo reviews, there will be critical error:

    There has been a critical error on this website.

    Learn more about troubleshooting WordPress.

    https://prnt.sc/QkV6rXMYSyVm

    On woocommerce status, the error log:

    2023-05-05T04:48:42+00:00 CRITICAL Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce-photo-reviews/admin/admin.php:5446
    Stack trace:
    #0 /var/www/mysite.com/htdocs/wp-includes/class-wp-hook.php(310): VI_WOOCOMMERCE_PHOTO_REVIEWS_Admin_Admin->delete_attachment()
    #1 /var/www/mysite.com/htdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #2 /var/www/mysite.com/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 /var/www/mysite.com/htdocs/wp-includes/post.php(6360): do_action()
    #4 /var/www/mysite.com/htdocs/wp-includes/post.php(3381): wp_delete_attachment()
    #5 /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce-photo-reviews/admin/admin.php(5429): wp_delete_post()
    #6 /var/www/mysite.com/htdocs/wp-includes/class-wp-hook.php(310): VI_WOOCOMMERCE_PHOTO_REVIEWS_Admin_Admin->delete_reviews_image()
    #7 /var/www/mysite.com/htdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #8 /var/www/mysite.com/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
    #9 /var/www/mysite.com/htdocs/wp-includes/comment.php(1476): do_action()
    #10 /var/www/mysite.com/htdocs/wp-includes/post.php(3442): wp_delete_comment()
    #11 /var/www/mysite.com/htdocs/wp-admin/edit.php(184): wp_delete_post()
    #12 {main}
      thrown in /var/www/mysite.com/htdocs/wp-content/plugins/woocommerce-photo-reviews/admin/admin.php on line 5446
    
Viewing 1 replies (of 1 total)
  • Plugin Support angelagrey

    (@angelagrey)

    Hi,

    Thank you for reaching out to us.

    May I know which version of plugin you’re using and encounter this error?

    Best regards

Viewing 1 replies (of 1 total)
  • The topic ‘CRITICAL Uncaught TypeError on Woocommerce status’ is closed to new replies.