ParseError: syntax error, unexpected '->'

Created on 4 November 2023, about 1 year ago
Updated 5 November 2023, about 1 year ago

After updating from 4.1.6 to 4.1.7 I get the following error when loading any page:

The website encountered an unexpected error. Please try again later.
ParseError: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in Composer\Autoload\includeFile() (line 116 of C:\xxx\web\modules\contrib\simple_sitemap\src\Manager\Generator.php).

Composer\Autoload\includeFile('C:\xxx\web/modules/contrib/simple_sitemap/src\Manager\Generator.php') (Line: 428)
Composer\Autoload\ClassLoader->loadClass('Drupal\simple_sitemap\Manager\Generator')
spl_autoload_call('Drupal\simple_sitemap\Manager\Generator')
ReflectionClass->__construct('Drupal\simple_sitemap\Manager\Generator') (Line: 74)
Drupal\webprofiler\Compiler\ServicePass->extractData(Object, Object) (Line: 26)
Drupal\webprofiler\Compiler\ServicePass->process(Object) (Line: 94)
Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object) (Line: 762)
Symfony\Component\DependencyInjection\ContainerBuilder->compile() (Line: 1351)
Drupal\Core\DrupalKernel->compileContainer() (Line: 948)
Drupal\Core\DrupalKernel->initializeContainer() (Line: 487)
Drupal\Core\DrupalKernel->boot() (Line: 716)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

After downgrading back to 4.1.6 the error disappears.

💬 Support request
Status

Fixed

Version

4.1

Component

Code

Created by

🇩🇪Germany johnnny83

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024