6.0.0-alpha12
6/12/25

[#11015] Recurring "Undefined class constant 'MAX_SIZE' in /var/www/pear/php/Horde/Memcache.php" messages
Summary Recurring "Undefined class constant 'MAX_SIZE' in /var/www/pear/php/Horde/Memcache.php" messages
Queue Horde Base
Queue Version 4.0.13
Type Bug
State No Feedback
Priority 1. Low
Owners
Requester wrobel (at) horde (dot) org
Created 02/20/2012 (4861 days ago)
Due
Updated 04/27/2012 (4794 days ago)
Assigned 03/28/2012 (4824 days ago)
Resolved 04/27/2012 (4794 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
04/27/2012 09:17:02 AM Jan Schneider State ⇒ No Feedback
 
03/28/2012 07:15:46 AM Michael Slusarz Comment #7
State ⇒ Feedback
Reply to this comment
Is this still an issue?  About 100% sure this would be fixed by the 
authentication/initialization rewrite in H5.
02/21/2012 04:41:27 AM Git Commit Comment #6 Reply to this comment
Changes have been made in Git (develop):

commit aef5a56a6c2e40bcca7ea4f9a213ca9f689ede70
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Mon Feb 20 14:28:19 2012 -0700

     Bug #11015: Only do these actions if authenticated

  imp/lib/Application.php |   15 +++++++++------
  1 files changed, 9 insertions(+), 6 deletions(-)

http://git.horde.org/horde-git/-/commit/aef5a56a6c2e40bcca7ea4f9a213ca9f689ede70
02/20/2012 11:33:48 PM Gunnar Wrobel Comment #5 Reply to this comment

[Show Quoted Text - 20 lines]
No. The backend is a Kolab server but the Horde frontend is configured 
to use SQL and uses no Kolab features. And auth runs against the IMAP 
server provided by the Kolab server (cyrus).

If it helps I can either

a) provide you with a clean instance with the same setup as the demo server
b) provide you with access to the demo server itself.


02/20/2012 09:43:13 PM Michael Slusarz Comment #4 Reply to this comment
commit aef5a56a6c2e40bcca7ea4f9a213ca9f689ede70
Actually, this has nothing to do with this issue.  The problem is in 
IMP's hooks file.  Specifically this:

22. IMP_Hooks->prefs_init()
23. Horde_Registry->call()
/var/www/imp/config/hooks.php:29
24. Horde_Registry->callBy
Package() /var/www/pear/php/Horde/Registry.php:979

prefs_init() should not be calling other applications via the 
registry.  This is documented in horde/config/hooks.php.dist.   
However, we (have) a
voided this in IMP because it requires authentication.  The only way I 
can think of off the top of my head to bypass this would be to use 
transparent authentication.  Which, on a practical level, should never 
be used with IMP.

The demo site would not happen to be using transparent auth, is it?
02/20/2012 09:28:38 PM Git Commit Comment #3 Reply to this comment
Changes have been made in Git (master):

commit aef5a56a6c2e40bcca7ea4f9a213ca9f689ede70
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Mon Feb 20 14:28:19 2012 -0700

     Bug #11015: Only do these actions if authenticated

  imp/lib/Application.php |   15 +++++++++------
  1 files changed, 9 insertions(+), 6 deletions(-)

http://git.horde.org/horde-git/-/commit/aef5a56a6c2e40bcca7ea4f9a213ca9f689ede70
02/20/2012 09:04:14 PM Michael Slusarz Comment #2 Reply to this comment
[20-Feb-2012 19:43:21] PHP Fatal error:  Undefined class constant 
'MAX_SIZE' in /var/www/pear/php/Horde/Memcache.php on line 326
This happens when a fatal error occurs before the basic framework is 
initialized. The error message iteself is completely irrelevant - I 
believe the issue is that it can not properly log the error because 
enough of the framework is not initialized yet (chicken/egg problem).
02/20/2012 08:22:15 PM Gunnar Wrobel Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Recurring "Undefined class constant 'MAX_SIZE' in /var/www/pear/php/Horde/Memcache.php" messages
Queue ⇒ Horde Base
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
On demo.horde.org we get frequent PHP fatal errors like these:

[20-Feb-2012 19:43:21] PHP Fatal error:  Call to a member function 
getValue() on a non-object in /var/www/imp/lib/Application.php on line 
122
[20-Feb-2012 19:43:21] PHP Fatal error:  Undefined class constant 
'MAX_SIZE' in /var/www/pear/php/Horde/Memcache.php on line 326

The corresponding apache access.log entry:

