Symfony Exception

InvalidArgumentException

HTTP 500 Internal Server Error

Unrecognized extension in file: /var/www/vhosts/longavia.lt/longavia.eu.

Exception

InvalidArgumentException

  1.      * @throws \InvalidArgumentException
  2.      */
  3.     public function getEngineFromPath($path)
  4.     {
  5.         if (! $extension $this->getExtension($path)) {
  6.             throw new InvalidArgumentException("Unrecognized extension in file: {$path}.");
  7.         }
  8.         $engine $this->extensions[$extension];
  9.         return $this->engines->resolve($engine);
  1.      * @param  \Illuminate\Contracts\Support\Arrayable|array  $data
  2.      * @return \Illuminate\Contracts\View\View
  3.      */
  4.     protected function viewInstance($view$path$data)
  5.     {
  6.         return new View($this$this->getEngineFromPath($path), $view$path$data);
  7.     }
  8.     /**
  9.      * Determine if a given view exists.
  10.      *
  1.      */
  2.     public function file($path$data = [], $mergeData = [])
  3.     {
  4.         $data array_merge($mergeData$this->parseData($data));
  5.         return tap($this->viewInstance($path$path$data), function ($view) {
  6.             $this->callCreator($view);
  7.         });
  8.     }
  9.     /**
  1.         return $factory;
  2.     }
  3.     return $factory->exists($view)
  4.         ? $factory->make($view$data$mergeData)
  5.         : $factory->file($view$data$mergeData);
  6. }
  7. /**
  8.  * @deprecated
  1. }
  2. if (! function_exists('view')) {
  3.     function view()
  4.     {
  5.         return Roots\view(...func_get_args());
  6.     }
  7. }
  1.   <body <?php body_class(); ?>>
  2.     <?php wp_body_open(); ?>
  3.     <?php do_action('get_header'); ?>
  4.     <div id="app">
  5.       <?php echo view(app('sage.view'), app('sage.data'))->render(); ?>
  6.     </div>
  7.     <?php do_action('get_footer'); ?>
  8.     <?php wp_footer(); ?>
  9.   </body>
include('/var/www/vhosts/longavia.lt/longavia.eu/wp-content/themes/longavia/index.php') in /var/www/vhosts/longavia.lt/longavia.eu/wp-includes/template-loader.php (line 106)
  1.      *
  2.      * @param string $template The path of the template to include.
  3.      */
  4.     $template apply_filters'template_include'$template );
  5.     if ( $template ) {
  6.         include $template;
  7.     } elseif ( current_user_can'switch_themes' ) ) {
  8.         $theme wp_get_theme();
  9.         if ( $theme->errors() ) {
  10.             wp_die$theme->errors() );
  11.         }
require_once('/var/www/vhosts/longavia.lt/longavia.eu/wp-includes/template-loader.php') in /var/www/vhosts/longavia.lt/longavia.eu/wp-blog-header.php (line 19)
  1.     // Set up the WordPress query.
  2.     wp();
  3.     // Load the theme template.
  4.     require_once ABSPATH WPINC '/template-loader.php';
  5. }
require('/var/www/vhosts/longavia.lt/longavia.eu/wp-blog-header.php') in /var/www/vhosts/longavia.lt/longavia.eu/index.php (line 17)
  1.  * @var bool
  2.  */
  3. define'WP_USE_THEMES'true );
  4. /** Loads the WordPress Environment and Template */
  5. require __DIR__ '/wp-blog-header.php';

Stack Trace

InvalidArgumentException
InvalidArgumentException:
Unrecognized extension in file: /var/www/vhosts/longavia.lt/longavia.eu.

  at /var/www/vhosts/longavia.lt/longavia.eu/wp-content/plugins/acorn/vendor/illuminate/view/Factory.php:305
  at Illuminate\View\Factory->getEngineFromPath()
     (/var/www/vhosts/longavia.lt/longavia.eu/wp-content/plugins/acorn/vendor/illuminate/view/Factory.php:274)
  at Illuminate\View\Factory->viewInstance()
     (/var/www/vhosts/longavia.lt/longavia.eu/wp-content/plugins/acorn/vendor/illuminate/view/Factory.php:122)
  at Illuminate\View\Factory->file()
     (/var/www/vhosts/longavia.lt/longavia.eu/wp-content/plugins/acorn/src/Roots/helpers.php:78)
  at Roots\view()
     (/var/www/vhosts/longavia.lt/longavia.eu/wp-content/plugins/acorn/src/Roots/globals.php:13)
  at view()
     (/var/www/vhosts/longavia.lt/longavia.eu/wp-content/themes/longavia/index.php:14)
  at include('/var/www/vhosts/longavia.lt/longavia.eu/wp-content/themes/longavia/index.php')
     (/var/www/vhosts/longavia.lt/longavia.eu/wp-includes/template-loader.php:106)
  at require_once('/var/www/vhosts/longavia.lt/longavia.eu/wp-includes/template-loader.php')
     (/var/www/vhosts/longavia.lt/longavia.eu/wp-blog-header.php:19)
  at require('/var/www/vhosts/longavia.lt/longavia.eu/wp-blog-header.php')
     (/var/www/vhosts/longavia.lt/longavia.eu/index.php:17)