What is the current behavior?
Error on single products
What is the expected or desired behavior?
Please provide steps to reproduce, including full log output:
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
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.
Most helpful comment
Increase priority on
comments_templatefilter.app/filters.php
```diff
add_filter('comments_template', function ($comments_template) {
//...
-});
+, 100);