77.127.207.25 - - [20/Feb/2012:19:43:21 +0000] "POST 
/services/ajax.php/horde/sidebarUpdate HTTP/1.1" 500 412 
"http://demo.horde.org/mnemo/" "Mozilla/5.0 (Windows NT 6.1; 
rv:10.0.1) Gecko/20100101 Firefox/10.0.1"

And the lines from the Horde log:

Feb 20 19:43:21 ip-10-196-242-18 HORDE: Load config file (hooks.php; 
app: horde) [pid 7460 on line 865 of "/var/www/pear/php/Horde.php"]
Feb 20 19:43:21 ip-10-196-242-18 HORDE: Connected to the following 
memcache servers:localhost:11211 [pid 7460 on line 140 of 
"/var/www/pear/php/Horde/Memcach
e.php"]
Feb 20 19:43:21 ip-10-196-242-18 HORDE: Read session data (id = 
a9keiv87vibn7gqghlliacush0) [pid 7460 on line 113 of 
"/var/www/pear/php/Horde/SessionHandler/
Storage/Memcache.php"]
Feb 20 19:43:21 ip-10-196-242-18 HORDE: Horde_Registry: retrieved app 
with cache ID 
horde_registry|app|1329460688|399709f5e1d57875513c2749d8822198 [pid 7460
on line 1729 of "/var/www/pear/php/Horde/Registry.php"]
Feb 20 19:43:21 ip-10-196-242-18 HORDE: Load config file (hooks.php; 
app: imp) [pid 7460 on line 865 of "/var/www/pear/php/Horde.php"]
Feb 20 19:43:21 ip-10-196-242-18 HORDE: [imp] Load config file 
(conf.php; app: imp) [pid 7460 on line 865 of 
"/var/www/pear/php/Horde.php"]
Feb 20 19:43:21 ip-10-196-242-18 HORDE: [imp] Load config file 
(nls.php; app: horde) [pid 7460 on line 865 of 
"/var/www/pear/php/Horde.php"]
Feb 20 19:43:21 ip-10-196-242-18 HORDE: [imp] Load config file 
(prefs.php; app: horde) [pid 7460 on line 865 of 
"/var/www/pear/php/Horde.php"]
Feb 20 19:43:21 ip-10-196-242-18 HORDE: [imp] Hook prefs_init in 
application horde called. [pid 7460 on line 1826 of 
"/var/www/pear/php/Horde.php"]
Feb 20 19:43:21 ip-10-196-242-18 HORDE: [imp] Load config file 
(prefs.php; app: imp) [pid 7460 on line 865 of 
"/var/www/pear/php/Horde.php"]
Feb 20 19:43:21 ip-10-196-242-18 HORDE: [imp] Hook prefs_init in 
application imp called. [pid 7460 on line 1826 of 
"/var/www/pear/php/Horde.php"]
Feb 20 19:43:21 ip-10-196-242-18 HORDE: [imp] User is not authorized 
[pid 7460 on line 1300 of "/var/www/pear/php/Horde/Registry.php"]
Feb 20 19:43:21 ip-10-196-242-18 HORDE:  1. Horde_Registry::appInit() 
/var/www/services/ajax.php:35#012 2. Horde_Registry->__construct() 
/var/www/pear/php/Ho
rde/Registry.php:238#012 3. Horde_Injector->getInstance() 
/var/www/pear/php/Horde/Registry.php:452#012 4. 
Horde_Injector->createInstance() /var/www/pear/php/
Horde/Injector.php:248#012 5. Horde_Injector_Binder_Factory->create() 
/var/www/pear/php/Horde/Injector.php:213#012 6. 
Horde_Core_Factory_Notification->create
() /var/www/pear/php/Horde/Injector/Binder/Factory.php:111#012 7. 
Horde_Registry->listApps() 
/var/www/pear/php/Horde/Core/Factory/Notification.php:27#012 8.
Horde_Registry->hasPermission() 
/var/www/pear/php/Horde/Registry.php:804#012 9. 
Horde_Registry->isAuthenticated() 
/var/www/pear/php/Horde/Registry.php:1439#0
1210. Horde_Core_Auth_Application->transparent() 
/var/www/pear/php/Horde/Registry.php:1905#01211. 
Horde_Core_Auth_Application->transparent() /var/www/pear/ph
p/Horde/Core/Auth/Application.php:367#01212. 
Horde_Registry->callAppMethod() 
/var/www/pear/php/Horde/Core/Auth/Application.php:369#01213. 
Horde_Registry->pus
hApp() /var/www/pear/php/Horde/Registry.php:1080#01214. 
Horde_Registry->loadPrefs() 
/var/www/pear/php/Horde/Registry.php:1326#01215. 
Horde_Core_Factory_Prefs
->create() /var/www/pear/php/Horde/Registry.php:1541#01216. 
Horde_Prefs->__construct() 
/var/www/pear/php/Horde/Core/Factory/Prefs.php:146#01217. Horde_Prefs-
retrieve() /var/www/pear/php/Horde/Prefs.php:108#01218. 
Horde_Prefs->_loadScope() 
/var/www/pear/php/Horde/Prefs.php:343#01219. 
Horde_Core_Prefs_Storage_Hook
s->get() /var/www/pear/php/Horde/Prefs.php:375#01220. 
Horde::callHook() 
/var/www/pear/php/Horde/Core/Prefs/Storage/Hooks.php:30#01221. 
call_user_func_array()
  /var/www/pear/php/Horde.php:1827#01222. 
IMP_Hooks->prefs_init()#01223. Horde_Registry->call() 
/var/www/imp/config/hooks.php:29#01224. Horde_Registry->callBy
Package() /var/www/pear/php/Horde/Registry.php:979#01225. 
Horde_Registry->pushApp() /var/www/pear/php/Horde/Registry.php:1017
Feb 20 19:43:21 ip-10-196-242-18 HORDE: [imp] User is not authorized 
[pid 7460 on line 1300 of "/var/www/pear/php/Horde/Registry.php"]
Feb 20 19:43:21 ip-10-196-242-18 HORDE:  1. Horde_Registry::appInit() 
/var/www/services/ajax.php:35#012 2. Horde_Registry->__construct() 
/var/www/pear/php/Ho
rde/Registry.php:238#012 3. Horde_Injector->getInstance() 
/var/www/pear/php/Horde/Registry.php:452#012 4. 
Horde_Injector->createInstance() /var/www/pear/php/
Horde/Injector.php:248#012 5. Horde_Injector_Binder_Factory->create() 
/var/www/pear/php/Horde/Injector.php:213#012 6. 
Horde_Core_Factory_Notification->create
() /var/www/pear/php/Horde/Injector/Binder/Factory.php:111#012 7. 
Horde_Registry->listApps() 
/var/www/pear/php/Horde/Core/Factory/Notification.php:27#012 8.
Horde_Registry->hasPermission() 
/var/www/pear/php/Horde/Registry.php:804#012 9. 
Horde_Registry->isAuthenticated() 
/var/www/pear/php/Horde/Registry.php:1439#0
1210. Horde_Core_Auth_Application->transparent() 
/var/www/pear/php/Horde/Registry.php:1905#01211. 
Horde_Core_Auth_Application->transparent() /var/www/pear/ph
p/Horde/Core/Auth/Application.php:367#01212. 
Horde_Registry->callAppMethod() 
/var/www/pear/php/Horde/Core/Auth/Application.php:369#01213. 
Horde_Registry->pus
hApp() /var/www/pear/php/Horde/Registry.php:1080#01214. 
Horde_Registry->loadPrefs() 
/var/www/pear/php/Horde/Registry.php:1326#01215. 
Horde_Core_Factory_Prefs
->create() /var/www/pear/php/Horde/Registry.php:1541#01216. 
Horde_Prefs->__construct() 
/var/www/pear/php/Horde/Core/Factory/Prefs.php:146#01217. Horde_Prefs-
retrieve() /var/www/pear/php/Horde/Prefs.php:108#01218. 
Horde_Prefs->_loadScope() 
/var/www/pear/php/Horde/Prefs.php:343#01219. 
Horde_Core_Prefs_Storage_Hook
s->get() /var/www/pear/php/Horde/Prefs.php:375#01220. 
Horde::callHook() 
/var/www/pear/php/Horde/Core/Prefs/Storage/Hooks.php:30#01221. 
call_user_func_array()
  /var/www/pear/php/Horde.php:1827#01222. 
IMP_Hooks->prefs_init()#01223. Horde_Registry->call() 
/var/www/imp/config/hooks.php:29#01224. Horde_Registry->callBy
Package() /var/www/pear/php/Horde/Registry.php:979#01225. 
Horde_Registry->pushApp() /var/www/pear/php/Horde/Registry.php:1017

This seems to relate to bug #10403 - which is marked resolved. But I'm 
not 100% certain this means the fatal error is really resolved.

I'm also not certain if the log entries indicate an actual problem on 
the user side. So far the demo server seems okay and there were no 
reports of stuff not working.

I decided to log a bug nevertheless as the log entries are quite 
frequent: about 15 occurences per hour.

Is this something that should be further tracked? I should be able to 
add some debugging statements on the demo server to get more input.



Saved Queries