Closed (outdated)
Project:
Service Container
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Aug 2015 at 05:27 UTC
Updated:
25 Feb 2018 at 21:38 UTC
Jump to comment: Most recent
Comments
Comment #2
strainyy commentedComment #3
polHello,
Which version of PHP are you using ?
Comment #4
strainyy commentedHi Pol,
I'm using PHP Version 5.5.11
Comment #5
polHi,
This version should be compatible with Service Container as it requires PHP > 5.3.10.
I won't be able to help you much as I'm not using Windows... Could you try to upgrade to the latest 5.5 PHP version ?
Thanks
Comment #6
strainyy commentedHi Pol,
I'll give it a go and report back.
Comment #7
strainyy commentedI've just upgraded to version 5.5.28 and the issue is persisting.
Comment #8
polOh, this is weird.
Are you using the latest beta ?
Comment #9
strainyy commentedI've tried both beta4 and beta5.
Comment #10
polAh ok that's interesting.
You should not use beta4, we've committed a fix for Microsoft based servers in beta5.
Maybe your registry is broken, that's why it doesn't work. Could you try to rebuild your registry with drush rr ?
Comment #11
strainyy commentedI've performed at registry rebuild using the module you linked me to and installed the beta5 release.
Unfortunately, the error is still appearing.
Thanks for your help so far btw!
Comment #12
polAre there any other errors in the log or in the drupal watchdog ?
NP you're welcome.
Comment #13
strainyy commentedWatchdog prints out a message saying that "service_container_symfony module enabled". When I refresh the modules page I can see that is the case. However, when I try and do something like enable OpenLayers, I get a similar kind of error (white screen, black text) with the following:
Fatal error: Call to undefined method Symfony\Component\DependencyInjection\Definition::getDecoratedService() in C:\inetpub\wwwroot\sites\all\modules\service_container\lib\Drupal\Core\DependencyInjection\Dumper\PhpArrayDumper.php on line 208There really isn't any other useful information in the Drupal watchdog.
Comment #14
strainyy commentedComment #15
polHi,
Any update on this ? Did you get it working properly ?
Thanks.
Comment #16
strainyy commentedHi Pol,
Unfortunately I was not able to install it without this error getting thrown. I had a few issues using OpenLayers that I'm sure must be connected to this.
I'm hoping to investigate this more when I get time.
Thanks for all your assistance so far.
Comment #17
meladawy commentedI confirm having this issue as well. Its not related to windows!
Comment #18
meladawy commentedI know we shouldn't touch Symfony components but temporary resolving this one by adding below condition in
sites\all\modules\service_container\modules\providers\service_container_symfony\lib\Symfony\Component\DependencyInjection\ContainerBuilder.php on line 945
Comment #19
markhalliwellComment #20
markhalliwellThe 7.x-2.x branch was premature, this project has been deprecated in favor of https://www.drupal.org/project/backport.