Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in /home/i/igomenvz/sistemy-sveta.ru/public_html/plugins/system/profileplaceholders/src/Extension/ProfilePlaceholders.php on line 8 Compile Error: Namespace declaration statement has to be the very first statement or after any declare call in the script (500 Whoops, looks like something went wrong.)

FatalError

HTTP 500 Whoops, looks like something went wrong.

Compile Error: Namespace declaration statement has to be the very first statement or after any declare call in the script

Exception

Symfony\Component\ErrorHandler\Error\ FatalError

Show exception properties
Symfony\Component\ErrorHandler\Error\FatalError {#557
  -error: array:4 [
    "type" => 64
    "message" => "Namespace declaration statement has to be the very first statement or after any declare call in the script"
    "file" => "/home/i/igomenvz/sistemy-sveta.ru/public_html/plugins/system/profileplaceholders/src/Extension/ProfilePlaceholders.php"
    "line" => 8
  ]
}
  1. defined('_JEXEC') or die;
  2. namespace OpenAI\Plugin\System\ProfilePlaceholders\Extension;
  3. use Joomla\CMS\Factory;
  4. use Joomla\CMS\Plugin\CMSPlugin;
  5. use Joomla\Event\Event;
  6. use Joomla\Event\SubscriberInterface;

Stack Trace

FatalError
Symfony\Component\ErrorHandler\Error\FatalError:
Compile Error: Namespace declaration statement has to be the very first statement or after any declare call in the script

  at /home/i/igomenvz/sistemy-sveta.ru/public_html/plugins/system/profileplaceholders/src/Extension/ProfilePlaceholders.php:8