Error 500 Internal Server Error

GET https://webtest2.targetmedia.cz/media/603/download/PPF%20Environmental%20Policy_NL.pdf?v=1

Forwarded to ErrorController (822771)

MediaStreamController :: downloadAction

Request

GET Parameters

Key Value
v
"1"

POST Parameters

No POST parameters

Uploaded Files

No files were uploaded

Request Attributes

Key Value
_controller
"sulu_media.media_stream_controller::downloadAction"
_fos_rest_zone
false
_remove_csp_headers
true
_requestAnalyzer
false
_route
"sulu_media.website.media.download"
_route_params
[
  "_requestAnalyzer" => false
  "id" => "603"
  "slug" => "PPF Environmental Policy_NL.pdf"
]
_stopwatch_token
"344dbe"
_sulu
Sulu\Component\Webspace\Analyzer\Attributes\RequestAttributes {#2334
  -attributes: [
    "requestUri" => "/media/603/download/PPF%20Environmental%20Policy_NL.pdf?v=1"
    "portalInformation" => Sulu\Component\Webspace\PortalInformation {#2327
      -type: 1
      -webspace: Sulu\Component\Webspace\Webspace {#2086
        -name: "PPF - EN"
        -key: "ppf"
        -localizations: [
          Sulu\Component\Localization\Localization {#2117
            -language: "en"
            -country: ""
            -shadow: ""
            -children: []
            -parent: null
            -default: true
            -xDefault: ""
          }
        ]
        -defaultLocalization: Sulu\Component\Localization\Localization {#2117}
        -xDefaultLocalization: null
        -segments: []
        -defaultSegment: null
        -theme: null
        -portals: [
          Sulu\Component\Webspace\Portal {#2100
            -name: "ppf"
            -key: "ppf"
            -localizations: [
              Sulu\Component\Localization\Localization {#2088 …}
            ]
            -defaultLocalization: Sulu\Component\Localization\Localization {#2088 …}
            -xDefaultLocalization: Sulu\Component\Localization\Localization {#2088 …}
            -environments: [
              "prod" => Sulu\Component\Webspace\Environment {#2111
                -type: "prod"
                -urls: [
                  Sulu\Component\Webspace\Url {#2090 …}
                ]
                -customUrls: []
                -mainUrl: Sulu\Component\Webspace\Url {#2090 …}
              }
              "stage" => Sulu\Component\Webspace\Environment {#2047
                -type: "stage"
                -urls: [
                  Sulu\Component\Webspace\Url {#2078 …}
                ]
                -customUrls: []
                -mainUrl: Sulu\Component\Webspace\Url {#2078 …}
              }
              "test" => Sulu\Component\Webspace\Environment {#2044
                -type: "test"
                -urls: [
                  Sulu\Component\Webspace\Url {#2087 …}
                ]
                -customUrls: []
                -mainUrl: Sulu\Component\Webspace\Url {#2087 …}
              }
              "dev" => Sulu\Component\Webspace\Environment {#2096
                -type: "dev"
                -urls: [
                  Sulu\Component\Webspace\Url {#2091 …}
                ]
                -customUrls: []
                -mainUrl: Sulu\Component\Webspace\Url {#2091 …}
              }
            ]
            -webspace: Sulu\Component\Webspace\Webspace {#2086}
          }
        ]
        -security: null
        -navigation: Sulu\Component\Webspace\Navigation {#2093 …}
        -templates: [
          "search" => "search/search"
          "error" => "error/error"
        ]
        -defaultTemplates: [
          "page" => "default"
          "home" => "homepage"
        ]
        -excludedTemplates: []
        -resourceLocatorStrategy: "tree_leaf_edit"
      }
      -portal: Sulu\Component\Webspace\Portal {#2100}
      -localization: Sulu\Component\Localization\Localization {#2117}
      -segment: null
      -url: "webtest2.targetmedia.cz"
      -redirect: ""
      -main: true
      -urlExpression: "webtest2.targetmedia.cz"
      -priority: 5
    }
    "matchType" => 1
    "portalUrl" => "webtest2.targetmedia.cz"
    "webspace" => Sulu\Component\Webspace\Webspace {#2086}
    "portal" => Sulu\Component\Webspace\Portal {#2100}
    "localization" => Sulu\Component\Localization\Localization {#2117}
    "locale" => "en"
    "urlExpression" => "webtest2.targetmedia.cz"
    "resourceLocator" => "/media/603/download/PPF%20Environmental%20Policy_NL"
    "format" => "pdf"
    "dateTime" => DateTime @1751848919 {#1602
      date: 2025-07-07 00:41:59.756905 UTC (+00:00)
    }
    "host" => "webtest2.targetmedia.cz"
    "port" => 443
    "path" => "/media/603/download/PPF%20Environmental%20Policy_NL.pdf"
    "scheme" => "https"
  ]
}
id
"603"
slug
"PPF Environmental Policy_NL.pdf"

Request Headers

Header Value
accept
"*/*"
accept-encoding
"gzip, br, deflate"
connection
"close"
from
"gptbot(at)openai.com"
host
"webtest2.targetmedia.cz"
user-agent
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.2; +https://openai.com/gptbot)"
x-accel-internal
"/internal-nginx-static-location"
x-openai-host-hash
"93612608"
x-php-ob-level
"1"
x-real-ip
"20.171.207.197"

Request Content

Request content not available (it was retrieved as a resource).

Response

Response Headers

Header Value
cache-control
"private, must-revalidate"
content-type
"text/html; charset=UTF-8"
date
"Mon, 07 Jul 2025 00:41:59 GMT"
expires
"-1"
pragma
"no-cache"
vary
"Accept"
x-cache-debug
[
  "1"
  "1"
]
x-debug-exception
"The%20file%20%22%2Fvar%2Fwww%2Fvhosts%2Fwebtest2.targetmedia.cz%2Fvar%2Fuploads%2Fmedia%2F05%2Fppf-environmental-policy-nl.pdf%22%20does%20not%20exist"
x-debug-exception-file
"%2Fvar%2Fwww%2Fvhosts%2Fwebtest2.targetmedia.cz%2Fvendor%2Fsymfony%2Fhttp-foundation%2FFile%2FFile.php:36"
x-debug-token
"a8ac61"
x-debug-token-link
"https://webtest2.targetmedia.cz/_profiler/822771"
x-generator
"Sulu/2.5.21"
x-previous-debug-token
"822771"
x-robots-tag
"noindex"

Cookies

Request Cookies

No request cookies

Response Cookies

No response cookies

Session

Session Metadata

No session metadata

Session Attributes

No session attributes

Session Usage

0 Usages
Stateless check enabled

Session not used.

Flashes

Flashes

No flash messages were created.

Server Parameters

Server Parameters

Defined in .env

Key Value
APP_DEBUG
"1"
APP_ENV
"dev"
APP_SECRET
"c5914143393e510519488259973f4006"
DATABASE_URL
"mysql://webtest2.targetmedia.cz:5a4Y5VW_vy@127.0.0.1:3306/webtest2?serverVersion=8.0.27&charset=utf8mb4"
ELASTICSEARCH_HOST
"127.0.0.1:9200"
ELASTICSEARCH_INDEX
"su_articles"
GOOGLE_RECAPTCHA_SECRET
"6LdmAUkqAAAAAAnsj2ZpIVXLX3YLK4o6XBfmHA0Z"
GOOGLE_RECAPTCHA_SITE_KEY
"6LdmAUkqAAAAAEuTqBBvNIilhzxIHvmtnsUeNLaJ"
LOCK_DSN
"semaphore"
MAILER_DSN
"smtp://phpmailer:dASH:PIp+peG72@mail.targetmedia.cz:587?encryption=tls"
SULU_ADMIN_EMAIL
"duskova@targetmedia.cz"

Defined as regular env variables

Key Value
CONTEXT_DOCUMENT_ROOT
"/var/www/vhosts/webtest2.targetmedia.cz/public"
CONTEXT_PREFIX
""
DOCUMENT_ROOT
"/var/www/vhosts/webtest2.targetmedia.cz/public"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
HOME
"/var/www/vhosts/webtest2.targetmedia.cz"
HTTPS
"on"
HTTP_ACCEPT
"*/*"
HTTP_ACCEPT_ENCODING
"gzip, br, deflate"
HTTP_CONNECTION
"close"
HTTP_FROM
"gptbot(at)openai.com"
HTTP_HOST
"webtest2.targetmedia.cz"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.2; +https://openai.com/gptbot)"
HTTP_X_ACCEL_INTERNAL
"/internal-nginx-static-location"
HTTP_X_OPENAI_HOST_HASH
"93612608"
HTTP_X_REAL_IP
"20.171.207.197"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
PHP_SELF
"/index.php"
QUERY_STRING
"v=1"
REDIRECT_HTTPS
"on"
REDIRECT_QUERY_STRING
"v=1"
REDIRECT_SCRIPT_URI
"https://webtest2.targetmedia.cz/media/603/download/PPF Environmental Policy_NL.pdf"
REDIRECT_SCRIPT_URL
"/media/603/download/PPF Environmental Policy_NL.pdf"
REDIRECT_STATUS
"200"
REDIRECT_UNIQUE_ID
"aGsX16c7yzALiGQGgVqdOwAAABU"
REDIRECT_URL
"/media/603/download/PPF Environmental Policy_NL.pdf"
REMOTE_ADDR
"20.171.207.197"
REMOTE_PORT
"42612"
REQUEST_METHOD
"GET"
REQUEST_SCHEME
"https"
REQUEST_TIME
1751848919
REQUEST_TIME_FLOAT
1751848919.5593
REQUEST_URI
"/media/603/download/PPF%20Environmental%20Policy_NL.pdf?v=1"
SCRIPT_FILENAME
"/var/www/vhosts/webtest2.targetmedia.cz/public/index.php"
SCRIPT_NAME
"/index.php"
SCRIPT_URI
"https://webtest2.targetmedia.cz/media/603/download/PPF Environmental Policy_NL.pdf"
SCRIPT_URL
"/media/603/download/PPF Environmental Policy_NL.pdf"
SERVER_ADDR
"193.165.171.59"
SERVER_ADMIN
"[no address given]"
SERVER_NAME
"webtest2.targetmedia.cz"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.0"
SERVER_SIGNATURE
"<address>Apache Server at webtest2.targetmedia.cz Port 443</address>\n"
SERVER_SOFTWARE
"Apache"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_DEBUG,APP_SECRET,LOCK_DSN,DATABASE_URL,SULU_ADMIN_EMAIL,MAILER_DSN,ELASTICSEARCH_HOST,ELASTICSEARCH_INDEX,GOOGLE_RECAPTCHA_SECRET,GOOGLE_RECAPTCHA_SITE_KEY"
UNIQUE_ID
"aGsX16c7yzALiGQGgVqdOwAAABU"
USER
"webtest2.targetmedia_u7s8fa2igca"
proxy-nokeepalive
"1"

Sub Requests 1

ErrorController (token = 822771)

Key Value
_controller
"error_controller"
_fos_rest_zone
false
_stopwatch_token
"09b27e"
_sulu
Sulu\Component\Webspace\Analyzer\Attributes\RequestAttributes {#4391
  -attributes: [
    "requestUri" => "/media/603/download/PPF%20Environmental%20Policy_NL.pdf?v=1"
    "portalInformation" => Sulu\Component\Webspace\PortalInformation {#2327
      -type: 1
      -webspace: Sulu\Component\Webspace\Webspace {#2086
        -name: "PPF - EN"
        -key: "ppf"
        -localizations: [
          Sulu\Component\Localization\Localization {#2117
            -language: "en"
            -country: ""
            -shadow: ""
            -children: []
            -parent: null
            -default: true
            -xDefault: ""
          }
        ]
        -defaultLocalization: Sulu\Component\Localization\Localization {#2117}
        -xDefaultLocalization: null
        -segments: []
        -defaultSegment: null
        -theme: null
        -portals: [
          Sulu\Component\Webspace\Portal {#2100
            -name: "ppf"
            -key: "ppf"
            -localizations: [
              Sulu\Component\Localization\Localization {#2088 …}
            ]
            -defaultLocalization: Sulu\Component\Localization\Localization {#2088 …}
            -xDefaultLocalization: Sulu\Component\Localization\Localization {#2088 …}
            -environments: [
              "prod" => Sulu\Component\Webspace\Environment {#2111
                -type: "prod"
                -urls: [
                  Sulu\Component\Webspace\Url {#2090 …}
                ]
                -customUrls: []
                -mainUrl: Sulu\Component\Webspace\Url {#2090 …}
              }
              "stage" => Sulu\Component\Webspace\Environment {#2047
                -type: "stage"
                -urls: [
                  Sulu\Component\Webspace\Url {#2078 …}
                ]
                -customUrls: []
                -mainUrl: Sulu\Component\Webspace\Url {#2078 …}
              }
              "test" => Sulu\Component\Webspace\Environment {#2044
                -type: "test"
                -urls: [
                  Sulu\Component\Webspace\Url {#2087 …}
                ]
                -customUrls: []
                -mainUrl: Sulu\Component\Webspace\Url {#2087 …}
              }
              "dev" => Sulu\Component\Webspace\Environment {#2096
                -type: "dev"
                -urls: [
                  Sulu\Component\Webspace\Url {#2091 …}
                ]
                -customUrls: []
                -mainUrl: Sulu\Component\Webspace\Url {#2091 …}
              }
            ]
            -webspace: Sulu\Component\Webspace\Webspace {#2086}
          }
        ]
        -security: null
        -navigation: Sulu\Component\Webspace\Navigation {#2093 …}
        -templates: [
          "search" => "search/search"
          "error" => "error/error"
        ]
        -defaultTemplates: [
          "page" => "default"
          "home" => "homepage"
        ]
        -excludedTemplates: []
        -resourceLocatorStrategy: "tree_leaf_edit"
      }
      -portal: Sulu\Component\Webspace\Portal {#2100}
      -localization: Sulu\Component\Localization\Localization {#2117}
      -segment: null
      -url: "webtest2.targetmedia.cz"
      -redirect: ""
      -main: true
      -urlExpression: "webtest2.targetmedia.cz"
      -priority: 5
    }
    "matchType" => 1
    "portalUrl" => "webtest2.targetmedia.cz"
    "webspace" => Sulu\Component\Webspace\Webspace {#2086}
    "portal" => Sulu\Component\Webspace\Portal {#2100}
    "localization" => Sulu\Component\Localization\Localization {#2117}
    "locale" => "en"
    "urlExpression" => "webtest2.targetmedia.cz"
    "resourceLocator" => "/media/603/download/PPF%20Environmental%20Policy_NL"
    "format" => "pdf"
    "dateTime" => DateTime @1751848919 {#4389
      date: 2025-07-07 00:41:59.921295 UTC (+00:00)
    }
    "host" => "webtest2.targetmedia.cz"
    "port" => 443
    "path" => "/media/603/download/PPF%20Environmental%20Policy_NL.pdf"
    "scheme" => "https"
  ]
}
exception
Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException {#2536
  #message: "The file "/var/www/vhosts/webtest2.targetmedia.cz/var/uploads/media/05/ppf-environmental-policy-nl.pdf" does not exist"
  #code: 0
  #file: "/var/www/vhosts/webtest2.targetmedia.cz/vendor/symfony/http-foundation/File/File.php"
  #line: 36
  trace: {
    /var/www/vhosts/webtest2.targetmedia.cz/vendor/symfony/http-foundation/File/File.php:36 {
      Symfony\Component\HttpFoundation\File\File->__construct(string $path, bool $checkPath = true) …
      › if ($checkPath && !is_file($path)) {    throw new FileNotFoundException($path);}
    }
    /var/www/vhosts/webtest2.targetmedia.cz/vendor/symfony/http-foundation/BinaryFileResponse.php:72 {
      Symfony\Component\HttpFoundation\BinaryFileResponse->setFile(SplFileInfo|string $file, string $contentDisposition = null, bool $autoEtag = false, bool $autoLastModified = true): static …
      › } else {    $file = new File((string) $file);}
    }
    /var/www/vhosts/webtest2.targetmedia.cz/vendor/symfony/http-foundation/BinaryFileResponse.php:52 {
      Symfony\Component\HttpFoundation\BinaryFileResponse->__construct(SplFileInfo|string $file, int $status = 200, array $headers = [], bool $public = true, string $contentDisposition = null, bool $autoEtag = false, bool $autoLastModified = true) …
      › 
      › $this->setFile($file, $contentDisposition, $autoEtag, $autoLastModified);}
    /var/www/vhosts/webtest2.targetmedia.cz/vendor/sulu/sulu/src/Sulu/Bundle/MediaBundle/Controller/MediaStreamController.php:173 {
      Sulu\Bundle\MediaBundle\Controller\MediaStreamController->createBinaryFileResponse(FileVersion $fileVersion, StorageInterface $storage, string $locale, string $dispositionType): BinaryFileResponse …
      › 
      › $response = new BinaryFileResponse($storage->getPath($storageOptions));}
    /var/www/vhosts/webtest2.targetmedia.cz/vendor/sulu/sulu/src/Sulu/Bundle/MediaBundle/Controller/MediaStreamController.php:155 {
      Sulu\Bundle\MediaBundle\Controller\MediaStreamController->getFileResponse(FileVersion $fileVersion, string $locale, string $dispositionType = ResponseHeaderBag::DISPOSITION_ATTACHMENT): Response …
      › } elseif (StorageInterface::TYPE_LOCAL === $storageType) {    return $this->createBinaryFileResponse($fileVersion, $this->storage, $locale, $dispositionType);}
    }
    /var/www/vhosts/webtest2.targetmedia.cz/vendor/sulu/sulu/src/Sulu/Bundle/MediaBundle/Controller/MediaStreamController.php:132 {
      Sulu\Bundle\MediaBundle\Controller\MediaStreamController->downloadAction(Request $request, $id, $slug) …
      › 
      › $response = $this->getFileResponse($fileVersion, $request->getLocale(), $dispositionType);}
    /var/www/vhosts/webtest2.targetmedia.cz/vendor/symfony/http-kernel/HttpKernel.php:181 {
      Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
      › // call controller$response = $controller(...$arguments);}
    /var/www/vhosts/webtest2.targetmedia.cz/vendor/symfony/http-kernel/HttpKernel.php:76 {
      Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
      › try {    return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {
    }
    /var/www/vhosts/webtest2.targetmedia.cz/vendor/symfony/http-kernel/Kernel.php:197 {
      Symfony\Component\HttpKernel\Kernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
      › try {    return $this->getHttpKernel()->handle($request, $type, $catch);} finally {
    }
    /var/www/vhosts/webtest2.targetmedia.cz/public/index.php:67 {$request = Request::createFromGlobals();$response = $kernel->handle($request);$response->send();
    }
  }
}
logger
Symfony\Bridge\Monolog\Logger {#211 …9}