6.0.0-beta1
7/8/25

[#13035] PHP ERROR: Invalid argument supplied for foreach() at login
Summary PHP ERROR: Invalid argument supplied for foreach() at login
Queue Horde Groupware Webmail Edition
Queue Version 5.1.4
Type Bug
State Not Reproducible
Priority 1. Low
Owners
Requester aria (at) bsc (dot) gwu (dot) edu
Created 03/11/2014 (4137 days ago)
Due
Updated 01/27/2016 (3450 days ago)
Assigned 03/11/2014 (4137 days ago)
Resolved 01/27/2016 (3450 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
01/27/2016 04:50:21 PM Jan Schneider State ⇒ Not Reproducible
 
03/14/2014 08:44:25 PM lehmann (at) ans-netz (dot) de Comment #5 Reply to this comment
I see the same error in my horde.log.
I have the default backends.php and the following backends.local.php 
(unchanged since Jan 17 2013)

<?
$backends['ftp']['disabled']=true;
$backends['sql']['disabled']=false;
$backends['sql']['name']='root';
?>

I have no backends.d directory nor a 10-webmail.php

03/11/2014 08:42:59 PM aria (at) bsc (dot) gwu (dot) edu Comment #4 Reply to this comment
What *do* you have in your backends.local.php?
In my gollem backends.local.php, I have:


$backends['ftp']['disabled'] = true;

$backends['file'] = array(
     // Disabled by default
     'disabled' => false,
     'name' => 'Virtual Home Directories',
     'driver' => 'file',
     'hordeauth' => true,
     'params' => array(
         // The base location under which the user home directories live.
         'vfsroot' => '/data/gollem/Horde_Gollem_Home/',
         // The default permissions to set for newly created folders and files.
         // 'permissions' => '750'
     ),
     'loginparams' => array(),
     'root' => '/' . $GLOBALS['registry']->getAuth(),
     'home' => '/' . $GLOBALS['registry']->getAuth(),
     'createhome' => true,
     // 'filter' => '^regex$',
     'quota' => '100 MB',
     'shares' => false,
     'attributes' => array(
         'type',
         'name',
         'edit',
         'download',
         'modified',
         'size',
     )
);

03/11/2014 08:41:33 PM Jan Schneider Comment #3
State ⇒ Feedback
Reply to this comment
What *do* you have in your backends.local.php?
03/11/2014 08:40:50 PM Jan Schneider Version ⇒ 5.1.4
Queue ⇒ Horde Groupware Webmail Edition
 
03/11/2014 08:39:01 PM Jan Schneider Version ⇒ 5.1.4
Queue ⇒ Horde Groupware
 
03/11/2014 04:52:03 PM aria (at) bsc (dot) gwu (dot) edu Comment #2 Reply to this comment
I found the cause for this error.  It appears that after the upgrade, 
somehow the upgrade process added a file inside my 
/horde/gollem/config/backends.d directory called 10-webmail.php and in 
it was:

<?php
$backends['ftp']['disabled'] = true;
$backends['sqlhome']['disabled'] = false;
$backends['sqlhome']['name'] = 'Home';

which caused the errors I reported.

I am not sure why this file was created since I don't run multiple 
vhosts.  I did have a backends.local.php file in the 
/horde/gollem/config directory however.

Removing the extra file created in the backends.d directory resolved 
the problem.

Thanks,
03/11/2014 04:36:12 PM aria (at) bsc (dot) gwu (dot) edu Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ PHP ERROR: Invalid argument supplied for foreach() at login
Queue ⇒ Gollem
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
Hi,  Upgraded from webmail 5.1.3 to 5.1.4 (gollem 3.01 to 3.0.2) and 
now when a user goes to the login page, I get 3 of the following 
messages in my Horde log file:

WARN: HORDE [gollem] PHP ERROR: Invalid argument supplied for 
foreach() [pid 4888 on line 336 of 
"/data/www/horde/gollem/lib/Auth.php"]

I have made no changes to my backends.local.php file.  Even when I 
remove my backends.local.php file for Gollem, I continue to get the 
messages in the log when a login page is displayed.

My $conf[backend][backend_list] is set to 'none'

Thanks.

Saved Queries