Here’s the ticket: ([Parent_Config] directive)


Benjamin Mosior



From: Demian Katz []
Sent: Wednesday, October 17, 2012 7:50 AM
To: Mosior, Benjamin;
Subject: RE: PHP Fatal Error with MultiSite Configuration


We talked about this in person yesterday, but I’ll send an update to the list in case anyone else is dealing with this issue…  Looks like it’s a bug in 2.0beta which prevents the “parent configuration” mechanism from working due to the immutability of Config objects.  I know this worked at some point in the past, but obviously it broke somewhere along the line.


We need to open a ticket about this, fix the problem, and add a unit test to prevent it from returning.  Ben’s going to take the first steps on this, and I’ll finish up whatever he doesn’t have time to complete.


- Demian


From: Mosior, Benjamin []
Sent: Tuesday, October 16, 2012 8:08 AM
To: Demian Katz;
Subject: PHP Fatal Error with MultiSite Configuration


Here’s one for you. My primary VuFind instance works fine, but my secondary instances are failing while using the primary’s config.ini as a parent config. I’m currently receiving the following error:


PHP Fatal error:  Uncaught exception 'Zend\\Config\\Exception\\RuntimeException' with message 'Config is read only' in /usr/local/vufind/vendor/ZF2/library/Zend/Config/Config.php:138\nStack trace:\n#0 /usr/local/vufind/module/VuFind/src/VuFind/Config/Reader.php(192): Zend\\Config\\Config->__set('url', 'http://vfdev-we...')\n#1 /usr/local/vufind/module/VuFind/src/VuFind/Config/Reader.php(59): VuFind\\Config\\Reader::loadConfigFile('config.ini')\n#2 /usr/local/vufind/module/VuFind/src/VuFind/Bootstrap.php(57): VuFind\\Config\\Reader::getConfig()\n#3 /usr/local/vufind/module/VuFind/Module.php(37): VuFind\\Bootstrap->__construct(Object(Zend\\Mvc\\MvcEvent))\n#4 [internal function]: VuFind\\Module->onBootstrap(Object(Zend\\Mvc\\MvcEvent))\n#5 /usr/local/vufind/vendor/ZF2/library/Zend/EventManager/EventManager.php(468): call_user_func(Array, Object(Zend\\Mvc\\MvcEvent))\n#6 /usr/local/vufind/vendor/ZF2/library/Zend/EventManager/EventManager.php(208): Zend\\EventManager\\EventManager->triggerListeners('bootstrap', Object(Zend\\Mvc\\MvcEvent), Array)\n#7 /usr/loca in /usr/local/vufind/vendor/ZF2/library/Zend/Config/Config.php on line 138


If I comment out the exception throw on line 138 in Config.php, it appears to load correctly. Unfortunately, I’m not really sure how to troubleshoot the above. I assumed it meant the config.ini files weren’t writable, but they are owned by apache with write permissions.



Benjamin Mosior