Deprecated: Return type of Illuminate\Container\Container::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1271

Deprecated: Return type of Illuminate\Container\Container::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1282

Deprecated: Return type of Illuminate\Container\Container::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1294

Deprecated: Return type of Illuminate\Container\Container::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1307

Deprecated: Return type of Illuminate\Routing\AbstractRouteCollection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/laravel/framework/src/Illuminate/Routing/AbstractRouteCollection.php on line 245

Deprecated: Return type of Illuminate\Routing\AbstractRouteCollection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/laravel/framework/src/Illuminate/Routing/AbstractRouteCollection.php on line 235

Deprecated: Return type of Symfony\Component\HttpFoundation\ParameterBag::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/symfony/http-foundation/ParameterBag.php on line 205

Deprecated: Return type of Symfony\Component\HttpFoundation\ParameterBag::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/symfony/http-foundation/ParameterBag.php on line 215

Deprecated: Return type of Symfony\Component\HttpFoundation\HeaderBag::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/symfony/http-foundation/HeaderBag.php on line 255

Deprecated: Return type of Symfony\Component\HttpFoundation\HeaderBag::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/symfony/http-foundation/HeaderBag.php on line 265

Deprecated: Return type of Illuminate\Http\Request::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/laravel/framework/src/Illuminate/Http/Request.php on line 637

Deprecated: Return type of Illuminate\Http\Request::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/laravel/framework/src/Illuminate/Http/Request.php on line 651

Deprecated: Return type of Illuminate\Http\Request::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/laravel/framework/src/Illuminate/Http/Request.php on line 663

Deprecated: Return type of Illuminate\Http\Request::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/laravel/framework/src/Illuminate/Http/Request.php on line 674

Deprecated: Return type of Dotenv\Repository\AbstractRepository::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/vlucas/phpdotenv/src/Repository/AbstractRepository.php on line 147

Deprecated: Return type of Dotenv\Repository\AbstractRepository::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/vlucas/phpdotenv/src/Repository/AbstractRepository.php on line 155

Deprecated: Return type of Dotenv\Repository\AbstractRepository::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/vlucas/phpdotenv/src/Repository/AbstractRepository.php on line 163

Deprecated: Return type of Dotenv\Repository\AbstractRepository::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/vlucas/phpdotenv/src/Repository/AbstractRepository.php on line 171

Deprecated: Return type of PhpOption\None::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/phpoption/phpoption/src/PhpOption/None.php on line 118

Deprecated: Return type of PhpOption\Some::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/phpoption/phpoption/src/PhpOption/Some.php on line 152

Deprecated: Return type of Illuminate\Config\Repository::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/laravel/framework/src/Illuminate/Config/Repository.php on line 141

Deprecated: Return type of Illuminate\Config\Repository::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/laravel/framework/src/Illuminate/Config/Repository.php on line 152

Deprecated: Return type of Illuminate\Config\Repository::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/laravel/framework/src/Illuminate/Config/Repository.php on line 164

Deprecated: Return type of Illuminate\Config\Repository::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/laravel/framework/src/Illuminate/Config/Repository.php on line 175

Deprecated: Return type of Symfony\Component\Finder\Finder::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/symfony/finder/Finder.php on line 607

Deprecated: Return type of Symfony\Component\Finder\Finder::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/symfony/finder/Finder.php on line 676

Deprecated: Return type of Symfony\Component\Finder\Iterator\FileTypeFilterIterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/symfony/finder/Iterator/FileTypeFilterIterator.php on line 42

Deprecated: Return type of Symfony\Component\Finder\Iterator\RecursiveDirectoryIterator::getChildren() should either be compatible with RecursiveDirectoryIterator::getChildren(): RecursiveDirectoryIterator, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php on line 85

Deprecated: Return type of Symfony\Component\Finder\Iterator\RecursiveDirectoryIterator::rewind() should either be compatible with FilesystemIterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php on line 113

Deprecated: Return type of Symfony\Component\Finder\Iterator\RecursiveDirectoryIterator::current() should either be compatible with FilesystemIterator::current(): SplFileInfo|FilesystemIterator|string, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php on line 61

