Applications

Loading…
Loading the web debug toolbar…
Attempt #
unlink(): Argument #1 ($filename) must not contain any null bytes (500 Internal Server Error)

Symfony Exception

ValueError

HTTP 500 Internal Server Error

unlink(): Argument #1 ($filename) must not contain any null bytes

Exception

ValueError

  1. if ($csvTime >= $minimalProfileTimestamp) {
  2. break;
  3. }
  4. @unlink($this->getFilename($csvToken));
  5. $offset += \strlen($line);
  6. }
  7. fclose($handle);
  8. file_put_contents($file.'.offset', $offset);
  1. if ($csvTime >= $minimalProfileTimestamp) {
  2. break;
  3. }
  4. @unlink($this->getFilename($csvToken));
  5. $offset += \strlen($line);
  6. }
  7. fclose($handle);
  8. file_put_contents($file.'.offset', $offset);
  1. $profile->getVirtualType() ?? 'request',
  2. ], ',', '"', '\\');
  3. fclose($file);
  4. if (1 === mt_rand(1, 10)) {
  5. $this->removeExpiredProfiles();
  6. }
  7. }
  8. return true;
  9. }
  1. if ($collector instanceof LateDataCollectorInterface) {
  2. $collector->lateCollect();
  3. }
  4. }
  5. if (!($ret = $this->storage->write($profile)) && null !== $this->logger) {
  6. $this->logger->warning('Unable to store the profiler information.', ['configured_storage' => $this->storage::class]);
  7. }
  8. return $ret;
  9. }
  1. }
  2. }
  3. // save profiles
  4. foreach ($this->profiles as $request) {
  5. $this->profiler->saveProfile($this->profiles[$request]);
  6. }
  7. $this->profiles = new \SplObjectStorage();
  8. $this->parents = new \SplObjectStorage();
  9. }
  1. $closure = static function (...$args) use (&$listener, &$closure) {
  2. if ($listener[0] instanceof \Closure) {
  3. $listener[0] = $listener[0]();
  4. $listener[1] ??= '__invoke';
  5. }
  6. ($closure = $listener(...))(...$args);
  7. };
  8. } else {
  9. $closure = $listener instanceof WrappedListener ? $listener : $listener(...);
  10. }
  11. }
in vendor/symfony/event-dispatcher/EventDispatcher.php :: Symfony\Component\EventDispatcher\{closure} (line 220)
  1. foreach ($listeners as $listener) {
  2. if ($stoppable && $event->isPropagationStopped()) {
  3. break;
  4. }
  5. $listener($event, $eventName, $this);
  6. }
  7. }
  8. /**
  9. * Sorts the internal list of listeners for the given event by priority.
  1. } else {
  2. $listeners = $this->getListeners($eventName);
  3. }
  4. if ($listeners) {
  5. $this->callListeners($listeners, $eventName, $event);
  6. }
  7. return $event;
  8. }
  1. /**
  2. * @return void
  3. */
  4. public function terminate(Request $request, Response $response)
  5. {
  6. $this->dispatcher->dispatch(new TerminateEvent($this, $request, $response), KernelEvents::TERMINATE);
  7. }
  8. /**
  9. * @internal
  10. */
in vendor/symfony/http-kernel/Kernel.php -> terminate (line 157)
  1. if (false === $this->booted) {
  2. return;
  3. }
  4. if ($this->getHttpKernel() instanceof TerminableInterface) {
  5. $this->getHttpKernel()->terminate($request, $response);
  6. }
  7. }
  8. /**
  9. * @return void
  1. } else {
  2. $response->send();
  3. }
  4. if ($this->kernel instanceof TerminableInterface) {
  5. $this->kernel->terminate($this->request, $response);
  6. }
  7. return 0;
  8. }
  9. }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/var/mapbender/application/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5. return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Logs 1

Level Channel Message
INFO 16:10:28 request Matched route "mapbender_core_welcome_list".
{
    "route": "mapbender_core_welcome_list",
    "route_parameters": {
        "_route": "mapbender_core_welcome_list",
        "_controller": "Mapbender\\CoreBundle\\Controller\\WelcomeController::list"
    },
    "request_uri": "http://prehistcopper-dev.elte.hu/",
    "method": "GET"
}
DEBUG 16:10:28 security Checking for authenticator support.
{
    "firewall_name": "secured_area",
    "authenticators": 1
}
DEBUG 16:10:28 security Checking support on authenticator.
{
    "firewall_name": "secured_area",
    "authenticator": "Symfony\\Component\\Security\\Http\\Authenticator\\FormLoginAuthenticator"
}
DEBUG 16:10:28 security Authenticator does not support the request.
{
    "firewall_name": "secured_area",
    "authenticator": "Symfony\\Component\\Security\\Http\\Authenticator\\FormLoginAuthenticator"
}
INFO 16:10:28 doctrine Connecting with parameters {params}
{
    "params": {
        "driver": "pdo_pgsql",
        "idle_connection_ttl": 600,
        "host": "mapbender-db",
        "port": 5432,
        "user": "mapbender",
        "password": "<redacted>",
        "driverOptions": [],
        "defaultTableOptions": [],
        "dbname": "mapbenderdb",
        "charset": "utf8"
    }
}
DEBUG 16:10:28 doctrine Executing query: SELECT t0.id AS id_1, t0.title AS title_2, t0.slug AS slug_3, t0.description AS description_4, t0.template AS template_5, t0.map_engine_code AS map_engine_code_6, t0.persistent_view AS persistent_view_7, t0.splashscreen AS splashscreen_8, t0.screenshot AS screenshot_9, t0.extra_assets AS extra_assets_10, t0.updated AS updated_11, t0.custom_css AS custom_css_12 FROM mb_core_application t0 ORDER BY t0.title ASC
{
    "sql": "SELECT t0.id AS id_1, t0.title AS title_2, t0.slug AS slug_3, t0.description AS description_4, t0.template AS template_5, t0.map_engine_code AS map_engine_code_6, t0.persistent_view AS persistent_view_7, t0.splashscreen AS splashscreen_8, t0.screenshot AS screenshot_9, t0.extra_assets AS extra_assets_10, t0.updated AS updated_11, t0.custom_css AS custom_css_12 FROM mb_core_application t0 ORDER BY t0.title ASC"
}
DEBUG 16:10:28 doctrine Executing query: SELECT f0_.id AS id_0, f0_.subject_domain AS subject_domain_1, f0_.subject AS subject_2, f0_.resource_domain AS resource_domain_3, f0_.resource_ref AS resource_ref_4, f0_.action AS action_5, f0_.user_id AS user_id_6, f0_.group_id AS group_id_7, f0_.element_id AS element_id_8, f0_.application_id AS application_id_9 FROM fom_permission f0_ WHERE f0_.subject_domain = 'public'
{
    "sql": "SELECT f0_.id AS id_0, f0_.subject_domain AS subject_domain_1, f0_.subject AS subject_2, f0_.resource_domain AS resource_domain_3, f0_.resource_ref AS resource_ref_4, f0_.action AS action_5, f0_.user_id AS user_id_6, f0_.group_id AS group_id_7, f0_.element_id AS element_id_8, f0_.application_id AS application_id_9 FROM fom_permission f0_ WHERE f0_.subject_domain = 'public'"
}
CRITICAL 16:10:28 request Uncaught PHP Exception ValueError: "unlink(): Argument #1 ($filename) must not contain any null bytes" at FileProfilerStorage.php line 351
{
    "exception": {}
}

Stack Trace

ValueError
ValueError:
unlink(): Argument #1 ($filename) must not contain any null bytes

  at vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php:351
  at unlink(binary string)
     (vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php:351)
  at Symfony\Component\HttpKernel\Profiler\FileProfilerStorage->removeExpiredProfiles()
     (vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php:200)
  at Symfony\Component\HttpKernel\Profiler\FileProfilerStorage->write(object(Profile))
     (vendor/symfony/http-kernel/Profiler/Profiler.php:104)
  at Symfony\Component\HttpKernel\Profiler\Profiler->saveProfile(object(Profile))
     (vendor/symfony/http-kernel/EventListener/ProfilerListener.php:135)
  at Symfony\Component\HttpKernel\EventListener\ProfilerListener->onKernelTerminate(object(TerminateEvent), 'kernel.terminate', object(EventDispatcher))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:260)
  at Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}(object(TerminateEvent), 'kernel.terminate', object(EventDispatcher))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:220)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(Closure)), 'kernel.terminate', object(TerminateEvent))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(TerminateEvent), 'kernel.terminate')
     (vendor/symfony/http-kernel/HttpKernel.php:115)
  at Symfony\Component\HttpKernel\HttpKernel->terminate(object(Request), object(Response))
     (vendor/symfony/http-kernel/Kernel.php:157)
  at Symfony\Component\HttpKernel\Kernel->terminate(object(Request), object(Response))
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:53)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:29)
  at require_once('/var/mapbender/application/vendor/autoload_runtime.php')
     (public/index.php:5)                
Loading…
Loading the web debug toolbar…
Attempt #