disqus / disqus-wordpress-plugin

WordPress plugin for Disqus (Latest version)
https://disqus.com/
34 stars 25 forks source link

Incompatibility with Sage-based (WP theme framework) sites #34

Open kirylrb opened 6 years ago

kirylrb commented 6 years ago

Plugin causing the error on previewing draft posts in Wordpress with themes which based on Sage framework. https://discourse.roots.io/t/uncaught-invalidargumentexception/9956

Fatal error: Uncaught InvalidArgumentException: Unrecognized extension in file: in /home/forge/kobyinc.celertron.com/build_production/blog/wp-content/themes/kobyinc/vendor/illuminate/view/Factory.php:258 Stack trace: #0 /home/forge/kobyinc.celertron.com/build_production/blog/wp-content/themes/kobyinc/vendor/illuminate/view/Factory.php(227): Illuminate\View\Factory->getEngineFromPath(NULL) #1 /home/forge/kobyinc.celertron.com/build_production/blog/wp-content/themes/kobyinc/vendor/illuminate/view/Factory.php(112): Illuminate\View\Factory->viewInstance(NULL, NULL, Array) #2 [internal function]: Illuminate\View\Factory->file(NULL, Array, Array) #3 /home/forge/kobyinc.celertron.com/build_production/blog/wp-content/themes/kobyinc/app/lib/Sage/Template/Blade.php(127): call_user_func_array(Array, Array) #4 /home/forge/kobyinc.celertron.com/build_production/blog/wp-content/themes/kobyinc/app/lib/Sage/Template/Blade.php(62): Roots\Sage\Template\Blade->__call('file', Array) #5 /home/forge/kobyinc.celertron.com/build_production/blog in /home/forge/kobyinc.celertron.com/build_production/blog/wp-content/themes/kobyinc/vendor/illuminate/view/Factory.php on line 258

ryanvalentin commented 6 years ago

Hmmm, I'm unfamiliar with the Sage framework and the exception isn't pointing out any issues to me specifically with the Disqus plugin. Do you have any pointers or additional information, such as what the unrecognized extension in the file is?

alexanderlam commented 5 years ago

Looks like the issue is with the hook on comments_template - it conflicts with Laravel Blade.

Please see: https://github.com/roots/sage/issues/2035#issuecomment-369673419