openlayers.Types.internal.Error does not exist

Created on 13 November 2018, about 6 years ago
Updated 14 March 2023, almost 2 years ago

After clearing the caches, the following errors appears several times:

Warning : class_exists() expects parameter 1 to be a valid callback, function 'Drupal\openlayers\Component\Annotation\OpenlayersPlugin' not found or invalid function name dans Doctrine\Common\Annotations\AnnotationRegistry::loadAnnotationClass() (ligne 145 dans /home/clients/e1cf8f7f73cd08534e89eb0f9bde45d2/web/modules/service_container/modules/providers/service_container_annotation_discovery/lib/Doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php).

followed by error:

RuntimeException : The "openlayers.Types.internal.Error" service definition does not exist. dans Drupal\service_container\DependencyInjection\Container->getDefinition() (ligne 249 dans /home/clients/e1cf8f7f73cd08534e89eb0f9bde45d2/web/modules/service_container/src/DependencyInjection/Container.php).

And then displaying a page with a map causes a fatal error.

Moreover, running update.php causes the same RuntimeException as above.

I don't know if it's an openlayer or a service_container problem, so I tried to apply https://cgit.drupalcode.org/service_container/commit/?h=7.x-1.x&id=60d23... without luck.

This is quite urgent, as it blocks me to upgrade a production site.

Versions:
drupal-7.60
openlayers-7.x-3.x-dev
service_container-7.x-1.0-beta5

Many thanks in advance for your support.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇨🇭Switzerland monnerat

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024