MOMAcademy

Please wait...

MOMAcademy

Login to your account

Whoops! There was an error.
UnexpectedValueException
The stream or file "/var/www/cms.momacademy.id/moma/storage/logs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied UnexpectedValueException thrown with message "The stream or file "/var/www/cms.momacademy.id/moma/storage/logs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied" Stacktrace: #14 UnexpectedValueException in /var/www/cms.momacademy.id/moma/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:110 #13 Monolog\Handler\StreamHandler:write in /var/www/cms.momacademy.id/moma/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:39 #12 Monolog\Handler\AbstractProcessingHandler:handle in /var/www/cms.momacademy.id/moma/vendor/monolog/monolog/src/Monolog/Logger.php:344 #11 Monolog\Logger:addRecord in /var/www/cms.momacademy.id/moma/vendor/monolog/monolog/src/Monolog/Logger.php:782 #10 Monolog\Logger:emergency in /var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Log/Logger.php:176 #9 Illuminate\Log\Logger:writeLog in /var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Log/Logger.php:51 #8 Illuminate\Log\Logger:emergency in /var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Log/LogManager.php:108 #7 Illuminate\Log\LogManager:Illuminate\Log\{closure} in /var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Support/helpers.php:1027 #6 tap in /var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Log/LogManager.php:110 #5 Illuminate\Log\LogManager:get in /var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Log/LogManager.php:90 #4 Illuminate\Log\LogManager:driver in /var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Log/LogManager.php:498 #3 Illuminate\Log\LogManager:error in /var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:114 #2 Illuminate\Foundation\Exceptions\Handler:report in /var/www/cms.momacademy.id/moma/app/Exceptions/Handler.php:37 #1 App\Exceptions\Handler:report in /var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:81 #0 Illuminate\Foundation\Bootstrap\HandleExceptions:handleException in [internal]:0
14
UnexpectedValueException
/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php110
13
Monolog\Handler\StreamHandler write
/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php39
12
Monolog\Handler\AbstractProcessingHandler handle
/vendor/monolog/monolog/src/Monolog/Logger.php344
11
Monolog\Logger addRecord
/vendor/monolog/monolog/src/Monolog/Logger.php782
10
Monolog\Logger emergency
/vendor/laravel/framework/src/Illuminate/Log/Logger.php176
9
Illuminate\Log\Logger writeLog
/vendor/laravel/framework/src/Illuminate/Log/Logger.php51
8
Illuminate\Log\Logger emergency
/vendor/laravel/framework/src/Illuminate/Log/LogManager.php108
7
Illuminate\Log\LogManager Illuminate\Log\{closure}
/vendor/laravel/framework/src/Illuminate/Support/helpers.php1027
6
tap
/vendor/laravel/framework/src/Illuminate/Log/LogManager.php110
5
Illuminate\Log\LogManager get
/vendor/laravel/framework/src/Illuminate/Log/LogManager.php90
4
Illuminate\Log\LogManager driver
/vendor/laravel/framework/src/Illuminate/Log/LogManager.php498
3
Illuminate\Log\LogManager error
/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php114
2
Illuminate\Foundation\Exceptions\Handler report
/app/Exceptions/Handler.php37
1
App\Exceptions\Handler report
/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php81
0
Illuminate\Foundation\Bootstrap\HandleExceptions handleException
[internal]0
/var/www/cms.momacademy.id/moma/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
     * {@inheritdoc}
     */
    protected function write(array $record)
    {
        if (!is_resource($this->stream)) {
            if (null === $this->url || '' === $this->url) {
                throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().');
            }
            $this->createDir();
            $this->errorMessage = null;
            set_error_handler(array($this, 'customErrorHandler'));
            $this->stream = fopen($this->url, 'a');
            if ($this->filePermission !== null) {
                @chmod($this->url, $this->filePermission);
            }
            restore_error_handler();
            if (!is_resource($this->stream)) {
                $this->stream = null;
 
                throw new \UnexpectedValueException(sprintf('The stream or file "%s" could not be opened in append mode: '.$this->errorMessage, $this->url));
            }
        }
 
        if ($this->useLocking) {
            // ignoring errors here, there's not much we can do about them
            flock($this->stream, LOCK_EX);
        }
 
        $this->streamWrite($this->stream, $record);
 
        if ($this->useLocking) {
            flock($this->stream, LOCK_UN);
        }
    }
 
    /**
     * Write to stream
     * @param resource $stream
     * @param array $record
     */
