I upgraded my site to Entity-Print 2.10 and restarted the server.
I now get a wsod
Drush
PHP Parse error: syntax error, unexpected 'MessengerInterface' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /xyz/web/modules/contrib/entity_print/src/EventSubscriber/PrintEngineExceptionSubscriber.php on line 41
Apache error-log
ParseError: syntax error, unexpected 'MessengerInterface' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in xyz/web/modules/contrib/entity_print/src/EventSubscriber/PrintEngineExceptionSubscriber.php on line 41 #0 /xyz/vendor/composer/ClassLoader.php(428): Composer\\Autoload\\includeFile('/var/drupal/for...')\n#1 [internal function]: Composer\\Autoload\\ClassLoader->loadClass('Drupal\\\\entity_p...')\n#2 [internal function]: spl_autoload_call('Drupal\\\\entity_p...')\n#3 /xyz/web/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterEventSubscribersPass.php(30): ReflectionClass->__construct('Drupal\\\\entity_p...')\n#4 /xyz/vendor/symfony/dependency-injection/Compiler/Compiler.php(94): Drupal\\Core\\DependencyInjection\\Compiler\\RegisterEventSubscribersPass->process(Object(Drupal\\Core\\DependencyInjection\\ContainerBuilder))\n#5 /xyz/vendor/symfony/dependency-injection/ContainerBuilder.php(762): Symfony\\Component\\DependencyInjection\\Compiler\\Compiler->compile(Object(Drupal\\Core\\DependencyInjection\\ContainerBuilder))\n#6 /xyz/web/core/lib/Drupal/Core/DrupalKernel.php(1339): Symfony\\Component\\DependencyInjection\\ContainerBuilder->compile()\n#7 /xyz/web/core/lib/Drupal/Core/DrupalKernel.php(943): Drupal\\Core\\DrupalKernel->compileContainer()\n#8 /xyz/web/core/lib/Drupal/Core/DrupalKernel.php(482): Drupal\\Core\\DrupalKernel->initializeContainer()\n#9 /xyz/web/core/lib/Drupal/Core/DrupalKernel.php(711): Drupal\\Core\\DrupalKernel->boot()\n#10 /xyz/web/index.php(19): Drupal\\Core\\DrupalKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))\n#11 {main}
Additional information: Same error seems to appear with 2.9. I downgraded to 2.8 for now to make it work again.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 3332966.patch | 564 bytes | larowlan |
Comments
Comment #2
bioschaf commentedComment #3
rottenmango commentedsame here
and i get this error in log
InvalidArgumentException: The timestamp must be numeric. in Drupal\Component\Datetime\DateTimePlus::createFromTimestamp() (line 201 of /home/ww/public_html/web/core/lib/Drupal/Component/Datetime/DateTimePlus.php).
Comment #4
rottenmango commentedi tried using 2.8, it does not work, same error
Comment #5
larowlanThe issue is #3104331: PHP_CodeSniffer warnings and errors introduced PHP 7.4 syntax.
I'll make a new release without that.
Comment #6
larowlan@rottenmango your error message relates to date time classes and not Entity print, please file a separate issue
Comment #7
larowlanComment #8
larowlanCutting 2.11
Comment #9
larowlanHere tis https://www.drupal.org/project/entity_print/releases/8.x-2.11