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 |
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
$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',
)
);
State ⇒ Feedback
Queue ⇒ Horde Groupware Webmail Edition
Queue ⇒ Horde Groupware
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,
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ PHP ERROR: Invalid argument supplied for foreach() at login
Queue ⇒ Gollem
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
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.