Deprecated: Return type of Symfony\Component\Finder\Iterator\ExcludeDirectoryFilterIterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php on line 55

Deprecated: Return type of Symfony\Component\Finder\Iterator\ExcludeDirectoryFilterIterator::hasChildren() should either be compatible with RecursiveIterator::hasChildren(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php on line 74

Deprecated: Return type of Symfony\Component\Finder\Iterator\ExcludeDirectoryFilterIterator::getChildren() should either be compatible with RecursiveIterator::getChildren(): ?RecursiveIterator, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php on line 79

Deprecated: Return type of Symfony\Component\Finder\Iterator\FilenameFilterIterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/symfony/finder/Iterator/FilenameFilterIterator.php on line 28

Deprecated: Return type of Symfony\Component\Finder\Iterator\PathFilterIterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/html/online/newelibvn/amp/vendor/symfony/finder/Iterator/PathFilterIterator.php on line 27
The stream or file "/home/www/html/online/newelibvn/amp/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied (500 Internal Server Error)

Symfony Exception

UnexpectedValueException

HTTP 500 Internal Server Error

The stream or file "/home/www/html/online/newelibvn/amp/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied

Exception

UnexpectedValueException

  1.             }
  2.             restore_error_handler();
  3.             if (!is_resource($this->stream)) {
  4.                 $this->stream null;
  5.                 throw new \UnexpectedValueException(sprintf('The stream or file "%s" could not be opened in append mode: '.$this->errorMessage$this->url));
  6.             }
  7.         }
  8.         if ($this->useLocking) {
  9.             // ignoring errors here, there's not much we can do about them
  1.             $record $this->processRecord($record);
  2.         }
  3.         $record['formatted'] = $this->getFormatter()->format($record);
  4.         $this->write($record);
  5.         return false === $this->bubble;
  6.     }
  7.     /**
  1.             while ($handlerKey !== key($this->handlers)) {
  2.                 next($this->handlers);
  3.             }
  4.             while ($handler current($this->handlers)) {
  5.                 if (true === $handler->handle($record)) {
  6.                     break;
  7.                 }
  8.                 next($this->handlers);
  9.             }
  1.      * @param string $message The log message
  2.      * @param array  $context The log context
  3.      */
  4.     public function emergency($message, array $context = []): void
  5.     {
  6.         $this->addRecord(static::EMERGENCY, (string) $message$context);
  7.     }
  8.     /**
  9.      * Sets the timezone to be used for the timestamp of log records.
  10.      */
  1.      * @param  array  $context
  2.      * @return void
  3.      */
  4.     protected function writeLog($level$message$context)
  5.     {
  6.         $this->logger->{$level}($message $this->formatMessage($message), $context);
  7.         $this->fireLogEvent($level$message$context);
  8.     }
  9.     /**
  1.      * @param  array  $context
  2.      * @return void
  3.      */
  4.     public function emergency($message, array $context = [])
  5.     {
  6.         $this->writeLog(__FUNCTION__$message$context);
  7.     }
  8.     /**
  9.      * Log an alert message to the logs.
  10.      *
  1.                 return $this->channels[$name] = $this->tap($name, new Logger($logger$this->app['events']));
  2.             });
  3.         } catch (Throwable $e) {
  4.             return tap($this->createEmergencyLogger(), function ($logger) use ($e) {
  5.                 $logger->emergency('Unable to create configured logger. Using emergency logger.', [
  6.                     'exception' => $e,
  7.                 ]);
  8.             });
  9.         }
  10.     }
  1.     {
  2.         if (is_null($callback)) {
  3.             return new HigherOrderTapProxy($value);
  4.         }
  5.         $callback($value);
  6.         return $value;
  7.     }
  8. }
  1.         } catch (Throwable $e) {
  2.             return tap($this->createEmergencyLogger(), function ($logger) use ($e) {
  3.                 $logger->emergency('Unable to create configured logger. Using emergency logger.', [
  4.                     'exception' => $e,
  5.                 ]);
  6.             });
  7.         }
  8.     }
  9.     /**
  10.      * Apply the configured taps for the logger.
  1.      * @param  string|null  $driver
  2.      * @return \Psr\Log\LoggerInterface
  3.      */
  4.     public function driver($driver null)
  5.     {
  6.         return $this->get($driver ?? $this->getDefaultDriver());
  7.     }
  8.     /**
  9.      * @return array
  10.      */
  1.      *
  2.      * @return void
  3.      */
  4.     public function error($message, array $context = [])
  5.     {
  6.         $this->driver()->error($message$context);
  7.     }
  8.     /**
  9.      * Exceptional occurrences that are not errors.
  10.      *
  1.         $logger->error(
  2.             $e->getMessage(),
  3.             array_merge(
  4.                 $this->exceptionContext($e),
  5.                 $this->context(),
  6.                 ['exception' => $e]
  7.             )
  8.         );
  9.     }
  10.     /**
  1.      *
  2.      * @throws \Exception
  3.      */
  4.     public function report(Throwable $exception)
  5.     {
  6.         parent::report($exception);
  7.     }
  8.     /**
  9.      * Render an exception into an HTTP response.
  10.      *
  1.     public function handleException(Throwable $e)
  2.     {
  3.         try {
  4.             self::$reservedMemory null;
  5.             $this->getExceptionHandler()->report($e);
  6.         } catch (Exception $e) {
  7.             //
  8.         }
  9.         if ($this->app->runningInConsole()) {
  1.      * @return void
  2.      */
  3.     public function handleShutdown()
  4.     {
  5.         if (! is_null($error error_get_last()) && $this->isFatal($error['type'])) {
  6.             $this->handleException($this->fatalErrorFromPhpError($error0));
  7.         }
  8.     }
  9.     /**
  10.      * Create a new fatal error instance from an error array.
HandleExceptions->handleShutdown()

Stack Trace

UnexpectedValueException

UnexpectedValueException:
The stream or file "/home/www/html/online/newelibvn/amp/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied

  at /home/www/html/online/newelibvn/amp/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:111
  at Monolog\Handler\StreamHandler->write()
     (/home/www/html/online/newelibvn/amp/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:42)
  at Monolog\Handler\AbstractProcessingHandler->handle()
     (/home/www/html/online/newelibvn/amp/vendor/monolog/monolog/src/Monolog/Logger.php:325)
  at Monolog\Logger->addRecord()
     (/home/www/html/online/newelibvn/amp/vendor/monolog/monolog/src/Monolog/Logger.php:582)
  at Monolog\Logger->emergency()
     (/home/www/html/online/newelibvn/amp/vendor/laravel/framework/src/Illuminate/Log/Logger.php:174)
  at Illuminate\Log\Logger->writeLog()
     (/home/www/html/online/newelibvn/amp/vendor/laravel/framework/src/Illuminate/Log/Logger.php:51)
  at Illuminate\Log\Logger->emergency()
     (/home/www/html/online/newelibvn/amp/vendor/laravel/framework/src/Illuminate/Log/LogManager.php:124)
  at Illuminate\Log\LogManager->Illuminate\Log\{closure}()
     (/home/www/html/online/newelibvn/amp/vendor/laravel/framework/src/Illuminate/Support/helpers.php:433)
  at tap()
     (/home/www/html/online/newelibvn/amp/vendor/laravel/framework/src/Illuminate/Log/LogManager.php:126)
  at Illuminate\Log\LogManager->get()
     (/home/www/html/online/newelibvn/amp/vendor/laravel/framework/src/Illuminate/Log/LogManager.php:98)
  at Illuminate\Log\LogManager->driver()
     (/home/www/html/online/newelibvn/amp/vendor/laravel/framework/src/Illuminate/Log/LogManager.php:547)
  at Illuminate\Log\LogManager->error()
     (/home/www/html/online/newelibvn/amp/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:122)
  at Illuminate\Foundation\Exceptions\Handler->report()
     (/home/www/html/online/newelibvn/amp/app/Exceptions/Handler.php:39)
  at App\Exceptions\Handler->report()
     (/home/www/html/online/newelibvn/amp/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:88)
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleException()
     (/home/www/html/online/newelibvn/amp/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:130)
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown()