Mapbender Demo

  • Mapbender
  • Base maps
    OSM (color)
    OSM (greyscale)
    OSM (transparent)
    OSM WMTS (color)
    OSM Liberty Vector Tiles
    OSM Fiord Color Vector Tiles
    No background
Scale
Layer tree
Line/Area Ruler
Sketches
Coor­di­nates utility

Coordinate system

Coordinate in map reference system
Data Upload

You can upload files in GeoJSON, KML, GML and GPX format.

Name
View manager
Routing
About Mapbender

Learn more about Mapbender

Mapbender
https://mapbender.org

Mapbender is an

OSGeo Project

https://www.osgeo.org

  • © OpenMapTiles
  • © OpenStreetMap contributors
  • powered by Mapbender
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 10:10:01 request Matched route "mapbender_core_application_application".
{
    "route": "mapbender_core_application_application",
    "route_parameters": {
        "_route": "mapbender_core_application_application",
        "_format": "html",
        "_controller": "Mapbender\\CoreBundle\\Controller\\ApplicationController::application",
        "slug": "mapbender_user"
    },
    "request_uri": "http://prehistcopper-dev.elte.hu/application/mapbender_user",
    "method": "GET"
}
DEBUG 10:10:01 security Checking for authenticator support.
{
    "firewall_name": "secured_area",
    "authenticators": 1
}
DEBUG 10:10:01 security Checking support on authenticator.
{
    "firewall_name": "secured_area",
    "authenticator": "Symfony\\Component\\Security\\Http\\Authenticator\\FormLoginAuthenticator"
}
DEBUG 10:10:01 security Authenticator does not support the request.
{
    "firewall_name": "secured_area",
    "authenticator": "Symfony\\Component\\Security\\Http\\Authenticator\\FormLoginAuthenticator"
}
INFO 10:10:01 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 10:10:01 doctrine Executing statement: 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 WHERE t0.slug = ? LIMIT 1 (parameters: {params}, types: {types})
{
    "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 WHERE t0.slug = ? LIMIT 1",
    "params": {
        "1": "mapbender_user"
    },
    "types": {
        "1": 2
    }
}
INFO 10:10:01 deprecation User Deprecated: Not enabling raw field value access for the Criteria matching API in Doctrine\Common\Collections\Criteria is deprecated. Raw field access will be the only supported method in 3.0 (Criteria.php:76 called by Criteria.php:46, https://github.com/doctrine/collections/pull/472, package doctrine/collections)
{
    "exception": {}
}
CRITICAL 10:10:01 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 #