template.aitortxo.eus Open in urlscan Pro
95.121.54.140  Public Scan

Submitted URL: http://template.aitortxo.eus/
Effective URL: https://template.aitortxo.eus/
Submission: On May 15 via api from US — Scanned from US

Form analysis 0 forms found in the DOM

Text Content

SYMFONY EXCEPTION

Symfony Docs


UNEXPECTEDVALUEEXCEPTION


HTTP 500 INTERNAL SERVER ERROR


THE STREAM OR FILE "/VAR/WWW/AITORTXO.EUS/TEMPLATE/STORAGE/LOGS/LARAVEL.LOG"
COULD NOT BE OPENED IN APPEND MODE: FAILED TO OPEN STREAM: PERMISSION DENIED
THE EXCEPTION OCCURRED WHILE ATTEMPTING TO LOG: THE
/VAR/WWW/AITORTXO.EUS/TEMPLATE/BOOTSTRAP/CACHE DIRECTORY MUST BE PRESENT AND
WRITABLE.
CONTEXT: {"EXCEPTION":{}}


Exception Stack Trace


EXCEPTION


UNEXPECTEDVALUEEXCEPTION

in
/var/www/aitortxo.eus/template/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
(line 137)
 132.                 restore_error_handler();
 133.             }
 134.             if (!is_resource($stream)) {
 135.                 $this->stream = null;
 136. 
 137.                 throw new \UnexpectedValueException(sprintf('The stream or file "%s" could not be opened in append mode: '.$this->errorMessage, $url) . Utils::getRecordMessageForException($record));
 138.             }
 139.             stream_set_chunk_size($stream, $this->streamChunkSize);
 140.             $this->stream = $stream;
 141.         }
 142. 

