Fatal error: Cannot redeclare class WebseExternalProductImages\Subscriber\StorefrontSubscriber (previously declared in /home/p-u8h2xi/html/development/custom/plugins/WebseExternalProductImages/src/Subscriber/StorefrontSubscriber.php:11) in /home/p-u8h2xi/html/development/custom/plugins/WebseExternalProductImages/src/Subscriber/StorefrontSubscriber.php on line 11
Compile Error: Cannot redeclare class WebseExternalProductImages\Subscriber\StorefrontSubscriber (previously declared in /home/p-u8h2xi/html/development/custom/plugins/WebseExternalProductImages/src/Subscriber/StorefrontSubscriber.php:11) (500 Internal Server Error)

Symfony Exception

FatalError

HTTP 500 Internal Server Error

Compile Error: Cannot redeclare class WebseExternalProductImages\Subscriber\StorefrontSubscriber (previously declared in /home/p-u8h2xi/html/development/custom/plugins/WebseExternalProductImages/src/Subscriber/StorefrontSubscriber.php:11)

Exception

Symfony\Component\ErrorHandler\Error\ FatalError

Show exception properties
Symfony\Component\ErrorHandler\Error\FatalError {#28207
  -error: array:4 [
    "type" => 64
    "message" => "Cannot redeclare class WebseExternalProductImages\Subscriber\StorefrontSubscriber (previously declared in /home/p-u8h2xi/html/development/custom/plugins/WebseExternalProductImages/src/Subscriber/StorefrontSubscriber.php:11)"
    "file" => "/home/p-u8h2xi/html/development/custom/plugins/WebseExternalProductImages/src/Subscriber/StorefrontSubscriber.php"
    "line" => 11
  ]
}
  1. use Shopware\Core\Framework\Struct\ArrayStruct;
  2. use Shopware\Core\System\SystemConfig\SystemConfigService;
  3. use Shopware\Storefront\Page\Product\ProductPageLoadedEvent;
  4. use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  5. class StorefrontSubscriber implements EventSubscriberInterface
  6. {
  7. public function __construct(
  8. private readonly SystemConfigService $systemConfigService
  9. ) {
  10. }

Stack Trace

FatalError
Symfony\Component\ErrorHandler\Error\FatalError:
Compile Error: Cannot redeclare class WebseExternalProductImages\Subscriber\StorefrontSubscriber (previously declared in /home/p-u8h2xi/html/development/custom/plugins/WebseExternalProductImages/src/Subscriber/StorefrontSubscriber.php:11)

  at /home/p-u8h2xi/html/development/custom/plugins/WebseExternalProductImages/src/Subscriber/StorefrontSubscriber.php:11