Fatal error: Cannot redeclare MkisDemoTheme1\Subscriber\CategorySubcategorySubscriber::onCategoryPageLoaded() in /www/htdocs/w021888d/raeuchertempel.de/custom/plugins/MkisDemoTheme1/src/Subscriber/CategorySubcategorySubscriber.php on line 59
Stack trace: #0 [internal function]: Symfony\Component\ErrorHandler\DebugClassLoader->loadClass('MkisDemoTheme1\\...') #1 /www/htdocs/w021888d/raeuchertempel.de/vendor/symfony/config/Resource/ReflectionClassResource.php(105): ReflectionClass->__construct('MkisDemoTheme1\\...') #2 /www/htdocs/w021888d/raeuchertempel.de/vendor/symfony/config/Resource/ReflectionClassResource.php(51): Symfony\Component\Config\Resource\ReflectionClassResource->computeHash() #3 /www/htdocs/w021888d/raeuchertempel.de/vendor/symfony/config/Resource/SelfCheckingResourceChecker.php(44): Symfony\Component\Config\Resource\ReflectionClassResource->isFresh(1781339092) #4 /www/htdocs/w021888d/raeuchertempel.de/vendor/symfony/config/ResourceCheckerConfigCache.php(88): Symfony\Component\Config\Resource\SelfCheckingResourceChecker->isFresh(Object(Symfony\Component\Config\Resource\ReflectionClassResource), 1781339092) #5 /www/htdocs/w021888d/raeuchertempel.de/vendor/symfony/config/ConfigCache.php(65): Symfony\Component\Config\ResourceCheckerConfigCache->isFresh() #6 /www/htdocs/w021888d/raeuchertempel.de/vendor/symfony/http-kernel/Kernel.php(424): Symfony\Component\Config\ConfigCache->isFresh() #7 /www/htdocs/w021888d/raeuchertempel.de/vendor/symfony/http-kernel/Kernel.php(762): Symfony\Component\HttpKernel\Kernel->initializeContainer() #8 /www/htdocs/w021888d/raeuchertempel.de/vendor/symfony/http-kernel/Kernel.php(122): Symfony\Component\HttpKernel\Kernel->preBoot() #9 /www/htdocs/w021888d/raeuchertempel.de/vendor/shopware/core/Kernel.php(149): Symfony\Component\HttpKernel\Kernel->boot() #10 /www/htdocs/w021888d/raeuchertempel.de/vendor/shopware/core/Kernel.php(127): Shopware\Core\Kernel->boot() #11 /www/htdocs/w021888d/raeuchertempel.de/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php(35): Shopware\Core\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #12 /www/htdocs/w021888d/raeuchertempel.de/vendor/autoload_runtime.php(32): Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() #13 /www/htdocs/w021888d/raeuchertempel.de/public/index.php(10): require_once('/www/htdocs/w02...') #14 {main} Compile Error: Cannot redeclare MkisDemoTheme1\Subscriber\CategorySubcategorySubscriber::onCategoryPageLoaded() (500 Internal Server Error)

Symfony Exception

FatalError

HTTP 500 Internal Server Error

Compile Error: Cannot redeclare MkisDemoTheme1\Subscriber\CategorySubcategorySubscriber::onCategoryPageLoaded()

Exception

Symfony\Component\ErrorHandler\Error\ FatalError