Arguments
  1. "The stream or file "/var/www/cms.momacademy.id/moma/storage/logs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied"
    
/var/www/cms.momacademy.id/moma/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php
 *
 * @author Jordi Boggiano <j.boggiano@seld.be>
 * @author Christophe Coevoet <stof@notk.org>
 */
abstract class AbstractProcessingHandler extends AbstractHandler
{
    /**
     * {@inheritdoc}
     */
    public function handle(array $record)
    {
        if (!$this->isHandling($record)) {
            return false;
        }
 
        $record = $this->processRecord($record);
 
        $record['formatted'] = $this->getFormatter()->format($record);
 
        $this->write($record);
 
        return false === $this->bubble;
    }
 
    /**
     * Writes the record down to the log of the implementing handler
     *
     * @param  array $record
     * @return void
     */
    abstract protected function write(array $record);
 
    /**
     * Processes a record.
     *
     * @param  array $record
     * @return array
     */
    protected function processRecord(array $record)
    {
Arguments
  1. array:8 [
      "message" => "Unable to create configured logger. Using emergency logger."
      "context" => array:1 [
        "exception" => InvalidArgumentException {#30
          #message: "Log [none] is not defined."
          #code: 0
          #file: "/var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Log/LogManager.php"
          #line: 168
        }
      ]
      "level" => 600
      "level_name" => "EMERGENCY"
      "channel" => "laravel"
      "datetime" => DateTime @1732166284 {#31
        date: 2024-11-21 05:18:04.057284 UTC (+00:00)
      }
      "extra" => []
      "formatted" => """
        [2024-11-21 05:18:04] laravel.EMERGENCY: Unable to create configured logger. Using emergency logger. {"exception":"[object] (InvalidArgumentException(code: 0): Log [none] is not defined. at /var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Log/LogManager.php:168)\n
        [stacktrace]\n
        #0 /var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(102): Illuminate\\Log\\LogManager->resolve('none')\n
        #1 /var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(90): Illuminate\\Log\\LogManager->get('none')\n
        #2 /var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(498): Illuminate\\Log\\LogManager->driver()\n
        #3 /var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(114): Illuminate\\Log\\LogManager->error('file_put_conten...', Array)\n
        #4 /var/www/cms.momacademy.id/moma/app/Exceptions/Handler.php(37): Illuminate\\Foundation\\Exceptions\\Handler->report(Object(ErrorException))\n
        #5 /var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(81): App\\Exceptions\\Handler->report(Object(ErrorException))\n
        #6 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleException(Object(ErrorException))\n
        #7 {main}\n
        "} \n
        """
    ]
    
/var/www/cms.momacademy.id/moma/vendor/monolog/monolog/src/Monolog/Logger.php
        }
        $ts->setTimezone(static::$timezone);
 
        $record = array(
            'message' => (string) $message,
            'context' => $context,
            'level' => $level,
            'level_name' => $levelName,
            'channel' => $this->name,
            'datetime' => $ts,
            'extra' => array(),
        );
 
        try {
            foreach ($this->processors as $processor) {
                $record = call_user_func($processor, $record);
            }
 
            while ($handler = current($this->handlers)) {
                if (true === $handler->handle($record)) {
                    break;
                }
 
                next($this->handlers);
            }
        } catch (Exception $e) {
            $this->handleException($e, $record);
        }
 
