[horde] php error related to missing Save/Undo buttons in options screen

D G Teed donald.teed at gmail.com
Thu Feb 11 16:34:19 UTC 2010


On Sat, Jan 30, 2010 at 2:03 PM, Jan Schneider <jan at horde.org> wrote:

> Zitat von D G Teed <donald.teed at gmail.com>:
>
>  On Sun, Jan 24, 2010 at 12:00 PM, Jan Schneider <jan at horde.org> wrote:
>>
>>  Zitat von D G Teed <donald.teed at gmail.com>:
>>>
>>>
>>>  There is some problem associated with our horde + imp
>>>
>>>> which causes line 260 in lib/Horde/Prefs/UI.php to fail.
>>>>
>>>> That line contains:
>>>>
>>>> require $registry->get('templates', 'horde') . '/prefs/' .
>>>> $_prefs[$pref]['type'] . '.inc';
>>>>
>>>> The error shows:
>>>>
>>>> [Fri Jan 22 16:08:14 2010] [error] [client 131.x.x.x] PHP Warning:
>>>>
>>>>
>>>> Prefs_UI::require(/usr/local/www/horde/horde-webmail-1.2.3-blue/config/../templates/prefs/.inc)
>>>> [<a href='function.Prefs-UI-require'>function.Prefs-UI-require</a>]:
>>>> failed
>>>> to open stream: No such file or directory in
>>>> /usr/local/www/horde/horde-webmail-1.2.3-blue/lib/Horde/Prefs/UI.php on
>>>> line
>>>> 260, referer: http://webmail.example.com/services/prefs.php?app=imp
>>>> [Fri Jan 22 16:08:14 2010] [error] [client 131.x.x.x] PHP Fatal error:
>>>> Prefs_UI::require() [<a href='function.require'>function.require</a>]:
>>>> Failed opening required
>>>>
>>>>
>>>> '/usr/local/www/horde/horde-webmail-1.2.3-blue/config/../templates/prefs/.inc'
>>>>
>>>>
>>>> (include_path='/usr/local/www/horde/horde-webmail-1.2.3-blue/lib:/usr/local/www/horde/horde-webmail-1.2.3-blue/lib/../pear')
>>>> in /usr/local/www/horde/horde-webmail-1.2.3-blue/lib/Horde/Prefs/UI.php
>>>> on
>>>> line 260, referer:
>>>> http://webmail.example.com/services/prefs.php?app=imp
>>>>
>>>> The options screen for "Mailbox and Folder Display Options" appears, but
>>>> is
>>>> missing
>>>> the Save, Undo and other usual submit buttons.
>>>>
>>>> If looks like $_prefs[$pref]['type'] is coming up null.  What is it that
>>>> would set that up right?
>>>>
>>>>
>>> Either a bug or a broken upgrade, unless you messed with the prefs.php
>>> yourself.
>>>
>>>
>>>  I'm looking around to check out that possibility.  What prefs.php are
>> you
>> referring to?
>> Or alternately, what is the variable which it is looking to see?
>>
>> I did try moving over horde/config/prefs.php.dist as
>> horde/config/prefs.php
>> but this did not impact on the Options screen (apache was restarted in
>> case
>> apc was caching the old one).  That change did mess up the first page I
>> see
>> after a login, so I reversed the file copy.
>>
>
> If this is happening in IMP's preference screen, you should copy IMP's
> prefs.php.dist, not Horde's.
>
>
This fixed it.  Somehow that file was left with the older
version from prior to the 1.2.3 upgrade.

I can now see "Save Options" and other submit type buttons.

Thanks...

--Donald Teed


More information about the horde mailing list