6.0.0-beta1
7/3/25

[#13333] VFS error when selecting any contact
Summary VFS error when selecting any contact
Queue Turba
Queue Version 4.2.0
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester software-horde (at) interfasys (dot) ch
Created 07/08/2014 (4013 days ago)
Due
Updated 07/09/2014 (4012 days ago)
Assigned
Resolved 07/09/2014 (4012 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
07/09/2014 03:33:04 PM Michael Slusarz Comment #9
Assigned to Michael Slusarz
State ⇒ Resolved
Reply to this comment
Additional error messages when clicking on a contact in debug mode. 
I don't see any problems with the VFS.

DEBUG: HORDE [turba] PHP ERROR: Non-static method 
Horde_Form_Action::factory() should not be called statically, 
assuming $this from incompatible context [pid 41331 on line 73 of 
"/horde/turba/lib/Form/ContactBase.php"]
These aren't errors, they are strict warnings.  Disable them in 
php.ini if you don't want to see them.
07/09/2014 11:23:26 AM software-horde (at) interfasys (dot) ch Comment #8 Reply to this comment
Additional error messages when clicking on a contact in debug mode. I 
don't see any problems with the VFS.

DEBUG: HORDE [turba] PHP ERROR: Non-static method 
Horde_Form_Action::factory() should not be called statically, assuming 
$this from incompatible context [pid 41331 on line 73 of 
"/horde/turba/lib/Form/ContactBase.php"]

DEBUG: HORDE [turba] PHP ERROR: Declaration of 
Horde_Form_Action_updatefield::getActionScript() should be compatible 
with Horde_Form_Action::getActionScript($form, $renderer, $varname) 
[pid 41331 on line 128 of "/php/Horde/Autoloader.php"]

DEBUG: HORDE [turba] PHP ERROR: Declaration of 
Horde_Form_Action_updatefield::setValues() should be compatible with 
Horde_Form_Action::setValues(&$vars, $sourceVal, $index = NULL, 
$arrayVal = false) [pid 41331 on line 128 of 
"/php/Horde/Autoloader.php"]

DEBUG: HORDE [turba] PHP ERROR: Declaration of 
Turba_Form_EditContact::renderActive() should be compatible with 
Horde_Form::renderActive($renderer = NULL, $vars = NULL, $action = '', 
$method = 'get', $enctype = NULL, $focus = true) [pid 41331 on line 
128 of "/php/Horde/Autoloader.php"]

07/09/2014 10:52:45 AM software-horde (at) interfasys (dot) ch Comment #7 Reply to this comment
You've created a horde/config/conf.d directory and it's most likely 
inaccessible to the PHP user (glob() is returning false).
Turba is the only app with a conf.d folder
File permissions on both the folder and file are the same as the other files

Content of file:
<?xml version="1.0"?>
<!-- $Id$ -->
<configuration>
  <configsection name="documents">
   <configvfs switchname="type">horde</configvfs>
  </configsection>
</configuration>


The patch helped as now contacts can be edited

07/09/2014 05:59:10 AM Michael Slusarz Comment #6 Reply to this comment
You've created a horde/config/conf.d directory and it's most likely 
inaccessible to the PHP user (glob() is returning false).
Sorry... this is not limited to conf.d.  It could be any *.d directory 
- there's no way of tracing with the error message/details provided.
07/09/2014 05:56:51 AM Michael Slusarz Comment #5 Reply to this comment
After an upgrade from 4.1 to 4.2, I can pick any contact from the 
default address book and Turba will crash
Can't reproduce.
07/09/2014 05:51:08 AM Git Commit Comment #4 Reply to this comment
Changes have been made in Git (master):

commit f254da8f6f7547818eaf3f9ac20f46098ca5a090
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Tue Jul 8 23:50:38 2014 -0600

     [mms] Better error handling when trying to load config files from 
the conf.d subdirectory.

     Bug #13333

  framework/Core/lib/Horde/Registry/Loadconfig.php |    4 ++--
  framework/Core/package.xml                       |    4 ++--
  2 files changed, 4 insertions(+), 4 deletions(-)

http://github.com/horde/horde/commit/f254da8f6f7547818eaf3f9ac20f46098ca5a090
07/09/2014 05:47:20 AM Michael Slusarz Comment #3
Priority ⇒ 1. Low
Reply to this comment
Here is what I see in the logs
T01:33:20+02:00 WARN: HORDE [turba] PHP ERROR: array_merge(): 
Argument #2 is not an array [pid 88976 on line 66 of 
"/php/lib/php/Horde/Registry/Loadconfig.php"]
You've created a horde/config/conf.d directory and it's most likely 
inaccessible to the PHP user (glob() is returning false).
07/09/2014 12:10:46 AM software-horde (at) interfasys (dot) ch Comment #2 Reply to this comment
Here is what I see in the logs
T01:33:20+02:00 WARN: HORDE [turba] PHP ERROR: array_merge(): Argument 
#2 is not an array [pid 88976 on line 66 of 
"/php/lib/php/Horde/Registry/Loadconfig.php"]

The configuration has been generated from the interface and only 
contains this:
$conf['menu']['import_export'] = true;
$conf['shares']['source'] = 'localsql';
$conf['comments']['allow'] = true;
$conf['documents']['type'] = 'horde';
$conf['tags']['enabled'] = true;

07/08/2014 11:19:36 PM software-horde (at) interfasys (dot) ch Comment #1
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ VFS error when selecting any contact
Queue ⇒ Turba
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
After an upgrade from 4.1 to 4.2, I can pick any contact from the 
default address book and Turba will crash

A fatal error has occurred
You must configure a VFS backend.
1. Turba_View_Contact->html() /horde/turba/contact.php:126
2. Turba_Form_Contact->__construct() /horde/turba/lib/View/Contact.php:42
3. Turba_Object->vfsInit() /horde/turba/lib/Form/Contact.php:58
4. Turba_View_Contact->html() /horde/turba/contact.php:126
5. Turba_Form_Contact->__construct() /horde/turba/lib/View/Contact.php:42
6. Turba_Object->vfsInit() /horde/turba/lib/Form/Contact.php:58
7. Horde_Core_Factory_Vfs->create() /horde/turba/lib/Object.php:564
8. Horde_Core_Factory_Vfs->getConfig() 
/usr/local/php/lib/php/Horde/Core/Factory/Vfs.php:48

A file based VFS is configured in Horde and the turba config is using 
the Horde default.

Saved Queries