Bolt \ Filesystem \ Exception \ IOException
Failed to write to file Bolt\Filesystem\Exception\IOException thrown with message "Failed to write to file" Stacktrace: #20 Bolt\Filesystem\Exception\IOException in /home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/bolt/filesystem/src/Filesystem.php:147 #19 Bolt\Filesystem\Filesystem:doWrite in /home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/bolt/filesystem/src/Filesystem.php:249 #18 Bolt\Filesystem\Filesystem:doPut in /home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/bolt/filesystem/src/Filesystem.php:241 #17 Bolt\Filesystem\Filesystem:put in /home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/bolt/filesystem/src/Handler/File.php:73 #16 Bolt\Filesystem\Handler\File:put in /home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/bolt/bolt/src/Session/Handler/FilesystemHandler.php:46 #15 Bolt\Session\Handler\FilesystemHandler:write in /home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/bolt/bolt/src/Session/SessionStorage.php:387 #14 Bolt\Session\SessionStorage:write in /home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/bolt/bolt/src/Session/SessionStorage.php:192 #13 Bolt\Session\SessionStorage:save in /home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/http-foundation/Session/Session.php:181 #12 Symfony\Component\HttpFoundation\Session\Session:save in /home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/bolt/bolt/src/Session/SessionListener.php:72 #11 Bolt\Session\SessionListener:onResponse in /home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:61 #10 call_user_func in /home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:61 #9 Symfony\Component\EventDispatcher\Debug\WrappedListener:__invoke in /home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:184 #8 call_user_func in /home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:184 #7 Symfony\Component\EventDispatcher\EventDispatcher:doDispatch in /home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:46 #6 Symfony\Component\EventDispatcher\EventDispatcher:dispatch in /home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:140 #5 Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher:dispatch in /home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/http-kernel/HttpKernel.php:184 #4 Symfony\Component\HttpKernel\HttpKernel:filterResponse in /home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/http-kernel/HttpKernel.php:166 #3 Symfony\Component\HttpKernel\HttpKernel:handleRaw in /home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/http-kernel/HttpKernel.php:64 #2 Symfony\Component\HttpKernel\HttpKernel:handle in /home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/silex/silex/src/Silex/Application.php:586 #1 Silex\Application:handle in /home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/silex/silex/src/Silex/Application.php:563 #0 Silex\Application:run in /home/industri/domains/ehad.industrieel-atrium.nl/public_html/index.php:49
Stack frames (21):
20 Bolt\Filesystem\Exception\IOException
…/­vendor/­bolt/­filesystem/­src/­Filesystem.php147
19 Bolt\Filesystem\Filesystem doWrite
…/­vendor/­bolt/­filesystem/­src/­Filesystem.php249
18 Bolt\Filesystem\Filesystem doPut
…/­vendor/­bolt/­filesystem/­src/­Filesystem.php241
17 Bolt\Filesystem\Filesystem put
…/­vendor/­bolt/­filesystem/­src/­Handler/­File.php73
16 Bolt\Filesystem\Handler\File put
…/­vendor/­bolt/­bolt/­src/­Session/­Handler/­FilesystemHandler.php46
15 Bolt\Session\Handler\FilesystemHandler write
…/­vendor/­bolt/­bolt/­src/­Session/­SessionStorage.php387
14 Bolt\Session\SessionStorage write
…/­vendor/­bolt/­bolt/­src/­Session/­SessionStorage.php192
13 Bolt\Session\SessionStorage save
…/­vendor/­symfony/­http-foundation/­Session/­Session.php181
12 Symfony\Component\HttpFoundation\Session\Session save
…/­vendor/­bolt/­bolt/­src/­Session/­SessionListener.php72
11 Bolt\Session\SessionListener onResponse
…/­vendor/­symfony/­event-dispatcher/­Debug/­WrappedListener.php61
10 call_user_func
…/­vendor/­symfony/­event-dispatcher/­Debug/­WrappedListener.php61
9 Symfony\Component\EventDispatcher\Debug\WrappedListener __invoke
…/­vendor/­symfony/­event-dispatcher/­EventDispatcher.php184
8 call_user_func
…/­vendor/­symfony/­event-dispatcher/­EventDispatcher.php184
7 Symfony\Component\EventDispatcher\EventDispatcher doDispatch
…/­vendor/­symfony/­event-dispatcher/­EventDispatcher.php46
6 Symfony\Component\EventDispatcher\EventDispatcher dispatch
…/­vendor/­symfony/­event-dispatcher/­Debug/­TraceableEventDispatcher.php140
5 Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher dispatch
…/­vendor/­symfony/­http-kernel/­HttpKernel.php184
4 Symfony\Component\HttpKernel\HttpKernel filterResponse
…/­vendor/­symfony/­http-kernel/­HttpKernel.php166
3 Symfony\Component\HttpKernel\HttpKernel handleRaw
…/­vendor/­symfony/­http-kernel/­HttpKernel.php64
2 Symfony\Component\HttpKernel\HttpKernel handle
…/­vendor/­silex/­silex/­src/­Silex/­Application.php586
1 Silex\Application handle
…/­vendor/­silex/­silex/­src/­Silex/­Application.php563
0 Silex\Application run
…/­index.php49
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/bolt/filesystem/src/Filesystem.php
    private function doWrite($path, $contents, Flysystem\Config $config)
    {
        try {
            $result = (bool) $this->getAdapter()->write($path, $contents, $config);
        } catch (Exception $e) {
            throw $this->handleEx($e, $path);
        }
 
        if ($result === false) {
            throw new Ex\IOException('Failed to write to file', $path);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function writeStream($path, $resource, $config = [])
    {
        $resource = $this->normalizeResource($resource, __METHOD__);
        $path = $this->normalizePath($path);
Arguments
  1. "Failed to write to file"
    
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/bolt/filesystem/src/Filesystem.php
 
        $this->doPut($path, $contents, $config);
    }
 
    private function doPut($path, $contents, Flysystem\Config $config)
    {
        if ($this->doHas($path)) {
            $this->doUpdate($path, $contents, $config);
        } else {
            $this->doWrite($path, $contents, $config);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function putStream($path, $resource, $config = [])
    {
        $resource = $this->normalizeResource($resource, __METHOD__);
        $path = $this->normalizePath($path);
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/bolt/filesystem/src/Filesystem.php
 
    /**
     * {@inheritdoc}
     */
    public function put($path, $contents, $config = [])
    {
        $path = $this->normalizePath($path);
        $config = $this->prepareConfig($config);
 
        $this->doPut($path, $contents, $config);
    }
 
    private function doPut($path, $contents, Flysystem\Config $config)
    {
        if ($this->doHas($path)) {
            $this->doUpdate($path, $contents, $config);
        } else {
            $this->doWrite($path, $contents, $config);
        }
    }
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/bolt/filesystem/src/Handler/File.php
    {
        $this->filesystem->updateStream($this->path, $resource);
    }
 
    /**
     * {@inheritdoc}
     */
    public function put($content)
    {
        $this->filesystem->put($this->path, $content);
    }
 
    /**
     * {@inheritdoc}
     */
    public function putStream($resource)
    {
        $this->filesystem->putStream($this->path, $resource);
    }
 
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/bolt/bolt/src/Session/Handler/FilesystemHandler.php
            return null;
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function write($sessionId, $data)
    {
        $this->directory->getFile($sessionId)->put($data);
    }
 
    /**
     * {@inheritdoc}
     */
    public function destroy($sessionId)
    {
        try {
            $this->directory->getFile($sessionId)->delete();
        } catch (IOException $e) {
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/bolt/bolt/src/Session/SessionStorage.php
    {
        $data = $this->serializer->serialize($this->data);
 
        if ($this->options->getBoolean('lazy_write', false) &&
            $this->handler instanceof LazyWriteHandlerInterface &&
            md5($data) === $this->dataHash
        ) {
            $this->handler->updateTimestamp($this->id, $data);
        } else {
            $this->handler->write($this->id, $data);
        }
    }
}
 
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/bolt/bolt/src/Session/SessionStorage.php
    /**
     * {@inheritdoc}
     */
    public function save()
    {
        if (!$this->started || $this->closed) {
            throw new \RuntimeException('Trying to save a session that was not started yet or was already closed');
        }
 
        $this->write();
 
        $this->handler->close();
 
        $this->closed = true;
        $this->started = false;
    }
 
    /**
     * {@inheritdoc}
     */
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/http-foundation/Session/Session.php
    {
        return $this->storage->regenerate($destroy, $lifetime);
    }
 
    /**
     * {@inheritdoc}
     */
    public function save()
    {
        $this->storage->save();
    }
 
    /**
     * {@inheritdoc}
     */
    public function getId()
    {
        return $this->storage->getId();
    }
 
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/bolt/bolt/src/Session/SessionListener.php
     * Add the session cookie to the response if it is started.
     *
     * @param FilterResponseEvent $event
     */
    public function onResponse(FilterResponseEvent $event)
    {
        if (!$event->isMasterRequest() || !$this->session->isStarted()) {
            return;
        }
        $this->session->save();
        $cookie = $this->generateCookie();
        $event->getResponse()->headers->setCookie($cookie);
    }
 
    protected function generateCookie()
    {
        $lifetime = $this->options->getInt('cookie_lifetime');
        if ($lifetime !== 0) {
            $lifetime += time();
        }
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/event-dispatcher/Debug/WrappedListener.php
        return $this->stoppedPropagation;
    }
 
    public function __invoke(Event $event, $eventName, EventDispatcherInterface $dispatcher)
    {
        $this->called = true;
 
        $e = $this->stopwatch->start($this->name, 'event_listener');
 
        call_user_func($this->listener, $event, $eventName, $this->dispatcher ?: $dispatcher);
 
        if ($e->isStarted()) {
            $e->stop();
        }
 
        if ($event->isPropagationStopped()) {
            $this->stoppedPropagation = true;
        }
    }
}
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/event-dispatcher/Debug/WrappedListener.php
        return $this->stoppedPropagation;
    }
 
    public function __invoke(Event $event, $eventName, EventDispatcherInterface $dispatcher)
    {
        $this->called = true;
 
        $e = $this->stopwatch->start($this->name, 'event_listener');
 
        call_user_func($this->listener, $event, $eventName, $this->dispatcher ?: $dispatcher);
 
        if ($e->isStarted()) {
            $e->stop();
        }
 
        if ($event->isPropagationStopped()) {
            $this->stoppedPropagation = true;
        }
    }
}
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php
     * @param string     $eventName The name of the event to dispatch
     * @param Event      $event     The event object to pass to the event handlers/listeners
     */
    protected function doDispatch($listeners, $eventName, Event $event)
    {
        foreach ($listeners as $listener) {
            if ($event->isPropagationStopped()) {
                break;
            }
            call_user_func($listener, $event, $eventName, $this);
        }
    }
 
    /**
     * Sorts the internal list of listeners for the given event by priority.
     *
     * @param string $eventName The name of the event
     */
    private function sortListeners($eventName)
    {
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php
     * @param string     $eventName The name of the event to dispatch
     * @param Event      $event     The event object to pass to the event handlers/listeners
     */
    protected function doDispatch($listeners, $eventName, Event $event)
    {
        foreach ($listeners as $listener) {
            if ($event->isPropagationStopped()) {
                break;
            }
            call_user_func($listener, $event, $eventName, $this);
        }
    }
 
    /**
     * Sorts the internal list of listeners for the given event by priority.
     *
     * @param string $eventName The name of the event
     */
    private function sortListeners($eventName)
    {
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php
    {
        if (null === $event) {
            $event = new Event();
        }
 
        $event->setDispatcher($this);
        $event->setName($eventName);
 
        if ($listeners = $this->getListeners($eventName)) {
            $this->doDispatch($listeners, $eventName, $event);
        }
 
        return $event;
    }
 
    /**
     * {@inheritdoc}
     */
    public function getListeners($eventName = null)
    {
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
        if (null !== $this->logger && $event->isPropagationStopped()) {
            $this->logger->debug(sprintf('The "%s" event is already stopped. No listeners have been called.', $eventName));
        }
 
        $this->preProcess($eventName);
        $this->preDispatch($eventName, $event);
 
        $e = $this->stopwatch->start($eventName, 'section');
 
        $this->dispatcher->dispatch($eventName, $event);
 
        if ($e->isStarted()) {
            $e->stop();
        }
 
        $this->postDispatch($eventName, $event);
        $this->postProcess($eventName);
 
        return $event;
    }
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/http-kernel/HttpKernel.php
     *
     * @return Response The filtered Response instance
     *
     * @throws \RuntimeException if the passed object is not a Response instance
     */
    private function filterResponse(Response $response, Request $request, $type)
    {
        $event = new FilterResponseEvent($this, $request, $type, $response);
 
        $this->dispatcher->dispatch(KernelEvents::RESPONSE, $event);
 
        $this->finishRequest($request, $type);
 
        return $event->getResponse();
    }
 
    /**
     * Publishes the finish request event, then pop the request from the stack.
     *
     * Note that the order of the operations is important here, otherwise
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/http-kernel/HttpKernel.php
 
                // the user may have forgotten to return something
                if (null === $response) {
                    $msg .= ' Did you forget to add a return statement somewhere in your controller?';
                }
                throw new \LogicException($msg);
            }
        }
 
        return $this->filterResponse($response, $request, $type);
    }
 
    /**
     * Filters a response object.
     *
     * @param Response $response A Response instance
     * @param Request  $request  An error message in case the response is not a Response object
     * @param int      $type     The type of the request (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST)
     *
     * @return Response The filtered Response instance
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/symfony/http-kernel/HttpKernel.php
 
    /**
     * {@inheritdoc}
     */
    public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        $request->headers->set('X-Php-Ob-Level', ob_get_level());
 
        try {
            return $this->handleRaw($request, $type);
        } catch (\Exception $e) {
            if ($e instanceof ConflictingHeadersException) {
                $e = new BadRequestHttpException('The request headers contain conflicting information regarding the origin of this request.', $e);
            }
            if (false === $catch) {
                $this->finishRequest($request, $type);
 
                throw $e;
            }
 
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/silex/silex/src/Silex/Application.php
            $this->boot();
        }
 
        $current = HttpKernelInterface::SUB_REQUEST === $type ? $this['request'] : $this['request_error'];
 
        $this['request'] = $request;
 
        $this->flush();
 
        $response = $this['kernel']->handle($request, $type, $catch);
 
        $this['request'] = $current;
 
        return $response;
    }
 
    /**
     * {@inheritdoc}
     */
    public function terminate(Request $request, Response $response)
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/vendor/silex/silex/src/Silex/Application.php
     *
     * @param Request|null $request Request to process
     */
    public function run(Request $request = null)
    {
        if (null === $request) {
            $request = Request::createFromGlobals();
        }
 
        $response = $this->handle($request);
        $response->send();
        $this->terminate($request, $response);
    }
 
    /**
     * {@inheritdoc}
     *
     * If you call this method directly instead of run(), you must call the
     * terminate() method yourself if you want the finish filters to be run.
     */
/home/industri/domains/ehad.industrieel-atrium.nl/public_html/index.php
    }
}
 
/**
 * @var \Bolt\Application $app
 */
$app = require_once __DIR__ . '/app/bootstrap.php';
 
if ($app) {
    $app->run();
} else {
    return false;
}
 

Environment & details:

Key Value
Charset
"UTF-8"
Locale
"nl_NL"
Route Class
"Silex\Route"
Dispatcher Class
"Symfony\Component\EventDispatcher\EventDispatcher"
Application Class
"Bolt\Application"
Key Value
URI
"https://ehad.industrieel-atrium.nl/bussen/persoonsvervoer"
Request URI
"/bussen/persoonsvervoer"
Path Info
"/bussen/persoonsvervoer"
Query String
"<none>"
HTTP Method
"GET"
Script Name
"/index.php"
Base Path
""
Base URL
""
Scheme
"https"
Port
443
Host
"ehad.industrieel-atrium.nl"
empty
empty
empty
empty
empty
Key Value
USER
"industri"
HOME
"/home/industri"
HTTP_X_FORWARDED_FOR
"54.221.159.188"
HTTP_HOST
"ehad.industrieel-atrium.nl"
HTTP_USER_AGENT
"claudebot"
HTTP_ACCEPT
"*/*"
SCRIPT_FILENAME
"/home/industri/domains/ehad.industrieel-atrium.nl/private_html/index.php"
REDIRECT_STATUS
"200"
SERVER_NAME
"ehad.industrieel-atrium.nl"
SERVER_PORT
"443"
SERVER_ADDR
"89.188.8.213"
REMOTE_PORT
"38884"
REMOTE_ADDR
"89.188.8.208"
SERVER_SOFTWARE
"nginx/1.19.6"
GATEWAY_INTERFACE
"CGI/1.1"
HTTPS
"on"
REQUEST_SCHEME
"https"
SERVER_PROTOCOL
"HTTP/1.1"
DOCUMENT_ROOT
"/home/industri/domains/ehad.industrieel-atrium.nl/private_html"
DOCUMENT_URI
"/index.php"
REQUEST_URI
"/bussen/persoonsvervoer"
SCRIPT_NAME
"/index.php"
CONTENT_LENGTH
""
CONTENT_TYPE
""
REQUEST_METHOD
"GET"
QUERY_STRING
""
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1710840783,9735
REQUEST_TIME
1710840783
empty
0. Whoops\Handler\PrettyPageHandler