Re: Bizarre error after modifying any PHP code

Lukas Kahwe Smith <[email protected]> Thu, 15 Sep 2005 16:21:08 -0400
Newsgroups gmane.comp.php.pear.liveuser
Message-ID <[email protected]>
Guyren Howe wrote:
> Our PHP app which now includes LiveUser has started exhibiting a most  
> peculiar error.
> 
> Often, but not always, after modifying *any* PHP code (could have  
> nothing to do with our use of LiveUser), we will see this error:
> 
> init failed
> array(1) { [0]=> &array(7) { ["code"]=> int(-1) ["params"]=> array(1)  { 
> ["msg"]=> string(39) "Could not instanciate storage container" }  
> ["package"]=> string(8) "LiveUser" ["level"]=> string(9)  "exception" 
> ["time"]=> float(1126812538.0584) ["context"]=> array(4)  { ["file"]=> 
> string(43) "/usr/local/lib/php/LiveUser/Perm/ Simple.php" ["line"]=> 
> int(156) ["function"]=> string(4)  "init" ["class"]=> string(21) 
> "LiveUser_Perm_Complex" } ["message"]=>  string(13) "Unknown error" } }
> 
> If I just reload the page, the error goes away until I modify some  code 
> again.
> 
> The problem is probably LU-related, but I've no idea what it might be.

You are not the first one to report this problem. I am not sure yet 
where this problem comes from though ..

(this is a post on a german forum)
http://pear-forum.de/ftopic735.html

However the user told us that its not appearing anymore ..

Any information you can provide would be much appreciated. Reading the 
code would clearly put this problem in the realm of the database or the 
abstraction layer. Are you using persistent connections?

Anyways give us as much information about your environment as possible. 
Coniguration array, php, apache2, database ..

regards,
Lukas