Sage: WooCommerce reviews conflict

Created on 12 Feb 2018  路  3Comments  路  Source: roots/sage

Submit a feature request or bug report

What is the current behavior?
Error on single products

What is the expected or desired behavior?

Show single product

Bug report

Please provide steps to reproduce, including full log output:

  1. Install, activate, setup WooCommerce;
  2. WooCommerce > Settings > Products > 'Enable product reviews'

Output:
Fatal error: Uncaught InvalidArgumentException: Unrecognized extension in file: reviews in /app/public/wp-content/themes/xxxxxx/vendor/illuminate/view/Factory.php:258 Stack trace: #0 /app/public/wp-content/themes/xxxxxx/vendor/illuminate/view/Factory.php(227): Illuminate\View\Factory->getEngineFromPath('reviews') #1 /app/public/wp-content/themes/xxxxxx/vendor/illuminate/view/Factory.php(112): Illuminate\View\Factory->viewInstance('reviews', 'reviews', Array) #2 [internal function]: Illuminate\View\Factory->file('reviews', Array, Array) #3 /app/public/wp-content/themes/xxxxxx/vendor/roots/sage-lib/Template/Blade.php(138): call_user_func_array(Array, Array) #4 /app/public/wp-content/themes/xxxxxx/vendor/roots/sage-lib/Template/Blade.php(69): Roots\Sage\Template\Blade->__call('file', Array) #5 /app/public/wp-content/themes/xxxxxx/app/helpers.php(70): Roots\Sage\Template\Blade->compiledPath('reviews', Array) #6 /app/public/wp-content/themes/xxxxxx/app/filters.php( in /app/public/wp-content/themes/xxxxxx/vendor/illuminate/view/Factory.php on line 258

Disabling product reviews fixed it.

Please describe your local environment:

WordPress version: 4.9.4
WooCommerce version: 3.3.1

OS: -

NPM/Node version: 8.9.4

Where did the bug happen? Development or remote servers?
Both

Is there a related Discourse thread or were any utilized (please link them)?

None

Most helpful comment

Increase priority on comments_template filter.

app/filters.php
```diff
add_filter('comments_template', function ($comments_template) {
//...
-});
+, 100);

All 3 comments

I confirm this bug.

Increase priority on comments_template filter.

app/filters.php
```diff
add_filter('comments_template', function ($comments_template) {
//...
-});
+, 100);

I confirm this bug. @QWp6t suggestion fixed this.

Was this page helpful?
0 / 5 - 0 ratings