Symfony Exception

ErrorException

HTTP 500 Internal Server Error

file_put_contents(/var/www/html/web/app/cache/acorn/framework/views/dcff06789aa5ac17f66e7fcc3a734a01cfd5eedb.php): Failed to open stream: Permission denied

Exception

ErrorException

  1.      * @param  bool  $lock
  2.      * @return int|bool
  3.      */
  4.     public function put($path$contents$lock false)
  5.     {
  6.         return file_put_contents($path$contents$lock LOCK_EX 0);
  7.     }
  8.     /**
  9.      * Write the contents of a file, replacing it atomically if it already exists.
  10.      *
  1.      * @throws \ErrorException
  2.      */
  3.     public function handleError($level$message$file ''$line 0$context = [])
  4.     {
  5.         try {
  6.             parent::handleError($level$message$file$line$context);
  7.         } catch (Throwable $e) {
  8.             if (! apply_filters('acorn/throw_error_exception'true$e)) {
  9.                 return false;
  10.             }
HandleExceptions->handleError()
  1.      * @param  bool  $lock
  2.      * @return int|bool
  3.      */
  4.     public function put($path$contents$lock false)
  5.     {
  6.         return file_put_contents($path$contents$lock LOCK_EX 0);
  7.     }
  8.     /**
  9.      * Write the contents of a file, replacing it atomically if it already exists.
  10.      *
  1.             $this->ensureCompiledDirectoryExists(
  2.                 $compiledPath $this->getCompiledPath($this->getPath())
  3.             );
  4.             $this->files->put($compiledPath$contents);
  5.         }
  6.     }
  7.     /**
  8.      * Append the file path to the compiled string.
  1.         // If this given view has expired, which means it has simply been edited since
  2.         // it was last compiled, we will re-compile the views so we can evaluate a
  3.         // fresh copy of the view. We'll pass the compiler the path of the view.
  4.         if ($this->compiler->isExpired($path)) {
  5.             $this->compiler->compile($path);
  6.         }
  7.         // Once we have the path to the compiled file, we will evaluate the paths with
  8.         // typical PHP just like any other templates. We also keep a stack of views
  9.         // which have been rendered for right exception messages to be generated.
  1.      *
  2.      * @return string
  3.      */
  4.     protected function getContents()
  5.     {
  6.         return $this->engine->get($this->path$this->gatherData());
  7.     }
  8.     /**
  9.      * Get the data bound to the view instance.
  10.      *
  1.         // clear out the sections for any separate views that may be rendered.
  2.         $this->factory->incrementRender();
  3.         $this->factory->callComposer($this);
  4.         $contents $this->getContents();
  5.         // Once we've finished rendering the view, we'll decrement the render count
  6.         // so that each sections get flushed out next time a view is created and
  7.         // no old sections are staying around in the memory of an environment.
  8.         $this->factory->decrementRender();
  1.      * @throws \Throwable
  2.      */
  3.     public function render(callable $callback null)
  4.     {
  5.         try {
  6.             $contents $this->renderContents();
  7.             $response = isset($callback) ? $callback($this$contents) : null;
  8.             // Once we have the contents of the view, we will flush the sections if we are
  9.             // done rendering all views so that there is nothing left hanging over when
  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/html/web/app/themes/avla/index.php') in /var/www/html/web/wp/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/html/web/wp/wp-includes/template-loader.php') in /var/www/html/web/wp/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/html/web/wp/wp-blog-header.php') in /var/www/html/web/index.php (line 6)
  1. <?php
  2. /**
  3.  * WordPress View Bootstrapper
  4.  */
  5. define('WP_USE_THEMES'true);
  6. require __DIR__ '/wp/wp-blog-header.php';

Stack Trace

ErrorException
ErrorException:
file_put_contents(/var/www/html/web/app/cache/acorn/framework/views/dcff06789aa5ac17f66e7fcc3a734a01cfd5eedb.php): Failed to open stream: Permission denied

  at /var/www/html/web/app/themes/avla/vendor/illuminate/filesystem/Filesystem.php:187
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
     (/var/www/html/web/app/themes/avla/vendor/roots/acorn/src/Roots/Acorn/Bootstrap/HandleExceptions.php:54)
  at Roots\Acorn\Bootstrap\HandleExceptions->handleError()
  at file_put_contents()
     (/var/www/html/web/app/themes/avla/vendor/illuminate/filesystem/Filesystem.php:187)
  at Illuminate\Filesystem\Filesystem->put()
     (/var/www/html/web/app/themes/avla/vendor/illuminate/view/Compilers/BladeCompiler.php:169)
  at Illuminate\View\Compilers\BladeCompiler->compile()
     (/var/www/html/web/app/themes/avla/vendor/illuminate/view/Engines/CompilerEngine.php:55)
  at Illuminate\View\Engines\CompilerEngine->get()
     (/var/www/html/web/app/themes/avla/vendor/illuminate/view/View.php:139)
  at Illuminate\View\View->getContents()
     (/var/www/html/web/app/themes/avla/vendor/illuminate/view/View.php:122)
  at Illuminate\View\View->renderContents()
     (/var/www/html/web/app/themes/avla/vendor/illuminate/view/View.php:91)
  at Illuminate\View\View->render()
     (/var/www/html/web/app/themes/avla/index.php:21)
  at include('/var/www/html/web/app/themes/avla/index.php')
     (/var/www/html/web/wp/wp-includes/template-loader.php:106)
  at require_once('/var/www/html/web/wp/wp-includes/template-loader.php')
     (/var/www/html/web/wp/wp-blog-header.php:19)
  at require('/var/www/html/web/wp/wp-blog-header.php')
     (/var/www/html/web/index.php:6)