ERROR F
-
Good morning, I have a fatal error in the product sheet.
AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to a member function comments_link() on null in /xxx/xxx/xxxxx/huertadepancha.com/httpdocs/wp-content/plugins/customer-reviews-woocommerce/templates/cr-ajax-product-reviews.php:69\nStack trace:\n#0 /xxx/xxx/xxxxx/huertadepancha.com/httpdocs/wp-includes/comment-template.php(1629): require()\n#1 /xxx/xxx/xxxxx/huertadepancha.com/httpdocs/wp-content/plugins/woocommerce/templates/single-product/tabs/tabs.php(47): comments_template()\n#2 /xxx/xxx/xxxxx/huertadepancha.com/httpdocs/wp-content/plugins/woocommerce/includes/wc-core-functions.php(346): include(‘…’)\n#3 /xxx/xxx/xxxxx/huertadepancha.com/httpdocs/wp-content/plugins/elementor-pro/modules/woocommerce/widgets/product-data-tabs.php(286): wc_get_template()\n#4 /xxx/xxx/xxxxx/huertadepancha.com/httpdocs/wp-content/plugins/elementor/includes/base/controls-stack.php(2374): ElementorPro\Modules\Woocommerce\Widgets\Product_Data_Tabs->render()\n#5 /xxx/xxx/xxxxx/huertadepancha.com/httpdocs/wp-content/plugins/…’
I was able to solve it by modifying the file plugins/customer-reviews-woocommerce/templates/cr-ajax-product-reviews.php modifying the if in line 65 if( $woocommerce_wpml ) : by this if ( $woocommerce_wpml && isset( $woocommerce_wpml->comments ) && method_exists( $woocommerce_wpml->comments, ‘comments_link’ ) ) :
Do you have it under control?
The topic ‘ERROR F’ is closed to new replies.