When I try to do anything related to OL, I got this error (listing maps, for ex: /admin/structure/openlayers):

Recoverable fatal error : Argument 4 passed to Drupal\openlayers\Types\Error::__construct() must implement interface Drupal\Core\Logger\LoggerChannelInterface, instance of Drupal\service_container\Messenger\LegacyMessenger given, called in sites/all/modules/service_container/src/DependencyInjection/Container.php on line 161 and defined dans Drupal\openlayers\Types\Error->__construct() (ligne 41 dans sites/all/modules/openlayers/src/Types/Error.php).

This is an upgrade from 2.0 to 3.0 (site development took time), but I don't care about the original data, I'm ready to reset anything openlayer related.
I did try to disable the modules, uninstall, remove openlayers_ tables, variables and enable again, nothing better and the error message is not very useful.

I did a backtrace and it seems it could be related to the Config class.

At this point, Openlayers is not usable on my installation.

Other modules versions (relevant extract from 157 modules enabled):
core: 7.38
ctools: 7.x-1.7
features: 7.x-2.5
geofield: 7.x-2.3
jquery_update: 7.x-2.4
libraries: 7.x-2.2
openlayer: 7.x-3.0-beta1+100-dev
registry_autoload: 7.x-1.2
service_container: 7.x-1.0-beta3 (enable but shows uninstalled)
views: 7.x-3.11

Openlayers v3.2.1 installed at sites/all/libraries/openlayers3
PHP 5.4.39-0+deb7u2

If needed I could allocate budget for the resolution of the issue in a long term way. Just drop me a message.

Comments

Pol’s picture

Hello,

We are aware of this small bug, we are going to fix it by the evening.
My guess is that it comes from service_container, but I'm waiting for @fabianx to confirm the bug, then we'll provide a fix.

I'll let you know when it's done.

Pol’s picture

A fix is already being reviewed, keep an eye on: https://github.com/LionsAd/service_container/pull/73

emmene-moi’s picture

That's close to my own investigation (missing arguments when building the Error object from service_container). So I hope the fix will make it !
Thanks

Pol’s picture

Status: Active » Fixed

It should be fixed by now in service container dev with Openlayers dev.

Status: Fixed » Closed (fixed)

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