6.0.0-beta1
7/5/25

[#9372] Fatal error: Cannot use string offset as an array in /usr/local/horde/horde/framework/Prefs/lib/Horde/Prefs.php on line 285
Summary Fatal error: Cannot use string offset as an array in /usr/local/horde/horde/framework/Prefs/lib/Horde/Prefs.php on line 285
Queue Horde Base
Queue Version Git master
Type Bug
State Resolved
Priority 3. High
Owners slusarz (at) horde (dot) org
Requester mrubinsk (at) horde (dot) org
Created 11/06/2010 (5355 days ago)
Due
Updated 11/08/2010 (5353 days ago)
Assigned 11/06/2010 (5355 days ago)
Resolved 11/08/2010 (5353 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/08/2010 08:41:50 PM Michael Slusarz Comment #5
State ⇒ Resolved
Reply to this comment
Fixed.
11/08/2010 08:41:37 PM Git Commit Comment #4 Reply to this comment
Changes have been made in Git for this ticket:

Bug #9372: Correctly clear session data.
To clear session data, need to directly clear the global $_SESSION
variable.

http://git.horde.org/diff.php/framework/Core/lib/Horde/Session.php?rt=horde-git&r1=2a701547d5a6bcb9e17566a3eb1427b3ccc11e5a&r2=b41161ba34bd0963c15ffafca725da3cccd6f777
11/07/2010 06:13:55 PM Git Commit Comment #3 Reply to this comment
Changes have been made in Git for this ticket:

Revert "Better modified existence check" - this causes #9372
This reverts commit ed1757dce490773fb2de5ebadeabc8460ba447d7.

http://git.horde.org/diff.php/framework/Core/lib/Horde/Session.php?rt=horde-git&r1=ed1757dce490773fb2de5ebadeabc8460ba447d7&r2=2a701547d5a6bcb9e17566a3eb1427b3ccc11e5a
11/06/2010 07:07:24 PM Chuck Hagenbuch Comment #2
State ⇒ Assigned
Assigned to Michael Slusarz
Reply to this comment
I'm seeing this also. Haven't tried disabling login tasks yet, but 
otherwise this blocks any use of Horde.
11/06/2010 03:53:23 AM Michael Rubinsky Comment #1
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ Fatal error: Cannot use string offset as an array in /usr/local/horde/horde/framework/Prefs/lib/Horde/Prefs.php on line 285
Queue ⇒ Horde Base
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
When logging in, fatal error thrown while (it looks like) processing 
login tasks.

{main}( )        ../index.php:0
Horde_Registry::appInit( 'horde', ??? )        ../index.php:12
Horde_Registry->pushApp( 'horde', array ('check_perms' => TRUE, 
'logintasks' => TRUE, 'notransparent' => FALSE) )        ../Registry.php:201
Horde_Core_Factory_LoginTasks->create( 'horde' )        ../Registry.php:1180
Horde_LoginTasks->__construct( class 
Horde_Core_LoginTasks_Backend_Horde { private $_app = 'horde' } 
)        ../LoginTasks.php:52
Horde_LoginTasks->_createTaskList( )        ../LoginTasks.php:73
Horde_Core_LoginTasks_Backend_Horde->setLastRun( array ('_once' => 
array (0 => 'horde_LoginTasks_SystemTask_UpgradeFromHorde3')) 
)        ../LoginTasks.php:147
Horde_Prefs->setValue( 'last_logintasks', 
'a:1:{s:5:"_once";a:1:{i:0;s:45:"horde_LoginTasks_SystemTask_UpgradeFromHorde3";}}', ??? 
)        ../Horde.php:127
Horde_Core_Prefs->_setValue( 'last_logintasks', 
'a:1:{s:5:"_once";a:1:{i:0;s:45:"horde_LoginTasks_SystemTask_UpgradeFromHorde3";}}', TRUE 
)        ../Prefs.php:237
Horde_Prefs->_setValue( 'last_logintasks', 
'a:1:{s:5:"_once";a:1:{i:0;s:45:"horde_LoginTasks_SystemTask_UpgradeFromHorde3";}}', TRUE 
)

dumping $this->_scopes shows:

array
   'horde' => string 
'{"id":{"m":2,"v":""},"fullname":{"m":2,"v":""},"from_addr":{"m":2,"v":""},"default_identity":{"m":0,"v":"0","d":0},"identities":{"m":0,"v":"a:2:{i:0;a:15:{s:16:\"default_identity\";s:1:\"0\";s:9:\"fro.....

Saved Queries