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.

CommentFileSizeAuthor
#6 3332966.patch564 byteslarowlan

Comments

bioschaf created an issue. See original summary.

bioschaf’s picture

Issue summary: View changes
rottenmango’s picture

same 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).

rottenmango’s picture

i tried using 2.8, it does not work, same error

larowlan’s picture

The issue is #3104331: PHP_CodeSniffer warnings and errors introduced PHP 7.4 syntax.
I'll make a new release without that.

larowlan’s picture

Status: Active » Needs review
StatusFileSize
new564 bytes

@rottenmango your error message relates to date time classes and not Entity print, please file a separate issue

larowlan’s picture

Title: WSOD after update to 2.10 » 2.10 not compatible with PHP 7.3
larowlan’s picture

Status: Needs review » Fixed

Cutting 2.11

larowlan’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.