Show exception properties
Symfony\Component\ErrorHandler\Error\FatalError {#1118
  -error: array:5 [
    "type" => 64
    "message" => "Cannot redeclare MkisDemoTheme1\Subscriber\CategorySubcategorySubscriber::onCategoryPageLoaded()"
    "file" => "/www/htdocs/w021888d/raeuchertempel.de/custom/plugins/MkisDemoTheme1/src/Subscriber/CategorySubcategorySubscriber.php"
    "line" => 59
    "trace" => array:14 [
      0 => array:4 [
        "function" => "loadClass"
        "class" => "Symfony\Component\ErrorHandler\DebugClassLoader"
        "type" => "->"
        "args" => array:1 [
          0 => "MkisDemoTheme1\Subscriber\CategorySubcategorySubscriber"
        ]
      ]
      1 => array:6 [
        "file" => "/www/htdocs/w021888d/raeuchertempel.de/vendor/symfony/config/Resource/ReflectionClassResource.php"
        "line" => 105
        "function" => "__construct"
        "class" => "ReflectionClass"
        "type" => "->"
        "args" => array:1 [
          0 => "MkisDemoTheme1\Subscriber\CategorySubcategorySubscriber"
        ]
      ]
      2 => array:6 [
        "file" => "/www/htdocs/w021888d/raeuchertempel.de/vendor/symfony/config/Resource/ReflectionClassResource.php"
        "line" => 51
        "function" => "computeHash"
        "class" => "Symfony\Component\Config\Resource\ReflectionClassResource"
        "type" => "->"
        "args" => []
      ]
      3 => array:6 [
        "file" => "/www/htdocs/w021888d/raeuchertempel.de/vendor/symfony/config/Resource/SelfCheckingResourceChecker.php"
        "line" => 44
        "function" => "isFresh"
        "class" => "Symfony\Component\Config\Resource\ReflectionClassResource"
        "type" => "->"
        "args" => array:1 [
          0 => 1781339092
        ]
      ]
      4 => array:6 [
        "file" => "/www/htdocs/w021888d/raeuchertempel.de/vendor/symfony/config/ResourceCheckerConfigCache.php"
        "line" => 88
        "function" => "isFresh"
        "class" => "Symfony\Component\Config\Resource\SelfCheckingResourceChecker"
        "type" => "->"
        "args" => array:2 [
          0 => Symfony\Component\Config\Resource\ReflectionClassResource {#398
            -files: array:1 [
              "/www/htdocs/w021888d/raeuchertempel.de/custom/plugins/MkisDemoTheme1/src/Subscriber/CategorySubcategorySubscriber.php" => null
            ]
            -className: "MkisDemoTheme1\Subscriber\CategorySubcategorySubscriber"
            -excludedVendors: array:1 [
              0 => "/www/htdocs/w021888d/raeuchertempel.de/vendor"
            ]
            -hash: "56a585f796b84912ef2df3a566edfd72"
            -classReflector: ? ReflectionClass
          }
          1 => 1781339092
        ]
      ]
      5 => array:6 [
        "file" => "/www/htdocs/w021888d/raeuchertempel.de/vendor/symfony/config/ConfigCache.php"
        "line" => 65
        "function" => "isFresh"
        "class" => "Symfony\Component\Config\ResourceCheckerConfigCache"
        "type" => "->"
        "args" => []
      ]
      6 => array:6 [
        "file" => "/www/htdocs/w021888d/raeuchertempel.de/vendor/symfony/http-kernel/Kernel.php"
        "line" => 424
        "function" => "isFresh"
        "class" => "Symfony\Component\Config\ConfigCache"
        "type" => "->"
        "args" => []
      ]
      7 => array:6 [
        "file" => "/www/htdocs/w021888d/raeuchertempel.de/vendor/symfony/http-kernel/Kernel.php"
        "line" => 762
        "function" => "initializeContainer"
        "class" => "Symfony\Component\HttpKernel\Kernel"
        "type" => "->"
        "args" => []
      ]
      8 => array:6 [
        "file" => "/www/htdocs/w021888d/raeuchertempel.de/vendor/symfony/http-kernel/Kernel.php"
        "line" => 122
        "function" => "preBoot"
        "class" => "Symfony\Component\HttpKernel\Kernel"
        "type" => "->"
        "args" => []
      ]
      9 => array:6 [
        "file" => "/www/htdocs/w021888d/raeuchertempel.de/vendor/shopware/core/Kernel.php"
        "line" => 149
        "function" => "boot"
        "class" => "Symfony\Component\HttpKernel\Kernel"
        "type" => "->"
        "args" => []
      ]
      10 => array:6 [
        "file" => "/www/htdocs/w021888d/raeuchertempel.de/vendor/shopware/core/Kernel.php"
        "line" => 127
        "function" => "boot"
        "class" => "Shopware\Core\Kernel"
        "type" => "->"
        "args" => []
      ]
      11 => array:6 [
        "file" => "/www/htdocs/w021888d/raeuchertempel.de/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php"
        "line" => 35
        "function" => "handle"
        "class" => "Shopware\Core\Kernel"
        "type" => "->"
        "args" => array:1 [
          0 => Symfony\Component\HttpFoundation\Request {#74
            +attributes: Symfony\Component\HttpFoundation\ParameterBag {#49
              #parameters: []
            }
            +request: Symfony\Component\HttpFoundation\InputBag {#51
              #parameters: []
            }
            +query: Symfony\Component\HttpFoundation\InputBag {#50
              #parameters: []
            }
            +server: Symfony\Component\HttpFoundation\ServerBag {#46
              #parameters: array:66 [
                "PATH" => "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
                "USER" => "w021888d"
                "HOME" => "/www/htdocs/w021888d"
                "SCRIPT_NAME" => "/index.php"
                "REQUEST_URI" => "/Shop/images/MBrm062.jpg"
                "QUERY_STRING" => ""
                "REQUEST_METHOD" => "GET"
                "SERVER_PROTOCOL" => "HTTP/1.1"
                "GATEWAY_INTERFACE" => "CGI/1.1"
                "REDIRECT_URL" => "/Shop/images/MBrm062.jpg"
                "REMOTE_PORT" => "7582"
                "SCRIPT_FILENAME" => "/www/htdocs/w021888d/raeuchertempel.de/public/index.php"
                "SERVER_ADMIN" => "webmaster@raeuchertempel.de"
                "CONTEXT_DOCUMENT_ROOT" => "/www/htdocs/w021888d/raeuchertempel.de/public/"
                "CONTEXT_PREFIX" => ""
                "REQUEST_SCHEME" => "http"
                "DOCUMENT_ROOT" => "/www/htdocs/w021888d/raeuchertempel.de/public/"
                "REMOTE_ADDR" => "216.73.216.228"
                "SERVER_PORT" => "80"
                "SERVER_ADDR" => "85.13.168.178"
                "SERVER_NAME" => "raeuchertempel.de"
                "SERVER_SOFTWARE" => "Apache"
                "SERVER_SIGNATURE" => ""
                "HTTP_X_LE_CLIENT_UA" => "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
                "HTTP_X_LE_CLIENT_IP" => "216.73.216.228"
                "HTTP_CONNECTION" => "keep-alive"
                "HTTP_CACHE_CONTROL" => "max-age=259200"
                "HTTP_X_FORWARDED_FOR" => "10.1.189.6"
                "HTTP_VIA" => "1.1 squid-proxy-5b96dc6d46-952cq (squid/6.13)"
                "HTTP_HOST" => "raeuchertempel.de"
                "HTTP_REFERER" => "http://www.raeuchertempel.de/Shop/images/MBrm062.jpg"
                "HTTP_ACCEPT_ENCODING" => "gzip, br, zstd, deflate"
                "HTTP_USER_AGENT" => "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
                "HTTP_ACCEPT" => "*/*"
                "UNIQUE_ID" => "ai0bXdCJyRZXOg_geUGmWAAAAKQ"
                "REDIRECT_STATUS" => "200"
                "REDIRECT_dont-vary" => "1"
                "REDIRECT_no-brotli" => "1"
                "REDIRECT_UNIQUE_ID" => "ai0bXdCJyRZXOg_geUGmWAAAAKQ"
                "FCGI_ROLE" => "RESPONDER"
                "PHP_SELF" => "/index.php"
                "REQUEST_TIME_FLOAT" => 1781341021.23
                "REQUEST_TIME" => 1781341021
                "APP_RUNTIME_OPTIONS" => array:1 [
                  "project_dir" => "/www/htdocs/w021888d/raeuchertempel.de"
                ]
                "APP_RUNTIME" => "Symfony\Component\Runtime\SymfonyRuntime"
                "APP_PROJECT_DIR" => "/www/htdocs/w021888d/raeuchertempel.de"
                "SYMFONY_DOTENV_PATH" => "/www/htdocs/w021888d/raeuchertempel.de/.env"
                "APP_ENV" => "dev"
                "APP_DEBUG" => "1"
                "APP_URL" => "http://raeuchertempel.de"
                "APP_SECRET" => "PMto9MJE3ePnJbgBWSpixCmquxNTabhWrIqLz2atX4k40A0qcYa0RnpCPrrfTqVwyTs1Kzz+mNkCAM06gg+N9kmbmKjeT6vC+w4+aabvz5PwOG/Cqf+z6nT40tIcBXQ6kV8CU1S9"
                "INSTANCE_ID" => "QjxvcG0iEQzvxcXa31vL2otQW10FzckO"
                "BLUE_GREEN_DEPLOYMENT" => "1"
                "DATABASE_URL" => "mysql://d046f6d7:QDkujGgX9QSzKMs9@localhost:3306/d046f6d7"
                "LOCK_DSN" => "flock:///www/htdocs/w021888d/raeuchertempel.de/var/lock"
                "OPENSEARCH_URL" => "http://localhost:9200"
                "SHOPWARE_ES_ENABLED" => "0"
                "SHOPWARE_ES_INDEXING_ENABLED" => "0"
                "SHOPWARE_ES_INDEX_PREFIX" => "sw"
                "SHOPWARE_ES_THROW_EXCEPTION" => "1"
                "PROXY_URL" => "http://localhost"
                "SHOPWARE_HTTP_CACHE_ENABLED" => "1"
                "SHOPWARE_HTTP_DEFAULT_TTL" => "7200"
                "SYMFONY_DOTENV_VARS" => "APP_ENV,APP_DEBUG,APP_URL,APP_SECRET,INSTANCE_ID,BLUE_GREEN_DEPLOYMENT,DATABASE_URL,LOCK_DSN,OPENSEARCH_URL,SHOPWARE_ES_ENABLED,SHOPWARE_ES_INDEXING_ENABLED,SHOPWARE_ES_INDEX_PREFIX,SHOPWARE_ES_THROW_EXCEPTION,PROXY_URL,SHOPWARE_HTTP_CACHE_ENABLED,SHOPWARE_HTTP_DEFAULT_TTL,COMPOSER_HOME,ADMIN_OPENSEARCH_URL"
                "COMPOSER_HOME" => "/www/htdocs/w021888d/raeuchertempel.de/var/cache/composer"
                "ADMIN_OPENSEARCH_URL" => "http://localhost:9200"
              ]
            }
            +files: Symfony\Component\HttpFoundation\FileBag {#47
              #parameters: []
            }
            +cookies: Symfony\Component\HttpFoundation\InputBag {#48
              #parameters: []
            }
            +headers: Symfony\Component\HttpFoundation\HeaderBag {#45
              #headers: array:11 [
                "x-le-client-ua" => array:1 [
                  0 => "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
                ]
                "x-le-client-ip" => array:1 [
                  0 => "216.73.216.228"
                ]
                "connection" => array:1 [
                  0 => "keep-alive"
                ]
                "cache-control" => array:1 [
                  0 => "max-age=259200"
                ]
                "x-forwarded-for" => array:1 [
                  0 => "10.1.189.6"
                ]
                "via" => array:1 [
                  0 => "1.1 squid-proxy-5b96dc6d46-952cq (squid/6.13)"
                ]
                "host" => array:1 [
                  0 => "raeuchertempel.de"
                ]
                "referer" => array:1 [
                  0 => "http://www.raeuchertempel.de/Shop/images/MBrm062.jpg"
                ]
                "accept-encoding" => array:1 [
                  0 => "gzip, br, zstd, deflate"
                ]
                "user-agent" => array:1 [
                  0 => "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
                ]
                "accept" => array:1 [
                  0 => "*/*"
                ]
              ]
              #cacheControl: array:1 [
                "max-age" => "259200"
              ]
            }
            #content: null
            #languages: null
            #charsets: null
            #encodings: null
            #acceptableContentTypes: null
            #pathInfo: null
            #requestUri: null
            #baseUrl: null
            #basePath: null
            #method: null
            #format: null
            #session: null
            #locale: null
            #defaultLocale: "en"
            -preferredFormat: null
            -isHostValid: true
            -isForwardedValid: true
            -isSafeContentPreferred: ? bool
            -trustedValuesCache: []
            -isIisRewrite: false
            pathInfo: "/Shop/images/MBrm062.jpg"
            requestUri: "/Shop/images/MBrm062.jpg"
            baseUrl: ""
            basePath: ""
            method: "GET"
            format: "html"
          }
        ]
      ]
      12 => array:6 [
        "file" => "/www/htdocs/w021888d/raeuchertempel.de/vendor/autoload_runtime.php"
        "line" => 32
        "function" => "run"
        "class" => "Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner"
        "type" => "->"
        "args" => []
      ]
      13 => array:4 [
        "file" => "/www/htdocs/w021888d/raeuchertempel.de/public/index.php"
        "line" => 10
        "args" => array:1 [
          0 => "/www/htdocs/w021888d/raeuchertempel.de/vendor/autoload_runtime.php"
        ]
        "function" => "require_once"
      ]
    ]
  ]
}
  1. // Debug
  2. // dump($activeCategory?->getName());
  3. // dump($children);
  4. }
  5. public function onCategoryPageLoaded(CategoryPageLoadedEvent $event): void
  6. {
  7. }

Stack Trace

FatalError
Symfony\Component\ErrorHandler\Error\FatalError:
Compile Error: Cannot redeclare MkisDemoTheme1\Subscriber\CategorySubcategorySubscriber::onCategoryPageLoaded()

  at /www/htdocs/w021888d/raeuchertempel.de/custom/plugins/MkisDemoTheme1/src/Subscriber/CategorySubcategorySubscriber.php:59