Ticket #1324 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

sitewizard triggers curious fatal error

Reported by: rambo Assigned to: rambo
Priority: blocker Milestone: 8.09.6 Ragnaroek
Component: MidCOM core Version: 8.09 Ragnaroek
Keywords: Cc:

Description

( ! ) Fatal error: Cannot redeclare class midcom_application in /usr/share/pear/midcom/lib/midcom/application.php on line 122
Call Stack
#	Time	Memory	Function	Location
1	0.0008	156784	{main}( )	../8-83-32-0.php:0
2	0.0016	250064	require( '/usr/share/pear/midcom/lib/midcom.php' )	../8-83-32-0.php:56
3	0.1449	4735144	require( '/usr/share/pear/midcom/lib/midcom/application.php' )	../midcom.php:229

Actually this is probably any case where auth stuff is checked really early, this is triggered by the autoloader being a bit too smart, added error_log() call to see paths loaded by autoloader:

[Wed Sep 09 18:18:47 2009] [error] [client 84.20.xxx.xxx] require_once(/usr/share/pear/midcom/lib/midcom/services/auth/sessionmgr.php);
[Wed Sep 09 18:18:47 2009] [error] [client 84.20.xxx.xxx] require_once(/usr/share/pear/midcom/lib/midcom/core/user.php);
[Wed Sep 09 18:18:47 2009] [error] [client 84.20.xxx.xxx] require_once(/usr/share/pear/midcom/lib/midcom/baseclasses/core/object.php);
[Wed Sep 09 18:18:47 2009] [error] [client 84.20.xxx.xxx] require_once(/usr/share/pear/midcom/lib/midcom/application.php);
[Wed Sep 09 18:18:47 2009] [error] [client 84.20.xxx.xxx] require_once(/usr/share/pear/midcom/lib/midcom/services/cache/module.php);
[Wed Sep 09 18:18:47 2009] [error] [client 84.20.xxx.xxx] require_once(/usr/share/pear/midcom/lib/midcom/services/cache/backend.php);

Change History

09/09/09 17:33:21 changed by rambo

  • status changed from new to closed.
  • resolution set to fixed.

(In [23330]) safety against double require, fixes #1324