Whoops! There was an error.
UnexpectedValueException
The stream or file "/opt/bitnami/wordpress/wp-content/themes/714-unite/storage/logs/application-2025-02-18.log" could not be opened in append mode: Failed to open stream: Permission denied UnexpectedValueException thrown with message "The stream or file "/opt/bitnami/wordpress/wp-content/themes/714-unite/storage/logs/application-2025-02-18.log" could not be opened in append mode: Failed to open stream: Permission denied" Stacktrace: #10 UnexpectedValueException in /bitnami/wordpress/wp-content/themes/714-unite/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:111 #9 Monolog\Handler\StreamHandler:write in /bitnami/wordpress/wp-content/themes/714-unite/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php:121 #8 Monolog\Handler\RotatingFileHandler:write in /bitnami/wordpress/wp-content/themes/714-unite/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:42 #7 Monolog\Handler\AbstractProcessingHandler:handle in /bitnami/wordpress/wp-content/themes/714-unite/vendor/monolog/monolog/src/Monolog/Logger.php:317 #6 Monolog\Logger:addRecord in /bitnami/wordpress/wp-content/themes/714-unite/vendor/monolog/monolog/src/Monolog/Logger.php:539 #5 Monolog\Logger:error in /bitnami/wordpress/wp-content/themes/714-unite/vendor/illuminate/log/Logger.php:174 #4 Illuminate\Log\Logger:writeLog in /bitnami/wordpress/wp-content/themes/714-unite/vendor/illuminate/log/Logger.php:87 #3 Illuminate\Log\Logger:error in /bitnami/wordpress/wp-content/themes/714-unite/vendor/illuminate/log/LogManager.php:555 #2 Illuminate\Log\LogManager:error in /bitnami/wordpress/wp-content/themes/714-unite/vendor/roots/acorn/src/Illuminate/Foundation/Exceptions/Handler.php:241 #1 Illuminate\Foundation\Exceptions\Handler:report in /bitnami/wordpress/wp-content/themes/714-unite/vendor/roots/acorn/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:88 #0 Illuminate\Foundation\Bootstrap\HandleExceptions:handleException in [internal]:0
10
UnexpectedValueException
/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php111
9
Monolog\Handler\StreamHandler write
/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php121
8
Monolog\Handler\RotatingFileHandler write
/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php42
7
Monolog\Handler\AbstractProcessingHandler handle
/vendor/monolog/monolog/src/Monolog/Logger.php317
6
Monolog\Logger addRecord
/vendor/monolog/monolog/src/Monolog/Logger.php539
5
Monolog\Logger error
/vendor/illuminate/log/Logger.php174
4
Illuminate\Log\Logger writeLog
/vendor/illuminate/log/Logger.php87
3
Illuminate\Log\Logger error
/vendor/illuminate/log/LogManager.php555
2
Illuminate\Log\LogManager error
/vendor/roots/acorn/src/Illuminate/Foundation/Exceptions/Handler.php241
1
Illuminate\Foundation\Exceptions\Handler report
/vendor/roots/acorn/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php88
0
Illuminate\Foundation\Bootstrap\HandleExceptions handleException
[internal]0
/bitnami/wordpress/wp-content/themes/714-unite/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
     * {@inheritdoc}
     */
    protected function write(array $record): void
    {
        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([$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 "/opt/bitnami/wordpress/wp-content/themes/714-unite/storage/logs/application-2025-02-18.log" could not be opened in append mode: Failed to open stream: Permission denied"
    
/bitnami/wordpress/wp-content/themes/714-unite/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php
 
        return $this;
    }
 
    /**
     * {@inheritdoc}
     */
    protected function write(array $record): void
    {
        // on the first record written, if the log is new, we should rotate (once per day)
        if (null === $this->mustRotate) {
            $this->mustRotate = !file_exists($this->url);
        }
 
        if ($this->nextRotation <= $record['datetime']) {
            $this->mustRotate = true;
            $this->close();
        }
 
        parent::write($record);
    }
 
    /**
     * Rotates the files.
     */
    protected function rotate(): void
    {
        // update filename
        $this->url = $this->getTimedFilename();
        $this->nextRotation = new \DateTimeImmutable('tomorrow');
 
        // skip GC of old logs if files are unlimited
        if (0 === $this->maxFiles) {
            return;
        }
 
        $logFiles = glob($this->getGlobPattern());
        if ($this->maxFiles >= count($logFiles)) {
            // no files to remove
            return;
/bitnami/wordpress/wp-content/themes/714-unite/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php
{
    use ProcessableHandlerTrait;
    use FormattableHandlerTrait;
 
    /**
     * {@inheritdoc}
     */
    public function handle(array $record): bool
    {
        if (!$this->isHandling($record)) {
            return false;
        }
 
        if ($this->processors) {
            $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
     */
    abstract protected function write(array $record): void;
 
    public function reset()
    {
        parent::reset();
 
        $this->resetProcessors();
    }
}
 
/bitnami/wordpress/wp-content/themes/714-unite/vendor/monolog/monolog/src/Monolog/Logger.php
                    'level_name' => $levelName,
                    'channel' => $this->name,
                    'datetime' => new DateTimeImmutable($this->microsecondTimestamps, $this->timezone),
                    'extra' => [],
                ];
 
                try {
                    foreach ($this->processors as $processor) {
                        $record = $processor($record);
                    }
                } catch (Throwable $e) {
                    $this->handleException($e, $record);
 
                    return true;
                }
            }
 
            // once the record exists, send it to all handlers as long as the bubbling chain is not interrupted
            try {
                if (true === $handler->handle($record)) {
                    break;
                }
            } catch (Throwable $e) {
                $this->handleException($e, $record);
 
                return true;
            }
        }
 
        return null !== $record;
    }
 
    /**
     * 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
/bitnami/wordpress/wp-content/themes/714-unite/vendor/monolog/monolog/src/Monolog/Logger.php
     *
     * @param string  $message The log message
     * @param mixed[] $context The log context
     */
    public function warning($message, array $context = []): void
    {
        $this->addRecord(static::WARNING, (string) $message, $context);
    }
 
    /**
     * Adds a log record at the ERROR level.
     *
     * This method allows for compatibility with common interfaces.
     *
     * @param string  $message The log message
     * @param mixed[] $context The log context
     */
    public function error($message, array $context = []): void
    {
        $this->addRecord(static::ERROR, (string) $message, $context);
    }
 
    /**
     * Adds a log record at the CRITICAL level.
     *
     * This method allows for compatibility with common interfaces.
     *
     * @param string  $message The log message
     * @param mixed[] $context The log context
     */
    public function critical($message, array $context = []): void
    {
        $this->addRecord(static::CRITICAL, (string) $message, $context);
    }
 
    /**
     * Adds a log record at the ALERT level.
     *
     * This method allows for compatibility with common interfaces.
     *
/bitnami/wordpress/wp-content/themes/714-unite/vendor/illuminate/log/Logger.php
     * @param  string  $message
     * @param  array  $context
     * @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->logger->{$level}($message = $this->formatMessage($message), $context);
 
        $this->fireLogEvent($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);
    }
/bitnami/wordpress/wp-content/themes/714-unite/vendor/illuminate/log/Logger.php
     *
     * @param  string  $message
     * @param  array  $context
     * @return void
     */
    public function critical($message, array $context = [])
    {
        $this->writeLog(__FUNCTION__, $message, $context);
    }
 
    /**
     * Log an error message to the logs.
     *
     * @param  string  $message
     * @param  array  $context
     * @return void
     */
    public function error($message, array $context = [])
    {
        $this->writeLog(__FUNCTION__, $message, $context);
    }
 
    /**
     * Log a warning message to the logs.
     *
     * @param  string  $message
     * @param  array  $context
     * @return void
     */
    public function warning($message, array $context = [])
    {
        $this->writeLog(__FUNCTION__, $message, $context);
    }
 
    /**
     * Log a notice to the logs.
     *
     * @param  string  $message
     * @param  array  $context
     * @return void
/bitnami/wordpress/wp-content/themes/714-unite/vendor/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.
/bitnami/wordpress/wp-content/themes/714-unite/vendor/roots/acorn/src/Illuminate/Foundation/Exceptions/Handler.php
        foreach ($this->reportCallbacks as $reportCallback) {
            if ($reportCallback->handles($e)) {
                if ($reportCallback($e) === false) {
                    return;
                }
            }
        }
 
        try {
            $logger = $this->container->make(LoggerInterface::class);
        } catch (Exception $ex) {
            throw $e;
        }
 
        $logger->error(
            $e->getMessage(),
            array_merge(
                $this->exceptionContext($e),
                $this->context(),
                ['exception' => $e]
            )
        );
    }
 
    /**
     * Determine if the exception should be reported.
     *
     * @param  \Throwable  $e
     * @return bool
     */
    public function shouldReport(Throwable $e)
    {
        return ! $this->shouldntReport($e);
    }
 
    /**
     * Determine if the exception is in the "do not report" list.
     *
     * @param  \Throwable  $e
     * @return bool
/bitnami/wordpress/wp-content/themes/714-unite/vendor/roots/acorn/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php
            throw new ErrorException($message, 0, $level, $file, $line);
        }
    }
 
    /**
     * 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(Throwable $e)
    {
        try {
            self::$reservedMemory = null;
 
            $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  \Throwable  $e
     * @return void
     */
    protected function renderForConsole(Throwable $e)
    {
        $this->getExceptionHandler()->renderForConsole(new ConsoleOutput, $e);
[internal]

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"Apache"
REQUEST_URI
"/2022/06/29/hello-world/"
PATH
"/opt/bitnami/apache/bin:/opt/bitnami/common/bin:/opt/bitnami/apache/bin:/opt/bitnami/apache2/bin:/opt/bitnami/brotli/bin:/opt/bitnami/common/bin:/opt/bitnami/gonit/bin:/opt/bitnami/mariadb/bin:/opt/bitnami/mariadb/sbin:/opt/bitnami/mysql/bin:/opt/bitnami/php/bin:/opt/bitnami/php/sbin:/opt/bitnami/varnish/bin:/opt/bitnami/varnish/sbin:/opt/bitnami/wp-cli/bin:/opt/bitnami/nami/bin:/opt/bitnami/apache/bin:/opt/bitnami/apache2/bin:/opt/bitnami/brotli/bin:/opt/bitnami/common/bin:/opt/bitnami/gonit/bin:/opt/bitnami/mariadb/bin:/opt/bitnami/mariadb/sbin:/opt/bitnami/mysql/bin:/opt/bitnami/php/bin:/opt/bitnami/php/sbin:/opt/bitnami/varnish/bin:/opt/bitnami/varnish/sbin:/opt/bitnami/wp-cli/bin:/opt/bitnami/nami/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
USER
"daemon"
HOME
"/usr/sbin"
SCRIPT_NAME
"/index.php"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/2022/06/29/hello-world/"
REMOTE_PORT
"56224"
SCRIPT_FILENAME
"/opt/bitnami/wordpress/index.php"
SERVER_ADMIN
"[email protected]"
CONTEXT_DOCUMENT_ROOT
"/opt/bitnami/wordpress"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/opt/bitnami/wordpress"
REMOTE_ADDR
"172.70.38.226"
SERVER_PORT
"443"
SERVER_ADDR
"172.31.13.48"
SERVER_NAME
"prayamerica714.com"
SERVER_SIGNATURE
""
HTTP_CF_CONNECTING_IP
"18.97.9.173"
HTTP_CONNECTION
"Keep-Alive"
HTTP_CF_IPCOUNTRY
"US"
HTTP_CF_VISITOR
"{\"scheme\":\"https\"}"
HTTP_USER_AGENT
"CCBot/2.0 (https://commoncrawl.org/faq/)"
HTTP_ACCEPT
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_ACCEPT_LANGUAGE
"en-US,en;q=0.5"
HTTP_ACCEPT_ENCODING
"gzip, br"
HTTP_CDN_LOOP
"cloudflare; loops=1"
HTTP_HOST
"prayamerica714.com"
HTTP_X_FORWARDED_FOR
"18.97.9.173"
HTTP_CF_RAY
"9141a4e58989083e-IAD"
SSL_TLS_SNI
"prayamerica714.com"
HTTP_AUTHORIZATION
""
HTTPS
"on"
REDIRECT_STATUS
"200"
REDIRECT_SSL_TLS_SNI
"prayamerica714.com"
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_HTTPS
"on"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1739919739.7911
REQUEST_TIME
1739919739
empty
0. Whoops\Handler\PrettyPageHandler