        return true;
    }
 
    /**
     * Ends a log cycle and frees all resources used by handlers.
     *
     * Closing a Handler means flushing all buffers and freeing any open resources/handles.
     * Handlers that have been closed should be able to accept log records again and re-open
     * themselves on demand, but this may not always be possible depending on implementation.
     *
     * This is useful at the end of a request and will be called automatically on every handler
Arguments
  1. array:8 [
      "message" => "Unable to create configured logger. Using emergency logger."
      "context" => array:1 [
        "exception" => InvalidArgumentException {#30
          #message: "Log [none] is not defined."
          #code: 0
          #file: "/var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Log/LogManager.php"
          #line: 168
        }
      ]
      "level" => 600
      "level_name" => "EMERGENCY"
      "channel" => "laravel"
      "datetime" => DateTime @1732166284 {#31
        date: 2024-11-21 05:18:04.057284 UTC (+00:00)
      }
      "extra" => []
      "formatted" => """
        [2024-11-21 05:18:04] laravel.EMERGENCY: Unable to create configured logger. Using emergency logger. {"exception":"[object] (InvalidArgumentException(code: 0): Log [none] is not defined. at /var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Log/LogManager.php:168)\n
        [stacktrace]\n
        #0 /var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(102): Illuminate\\Log\\LogManager->resolve('none')\n
        #1 /var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(90): Illuminate\\Log\\LogManager->get('none')\n
        #2 /var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(498): Illuminate\\Log\\LogManager->driver()\n
        #3 /var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(114): Illuminate\\Log\\LogManager->error('file_put_conten...', Array)\n
        #4 /var/www/cms.momacademy.id/moma/app/Exceptions/Handler.php(37): Illuminate\\Foundation\\Exceptions\\Handler->report(Object(ErrorException))\n
        #5 /var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(81): App\\Exceptions\\Handler->report(Object(ErrorException))\n
        #6 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleException(Object(ErrorException))\n
        #7 {main}\n
        "} \n
        """
    ]
    
/var/www/cms.momacademy.id/moma/vendor/monolog/monolog/src/Monolog/Logger.php
     * @param  array  $context The log context
     * @return bool   Whether the record has been processed
     */
    public function emerg($message, array $context = array())
    {
        return $this->addRecord(static::EMERGENCY, $message, $context);
    }
 
    /**
     * Adds a log record at the EMERGENCY level.
     *
     * This method allows for compatibility with common interfaces.
     *
     * @param  string $message The log message
     * @param  array  $context The log context
     * @return bool   Whether the record has been processed
     */
    public function emergency($message, array $context = array())
    {
        return $this->addRecord(static::EMERGENCY, $message, $context);
    }
 
    /**
     * Set the timezone to be used for the timestamp of log records.
     *
     * This is stored globally for all Logger instances
     *
     * @param \DateTimeZone $tz Timezone object
     */
    public static function setTimezone(\DateTimeZone $tz)
    {
        self::$timezone = $tz;
    }
}
 
Arguments
  1. 600
    
  2. "Unable to create configured logger. Using emergency logger."
    
  3. array:1 [
      "exception" => InvalidArgumentException {#30
        #message: "Log [none] is not defined."
        #code: 0
        #file: "/var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Log/LogManager.php"
        #line: 168
      }
    ]
    
/var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Log/Logger.php
     * @return void
     */
    public function write($level, $message, array $context = [])
    {
        $this->writeLog($level, $message, $context);
    }
 
    /**
     * Write a message to the log.
     *
     * @param  string  $level
     * @param  string  $message
     * @param  array  $context
     * @return void
     */
    protected function writeLog($level, $message, $context)
    {
        $this->fireLogEvent($level, $message = $this->formatMessage($message), $context);
 
        $this->logger->{$level}($message, $context);
    }
 
    /**
     * Register a new callback handler for when a log event is triggered.
     *
     * @param  \Closure  $callback
     * @return void
     *
     * @throws \RuntimeException
     */
    public function listen(Closure $callback)
    {
        if (! isset($this->dispatcher)) {
            throw new RuntimeException('Events dispatcher has not been set.');
        }
 
        $this->dispatcher->listen(MessageLogged::class, $callback);
    }
 
    /**
Arguments
  1. "Unable to create configured logger. Using emergency logger."
    
  2. array:1 [
      "exception" => InvalidArgumentException {#30
        #message: "Log [none] is not defined."
        #code: 0
        #file: "/var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Log/LogManager.php"
        #line: 168
      }
    ]
    
/var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Log/Logger.php
     * @param  \Psr\Log\LoggerInterface  $logger
     * @param  \Illuminate\Contracts\Events\Dispatcher|null  $dispatcher
     * @return void
     */
    public function __construct(LoggerInterface $logger, Dispatcher $dispatcher = null)
    {
        $this->logger = $logger;
        $this->dispatcher = $dispatcher;
    }
 
    /**
     * Log an emergency message to the logs.
     *
     * @param  string  $message
     * @param  array  $context
     * @return void
     */
    public function emergency($message, array $context = [])
    {
        $this->writeLog(__FUNCTION__, $message, $context);
    }
 
    /**
     * Log an alert message to the logs.
     *
     * @param  string  $message
     * @param  array  $context
     * @return void
     */
    public function alert($message, array $context = [])
    {
        $this->writeLog(__FUNCTION__, $message, $context);
    }
 
    /**
     * Log a critical message to the logs.
     *
     * @param  string  $message
     * @param  array  $context
     * @return void
Arguments
  1. "emergency"
    
  2. "Unable to create configured logger. Using emergency logger."
    
  3. array:1 [
      "exception" => InvalidArgumentException {#30
        #message: "Log [none] is not defined."
        #code: 0
        #file: "/var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Log/LogManager.php"
        #line: 168
      }
    ]
    
/var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Log/LogManager.php
    {
        return $this->get($driver ?? $this->getDefaultDriver());
    }
 
    /**
     * Attempt to get the log from the local cache.
     *
     * @param  string  $name
     * @return \Psr\Log\LoggerInterface
     */
    protected function get($name)
    {
        try {
            return $this->channels[$name] ?? with($this->resolve($name), function ($logger) use ($name) {
                return $this->channels[$name] = $this->tap($name, new Logger($logger, $this->app['events']));
            });
        } catch (Throwable $e) {
            return tap($this->createEmergencyLogger(), function ($logger) use ($e) {
                $logger->emergency('Unable to create configured logger. Using emergency logger.', [
                    'exception' => $e,
                ]);
            });
        }
    }
 
    /**
     * Apply the configured taps for the logger.
     *
     * @param  string  $name
     * @param  \Illuminate\Log\Logger  $logger
     * @return \Illuminate\Log\Logger
     */
    protected function tap($name, Logger $logger)
    {
        foreach ($this->configurationFor($name)['tap'] ?? [] as $tap) {
            [$class, $arguments] = $this->parseTap($tap);
 
            $this->app->make($class)->__invoke($logger, ...explode(',', $arguments));
        }
 
Arguments
  1. "Unable to create configured logger. Using emergency logger."
    
  2. array:1 [
      "exception" => InvalidArgumentException {#30
        #message: "Log [none] is not defined."
        #code: 0
        #file: "/var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Log/LogManager.php"
        #line: 168
      }
    ]
    
/var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Support/helpers.php
    {
        return Str::studly($value);
    }
}
 