in
/var/www/aitortxo.eus/template/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php
-> write (line 44)
 39.             $record = $this->processRecord($record);
 40.         }
 41. 
 42.         $record->formatted = $this->getFormatter()->format($record);
 43. 
 44.         $this->write($record);
 45. 
 46.         return false === $this->bubble;
 47.     }
 48. 
 49.     /**

in /var/www/aitortxo.eus/template/vendor/monolog/monolog/src/Monolog/Logger.php
-> handle (line 389)
 384.                 }
 385. 
 386.                 // once the record is initialized, send it to all handlers as long as the bubbling chain is not interrupted
 387.                 try {
 388.                     $handled = true;
 389.                     if (true === $handler->handle(clone $record)) {
 390.                         break;
 391.                     }
 392.                 } catch (Throwable $e) {
 393.                     $this->handleException($e, $record);
 394. 

in /var/www/aitortxo.eus/template/vendor/monolog/monolog/src/Monolog/Logger.php
-> addRecord (line 644)
 639.      * @param string|Stringable $message The log message
 640.      * @param mixed[]           $context The log context
 641.      */
 642.     public function error(string|\Stringable $message, array $context = []): void
 643.     {
 644.         $this->addRecord(Level::Error, (string) $message, $context);
 645.     }
 646. 
 647.     /**
 648.      * Adds a log record at the CRITICAL level.
 649.      *

in
/var/www/aitortxo.eus/template/vendor/laravel/framework/src/Illuminate/Log/Logger.php
-> error (line 184)
 179.      * @param  array  $context
 180.      * @return void
 181.      */
 182.     protected function writeLog($level, $message, $context): void
 183.     {
 184.         $this->logger->{$level}(
 185.             $message = $this->formatMessage($message),
 186.             $context = array_merge($this->context, $context)
 187.         );
 188. 
 189.         $this->fireLogEvent($level, $message, $context);

in
/var/www/aitortxo.eus/template/vendor/laravel/framework/src/Illuminate/Log/Logger.php
-> writeLog (line 97)
 92.       * @param  array  $context
 93.       * @return void
 94.       */
 95.      public function error($message, array $context = []): void
 96.      {
 97.          $this->writeLog(__FUNCTION__, $message, $context);
 98.      }
 99.  
 100.     /**
 101.      * Log a warning message to the logs.
 102.      *

in
/var/www/aitortxo.eus/template/vendor/laravel/framework/src/Illuminate/Log/LogManager.php
-> error (line 693)
 688.      * @param  array  $context
 689.      * @return void
 690.      */
 691.     public function error($message, array $context = []): void
 692.     {
 693.         $this->driver()->error($message, $context);
 694.     }
 695. 
 696.     /**
 697.      * Exceptional occurrences that are not errors.
 698.      *

in
/var/www/aitortxo.eus/template/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php
-> error (line 375)
 370.         );
 371. 
 372.         $context = $this->buildExceptionContext($e);
 373. 
 374.         method_exists($logger, $level)
 375.             ? $logger->{$level}($e->getMessage(), $context)
 376.             : $logger->log($level, $e->getMessage(), $context);
 377.     }
 378. 
 379.     /**
 380.      * Determine if the exception should be reported.

in
/var/www/aitortxo.eus/template/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php
-> reportThrowable (line 336)
 331. 
 332.         if ($this->shouldntReport($e)) {
 333.             return;
 334.         }
 335. 
 336.         $this->reportThrowable($e);
 337.     }
 338. 
 339.     /**
 340.      * Reports error based on report method on exception or to logger.
 341.      *

in
/var/www/aitortxo.eus/template/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
-> report (line 497)
 492.      * @param  \Throwable  $e
 493.      * @return void
 494.      */
 495.     protected function reportException(Throwable $e)
 496.     {
 497.         $this->app[ExceptionHandler::class]->report($e);
 498.     }
 499. 
 500.     /**
 501.      * Render the exception to a response.
 502.      *

in
/var/www/aitortxo.eus/template/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
-> reportException (line 146)
 141.         try {
 142.             $request->enableHttpMethodParameterOverride();
 143. 
 144.             $response = $this->sendRequestThroughRouter($request);
 145.         } catch (Throwable $e) {
 146.             $this->reportException($e);
 147. 
 148.             $response = $this->renderException($request, $e);
 149.         }
 150. 
 151.         $this->app['events']->dispatch(

in
/var/www/aitortxo.eus/template/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
-> handle (line 1168)
 1163.      */
 1164.     public function handleRequest(Request $request)
 1165.     {
 1166.         $kernel = $this->make(HttpKernelContract::class);
 1167. 
 1168.         $response = $kernel->handle($request)->send();
 1169. 
 1170.         $kernel->terminate($request, $response);
 1171.     }
 1172. 
 1173.     /**

Application->handleRequest() in /var/www/aitortxo.eus/template/public/index.php
(line 17)
 12. // Register the Composer autoloader...
 13. require __DIR__.'/../vendor/autoload.php';
 14. 
 15. // Bootstrap Laravel and handle the request...
 16. (require_once __DIR__.'/../bootstrap/app.php')
 17.     ->handleRequest(Request::capture());
 18. 


STACK TRACE

UnexpectedValueException

UnexpectedValueException:
The stream or file "/var/www/aitortxo.eus/template/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied
The exception occurred while attempting to log: The /var/www/aitortxo.eus/template/bootstrap/cache directory must be present and writable.
Context: {"exception":{}}

  at /var/www/aitortxo.eus/template/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:137
  at Monolog\Handler\StreamHandler->write()
     (/var/www/aitortxo.eus/template/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:44)
  at Monolog\Handler\AbstractProcessingHandler->handle()
     (/var/www/aitortxo.eus/template/vendor/monolog/monolog/src/Monolog/Logger.php:389)
  at Monolog\Logger->addRecord()
     (/var/www/aitortxo.eus/template/vendor/monolog/monolog/src/Monolog/Logger.php:644)
  at Monolog\Logger->error()
     (/var/www/aitortxo.eus/template/vendor/laravel/framework/src/Illuminate/Log/Logger.php:184)
  at Illuminate\Log\Logger->writeLog()
     (/var/www/aitortxo.eus/template/vendor/laravel/framework/src/Illuminate/Log/Logger.php:97)
  at Illuminate\Log\Logger->error()
     (/var/www/aitortxo.eus/template/vendor/laravel/framework/src/Illuminate/Log/LogManager.php:693)
  at Illuminate\Log\LogManager->error()
     (/var/www/aitortxo.eus/template/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:375)
  at Illuminate\Foundation\Exceptions\Handler->reportThrowable()
     (/var/www/aitortxo.eus/template/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:336)
  at Illuminate\Foundation\Exceptions\Handler->report()
     (/var/www/aitortxo.eus/template/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:497)
  at Illuminate\Foundation\Http\Kernel->reportException()
     (/var/www/aitortxo.eus/template/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:146)
  at Illuminate\Foundation\Http\Kernel->handle()
     (/var/www/aitortxo.eus/template/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:1168)
  at Illuminate\Foundation\Application->handleRequest()
     (/var/www/aitortxo.eus/template/public/index.php:17)