From skerit at kipdola.be Mon Dec 28 14:22:39 2009
From: skerit at kipdola.be (Jelle De Loecker)
Date: Mon, 28 Dec 2009 15:22:39 +0100
Subject: [ingo] Unable to setup ingo (Ubuntu 9.10 server)
Message-ID: <4B38BF2F.2080601@kipdola.be>
Hi everyone,
I've got all of my horde applications working except ingo.
I'm a bit confused by all the different variables you need to set (and
at different locations)
This is my backends file: (I use procmail, so I've deleted all the rest)
/* Procmail Example */
$backends['procmail'] = array(
'driver' => 'vfs',
'preferred' => 'kipdola.be',
'hordeauth' => true,
'params' => array('hostspec' => 'localhost',
'filename' => '.procmailrc',),
'script' => 'procmail',
'scriptparams' => array('path_style' => 'maildir',),
'shares' => false );
In Administration->Setup->Filters I can only choose between "SQL" or
"Preference system" for the storage rules.
When I choose SQL I get this error when I open filters:
*Fatal error*: Call to a member function getFilterList() on a non-object
in */usr/share/horde3/ingo/filters.php* on line *134
*When I choose Preference System i get this error:*
**Fatal error*: main() [function.main]: The
script tried to execute a method or access a property of an incomplete
object. Please ensure that the class definition "DB_Error" of
the object you are trying to operate on was loaded _before_
unserialize() gets called or provide a __autoload() function to load the
class definition in */usr/share/horde3/ingo/filters.php* on line *134
*Yes, I've created all the required fields in the database*.
*Can anyone tell me what's still missing?*
*Met vriendelijke groeten,
Jelle De Loecker*
*
From jan at horde.org Mon Dec 28 21:34:55 2009
From: jan at horde.org (Jan Schneider)
Date: Mon, 28 Dec 2009 22:34:55 +0100
Subject: [ingo] Problem with convert_imp_filters.php
In-Reply-To: <20091224084753.571944qazi3u5gh5@vader.upc.es>
References: <20091223082622.15909mf1giyx5c7y@vader.upc.es>
<20091223143100.51112gl4cyacl0u8@neo.wg.de>
<20091223143804.17494svvby840u9o@vader.upc.es>
<20091223150342.947553j65mjkukkk@neo.wg.de>
<20091223151608.1695334fcdd734tk@vader.upc.es>
<20091223153922.11753z6dth9vuy80@neo.wg.de>
<20091223155004.16605x2xd8dvt7h8@vader.upc.es>
<20091223164429.16951z6se3ndg928@neo.wg.de>
<20091224084753.571944qazi3u5gh5@vader.upc.es>
Message-ID: <20091228223455.195455rimusk5z0g@neo.wg.de>
Zitat von jordi.melero at upcnet.es:
> "Jan Schneider" escribi?:
>
>> Zitat von jordi.melero at upcnet.es:
>>
>>> "Jan Schneider" escribi?:
>>>
>>>> DON'T top-post!
>>>>
>>>> Zitat von jordi.melero at upcnet.es:
>>>>
>>>>>>
>>>>>> And did you read the "Usage:" line, right below that? Did you
>>>>>> feed the script with the user list?
>>>>>>
>>>>> Yes, I give the users list in a plain text file and the script
>>>>> recognizes all the users fine.
>>>>>
>>>>> This is the output.
>>>>>
>>>>> root at cafex01:/dades/horde3/ingo/scripts# php
>>>>> convert_imp_filters.php < usu.txt
>>>>> Converting filters for user: 46561826 at ub.edu
>>>>> sql
>>>>> 46561826 at ub.edu Nothing to convert
>>>>> root at cafex01:/dades/horde3/ingo/scripts#
>>>>
>>>> Try removing the @ in front of the @unserialize() call in line 67
>>>> and watch out for any warnings that the unserialization failed.
>>>
>>> Ok I delete the @ symbol from the call but nothing happens...
>>>
>>> root at cafex01:/dades/horde3/ingo/scripts# php
>>> convert_imp_filters.php < usu.txt
>>> Converting filters for user: 46561826 at ub.edu
>>> sql
>>> 46561826 at ub.edu Nothing to convert
>>
>> Well, then either your PHP is not showing any notices/warnings, or
>> the preference is empty. You get the "Nothing to convert" only if
>> the unserialization fails, and this only happens if the preference
>> data is corrupt, but that would get you a PHP notice. Or the data
>> is completely empty.
>>
>> Jan.
>>
>> --
>> Do you need professional PHP or Horde consulting?
>> http://horde.org/consulting/
>>
>> --
>> Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo
>> Frequently Asked Questions: http://horde.org/faq/
>> To unsubscribe, mail: ingo-unsubscribe at lists.horde.org
>>
>
> Hi,
>
> PHP is configured to show all errors and the data is not empty.
> Well, at last I minimized the problem, I want to change the array
> format wich is content in imp->filters of the version 3.1 of IMP to
> the actual array format content in ingo->rules, so, if I have this
> value in the old imp filters:
> a:1:{i:0;a:3:{s:6:"fields";a:1:{i:0;s:4:"from";}s:4:"text";s:20:"EGonzalez at siae.ub.es";s:6:"action";s:6:"delete";}} I want to change it to the new format in ingo rules:
> a:1:{i:0;a:9:{s:4:"name";s:4:"Rule";s:7:"combine";s:1:"1";s:10:"conditions";a:1:{i:0;a:4:{s:5:"field";s:4:"from";s:4:"type";i:1;s:5:"match";s:8:"contains";s:5:"value";s:20:"EGonzalez at siae.ub.es";}}s:6:"action";s:1:"3";s:12:"action-value";N;s:4:"stop";s:1:"1";s:5:"flags";i:0;s:7:"disable";b:0;s:2:"id";N;}}.
>
> Anyone has a script to do this? Please, I need to convert the
> filters of 8000 users...
That *is* the purpose of the script. It doesn't makes to ask for a
different one, because no-one bothers to write one if it works for them.
So, is the return value of $userprefs->getValue('filters') the
expected result from the database? And what is $oldfilters? false?
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
From jan at horde.org Mon Dec 28 21:52:53 2009
From: jan at horde.org (Jan Schneider)
Date: Mon, 28 Dec 2009 22:52:53 +0100
Subject: [ingo] Unable to setup ingo (Ubuntu 9.10 server)
In-Reply-To: <4B38BF2F.2080601@kipdola.be>
References: <4B38BF2F.2080601@kipdola.be>
Message-ID: <20091228225253.14351dob9s504l9c@neo.wg.de>
Zitat von Jelle De Loecker :
> Hi everyone,
>
> I've got all of my horde applications working except ingo.
> I'm a bit confused by all the different variables you need to set
> (and at different locations)
>
> This is my backends file: (I use procmail, so I've deleted all the rest)
>
> /* Procmail Example */
> $backends['procmail'] = array(
> 'driver' => 'vfs',
> 'preferred' => 'kipdola.be',
> 'hordeauth' => true,
> 'params' => array('hostspec' => 'localhost',
> 'filename' => '.procmailrc',),
> 'script' => 'procmail',
> 'scriptparams' => array('path_style' => 'maildir',),
> 'shares' => false );
>
> In Administration->Setup->Filters I can only choose between "SQL" or
> "Preference system" for the storage rules.
>
> When I choose SQL I get this error when I open filters:
> *Fatal error*: Call to a member function getFilterList() on a
> non-object in */usr/share/horde3/ingo/filters.php* on line *134
I can't see how $filters on that line could *not* be an object without
being catched earlier. Please put a:
var_dump($filters);
before that line and post the output.
> *When I choose Preference System i get this error:*
> **Fatal error*: main() [function.main]:
> The script tried to execute a method or access a property of an
> incomplete object. Please ensure that the class definition
> "DB_Error" of the object you are trying to operate on was
> loaded _before_ unserialize() gets called or provide a __autoload()
> function to load the class definition in
> */usr/share/horde3/ingo/filters.php* on line *134
Sounds like you have a broken preference value for the 'rules'
preference in your preference table or at least in the preference
cache. Do other preferences work correctly?
> *Yes, I've created all the required fields in the database*.
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/