if (! function_exists('tap')) {
    /**
     * Call the given Closure with the given value then return the value.
     *
     * @param  mixed  $value
     * @param  callable|null  $callback
     * @return mixed
     */
    function tap($value, $callback = null)
    {
        if (is_null($callback)) {
            return new HigherOrderTapProxy($value);
        }
 
        $callback($value);
 
        return $value;
    }
}
 
if (! function_exists('throw_if')) {
    /**
     * Throw the given exception if the given condition is true.
     *
     * @param  mixed  $condition
     * @param  \Throwable|string  $exception
     * @param  array  ...$parameters
     * @return mixed
     *
     * @throws \Throwable
     */
    function throw_if($condition, $exception, ...$parameters)
    {
        if ($condition) {
            throw (is_string($exception) ? new $exception(...$parameters) : $exception);
Arguments
  1. Illuminate\Log\Logger {#650}
    
/var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Log/LogManager.php
    }
 
    /**
     * Attempt to get the log from the local cache.
     *
     * @param  string  $name
     * @return \Psr\Log\LoggerInterface
     */
    protected function get($name)
    {
        try {
            return $this->channels[$name] ?? with($this->resolve($name), function ($logger) use ($name) {
                return $this->channels[$name] = $this->tap($name, new Logger($logger, $this->app['events']));
            });
        } catch (Throwable $e) {
            return tap($this->createEmergencyLogger(), function ($logger) use ($e) {
                $logger->emergency('Unable to create configured logger. Using emergency logger.', [
                    'exception' => $e,
                ]);
            });
        }
    }
 
    /**
     * Apply the configured taps for the logger.
     *
     * @param  string  $name
     * @param  \Illuminate\Log\Logger  $logger
     * @return \Illuminate\Log\Logger
     */
    protected function tap($name, Logger $logger)
    {
        foreach ($this->configurationFor($name)['tap'] ?? [] as $tap) {
            [$class, $arguments] = $this->parseTap($tap);
 
            $this->app->make($class)->__invoke($logger, ...explode(',', $arguments));
        }
 
        return $logger;
    }
Arguments
  1. Illuminate\Log\Logger {#650}
    
  2. Closure($logger) {#22 …4}
    
/var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Log/LogManager.php
    /**
     * Get a log channel instance.
     *
     * @param  string|null  $channel
     * @return mixed
     */
    public function channel($channel = null)
    {
        return $this->driver($channel);
    }
 
    /**
     * Get a log driver instance.
     *
     * @param  string|null  $driver
     * @return mixed
     */
    public function driver($driver = null)
    {
        return $this->get($driver ?? $this->getDefaultDriver());
    }
 
    /**
     * Attempt to get the log from the local cache.
     *
     * @param  string  $name
     * @return \Psr\Log\LoggerInterface
     */
    protected function get($name)
    {
        try {
            return $this->channels[$name] ?? with($this->resolve($name), function ($logger) use ($name) {
                return $this->channels[$name] = $this->tap($name, new Logger($logger, $this->app['events']));
            });
        } catch (Throwable $e) {
            return tap($this->createEmergencyLogger(), function ($logger) use ($e) {
                $logger->emergency('Unable to create configured logger. Using emergency logger.', [
                    'exception' => $e,
                ]);
            });
Arguments
  1. "none"
    
/var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Log/LogManager.php
     *
     * @return void
     */
    public function critical($message, array $context = [])
    {
        $this->driver()->critical($message, $context);
    }
 
    /**
     * Runtime errors that do not require immediate action but should typically
     * be logged and monitored.
     *
     * @param string $message
     * @param array  $context
     *
     * @return void
     */
    public function error($message, array $context = [])
    {
        $this->driver()->error($message, $context);
    }
 
    /**
     * Exceptional occurrences that are not errors.
     *
     * Example: Use of deprecated APIs, poor use of an API, undesirable things
     * that are not necessarily wrong.
     *
     * @param string $message
     * @param array  $context
     *
     * @return void
     */
    public function warning($message, array $context = [])
    {
        $this->driver()->warning($message, $context);
    }
 
    /**
     * Normal but significant events.
/var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php
     */
    public function report(Exception $e)
    {
        if ($this->shouldntReport($e)) {
            return;
        }
 
        if (method_exists($e, 'report')) {
            return $e->report();
        }
 
        try {
            $logger = $this->container->make(LoggerInterface::class);
        } catch (Exception $ex) {
            throw $e;
        }
 
        $logger->error(
            $e->getMessage(),
            array_merge($this->context(), ['exception' => $e]
        ));
    }
 
    /**
     * Determine if the exception should be reported.
     *
     * @param  \Exception  $e
     * @return bool
     */
    public function shouldReport(Exception $e)
    {
        return ! $this->shouldntReport($e);
    }
 
    /**
     * Determine if the exception is in the "do not report" list.
     *
     * @param  \Exception  $e
     * @return bool
     */
Arguments
  1. "file_put_contents(/var/www/cms.momacademy.id/moma/storage/framework/sessions/qQ4ntg9qGjQ3N1cVZXddPxSJXr1mF0N9xl0PzYua): failed to open stream: Permission denied"
    
  2. array:1 [
      "exception" => ErrorException {#649
        #message: "file_put_contents(/var/www/cms.momacademy.id/moma/storage/framework/sessions/qQ4ntg9qGjQ3N1cVZXddPxSJXr1mF0N9xl0PzYua): failed to open stream: Permission denied"
        #code: 0
        #file: "/var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php"
        #line: 122
        #severity: E_WARNING
      }
    ]
    
/var/www/cms.momacademy.id/moma/app/Exceptions/Handler.php
 
    /**
     * A list of the inputs that are never flashed for validation exceptions.
     *
     * @var array
     */
    protected $dontFlash = [
        'password',
        'password_confirmation',
    ];
 
    /**
     * Report or log an exception.
     *
     * @param  \Exception  $exception
     * @return void
     */
    public function report(Exception $exception)
    {
        parent::report($exception);
    }
 
    /**
     * Render an exception into an HTTP response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Exception  $exception
     * @return \Illuminate\Http\Response
     */
    public function render($request, Exception $exception)
    {
        return parent::render($request, $exception);
    }
}
 
Arguments
  1. ErrorException {#649
      #message: "file_put_contents(/var/www/cms.momacademy.id/moma/storage/framework/sessions/qQ4ntg9qGjQ3N1cVZXddPxSJXr1mF0N9xl0PzYua): failed to open stream: Permission denied"
      #code: 0
      #file: "/var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php"
      #line: 122
      #severity: E_WARNING
    }
    
/var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php
    }
 
    /**
     * Handle an uncaught exception from the application.
     *
     * Note: Most exceptions can be handled via the try / catch block in
     * the HTTP and Console kernels. But, fatal error exceptions must
     * be handled differently since they are not normal exceptions.
     *
     * @param  \Throwable  $e
     * @return void
     */
    public function handleException($e)
    {
        if (! $e instanceof Exception) {
            $e = new FatalThrowableError($e);
        }
 
        try {
            $this->getExceptionHandler()->report($e);
        } catch (Exception $e) {
            //
        }
 
        if ($this->app->runningInConsole()) {
            $this->renderForConsole($e);
        } else {
            $this->renderHttpResponse($e);
        }
    }
 
    /**
     * Render an exception to the console.
     *
     * @param  \Exception  $e
     * @return void
     */
    protected function renderForConsole(Exception $e)
    {
        $this->getExceptionHandler()->renderForConsole(new ConsoleOutput, $e);
Arguments
  1. ErrorException {#649
      #message: "file_put_contents(/var/www/cms.momacademy.id/moma/storage/framework/sessions/qQ4ntg9qGjQ3N1cVZXddPxSJXr1mF0N9xl0PzYua): failed to open stream: Permission denied"
      #code: 0
      #file: "/var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php"
      #line: 122
      #severity: E_WARNING
    }
    
[internal]
Arguments
  1. ErrorException {#649
      #message: "file_put_contents(/var/www/cms.momacademy.id/moma/storage/framework/sessions/qQ4ntg9qGjQ3N1cVZXddPxSJXr1mF0N9xl0PzYua): failed to open stream: Permission denied"
      #code: 0
      #file: "/var/www/cms.momacademy.id/moma/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php"
      #line: 122
      #severity: E_WARNING
    }
    

Environment & details:

empty
empty
empty
Key Value
laravel_session
"eyJpdiI6Iis0K085RGVJU3ZxWHF2VCtTdkVwRVE9PSIsInZhbHVlIjoiTzlLdW5uSGNRSUFpc0NJWGY4NmMyWlg1NzZTZDVGbFlBWjVLNEJYOTZnYmdMOEJWbVl1anI1dHl0ZEFGZEpCMyIsIm1hYyI6IjM0ZGQwYWRhZWZmNmZjZjVkOTNlNTM3ZDU0ZmEzMTA0YThmM2RiMzg5YTczNTMyM2Y2ZDUxNjIxYWI5MGQ0MTUifQ=="
XSRF-TOKEN
"eyJpdiI6IkZaYWVoaHhSZ1hGZUhXUHp2eHkwQWc9PSIsInZhbHVlIjoiRGhHSWtiK1JYcklOYTBQanppWUZYWEh6WHF6R0NFeTNyVlQzamZ6MGcxSHlqS3VRWTZjZzhEdHFZcjR2dEoxbSIsIm1hYyI6Ijc0Y2VhMzc5NDJhZDkxOTgzYzhhN2E3ZDI2NjIyNzI5YzM0MTVlMWY4ZTI3Njg4NThkZjNhY2EyZDhkNTdkN2QifQ=="
empty
Key Value
REDIRECT_UNIQUE_ID
"Zz7CixJs5Rmc09fwd4dVQAAAAAs"
REDIRECT_HTTPS
"on"
REDIRECT_SSL_TLS_SNI
"cms.momacademy.id"
REDIRECT_STATUS
"200"
UNIQUE_ID
"Zz7CixJs5Rmc09fwd4dVQAAAAAs"
HTTPS
"on"
SSL_TLS_SNI
"cms.momacademy.id"
HTTP_ACCEPT
"*/*"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
HTTP_ACCEPT_ENCODING
"gzip, br, zstd, deflate"
HTTP_REFERER
"https://cms.momacademy.id/"
HTTP_COOKIE
"laravel_session=eyJpdiI6Iis0K085RGVJU3ZxWHF2VCtTdkVwRVE9PSIsInZhbHVlIjoiTzlLdW5uSGNRSUFpc0NJWGY4NmMyWlg1NzZTZDVGbFlBWjVLNEJYOTZnYmdMOEJWbVl1anI1dHl0ZEFGZEpCMyIsIm1hYyI6IjM0ZGQwYWRhZWZmNmZjZjVkOTNlNTM3ZDU0ZmEzMTA0YThmM2RiMzg5YTczNTMyM2Y2ZDUxNjIxYWI5MGQ0MTUifQ%3D%3D; XSRF-TOKEN=eyJpdiI6IkZaYWVoaHhSZ1hGZUhXUHp2eHkwQWc9PSIsInZhbHVlIjoiRGhHSWtiK1JYcklOYTBQanppWUZYWEh6WHF6R0NFeTNyVlQzamZ6MGcxSHlqS3VRWTZjZzhEdHFZcjR2dEoxbSIsIm1hYyI6Ijc0Y2VhMzc5NDJhZDkxOTgzYzhhN2E3ZDI2NjIyNzI5YzM0MTVlMWY4ZTI3Njg4NThkZjNhY2EyZDhkNTdkN2QifQ%3D%3D"
HTTP_HOST
"cms.momacademy.id"
PATH
"/usr/bin:/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
SERVER_SIGNATURE
""
SERVER_SOFTWARE
"Apache/2.4.54 () OpenSSL/1.0.2k-fips PHP/7.4.33"
SERVER_NAME
"cms.momacademy.id"
SERVER_ADDR
"172.31.1.127"
SERVER_PORT
"443"
REMOTE_ADDR
"3.14.132.43"
DOCUMENT_ROOT
"/var/www/cms.momacademy.id"
REQUEST_SCHEME
"https"
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/var/www/cms.momacademy.id"
SERVER_ADMIN
"root@localhost"
SCRIPT_FILENAME
"/var/www/cms.momacademy.id/index.php"
REMOTE_PORT
"52469"
REDIRECT_URL
"/login"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.1"
REQUEST_METHOD
"GET"
QUERY_STRING
""
REQUEST_URI
"/login"
SCRIPT_NAME
"/index.php"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1732166283.9928
REQUEST_TIME
1732166283
APP_NAME
"Laravel"
APP_ENV
"production"
APP_KEY
"base64:1xRNnsYa82MWbM7CcE5gA95+exQxYWPvCd4QBvdIsMk="
APP_DEBUG
"true"
APP_URL
"http://cms.momacademy.id"
LOG_CHANNEL
"none"
DB_CONNECTION
"mysql"
DB_HOST
"localhost"
DB_PORT
"3306"
DB_DATABASE
"mom"
DB_USERNAME
"admin"
DB_PASSWORD
"gZjhWCRqkc2nEteC"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"file"
QUEUE_CONNECTION
"sync"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"120"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_MAILER
"smtp"
MAIL_HOST
"smtp.mailtrap.io"
MAIL_PORT
"2525"
MAIL_USERNAME
"null"
MAIL_PASSWORD
"null"
MAIL_ENCRYPTION
"null"
MAIL_FROM_ADDRESS
"null"
MAIL_FROM_NAME
"Laravel"
AWS_ACCESS_KEY_ID
""
AWS_SECRET_ACCESS_KEY
""
AWS_DEFAULT_REGION
"us-east-1"
AWS_BUCKET
""
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
PUSHER_APP_CLUSTER
"mt1"
MIX_PUSHER_APP_KEY
""
MIX_PUSHER_APP_CLUSTER
"mt1"
Key Value
APP_NAME
"Laravel"
APP_ENV
"production"
APP_KEY
"base64:1xRNnsYa82MWbM7CcE5gA95+exQxYWPvCd4QBvdIsMk="
APP_DEBUG
"true"
APP_URL
"http://cms.momacademy.id"
LOG_CHANNEL
"none"
DB_CONNECTION
"mysql"
DB_HOST
"localhost"
DB_PORT
"3306"
DB_DATABASE
"mom"
DB_USERNAME
"admin"
DB_PASSWORD
"gZjhWCRqkc2nEteC"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"file"
QUEUE_CONNECTION
"sync"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"120"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_MAILER
"smtp"
MAIL_HOST
"smtp.mailtrap.io"
MAIL_PORT
"2525"
MAIL_USERNAME
"null"
MAIL_PASSWORD
"null"
MAIL_ENCRYPTION
"null"
MAIL_FROM_ADDRESS
"null"
MAIL_FROM_NAME
"Laravel"
AWS_ACCESS_KEY_ID
""
AWS_SECRET_ACCESS_KEY
""
AWS_DEFAULT_REGION
"us-east-1"
AWS_BUCKET
""
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
PUSHER_APP_CLUSTER
"mt1"
MIX_PUSHER_APP_KEY
""
MIX_PUSHER_APP_CLUSTER
"mt1"
0. Whoops\Handler\PrettyPageHandler