[kronolith] Fwd: Re: defaultView missing in Kronolith

Jan Schneider jan at horde.org
Tue Jan 26 22:05:49 UTC 2010


Then you have an empty value stored in the database.

Zitat von Jan Schneider <jan at horde.org>:

>
>
> ----- Weitergeleitete Nachricht von geoffrsweet at gmail.com -----
> Datum: Thu, 21 Jan 2010 15:18:28 -0800
> Von: Geoff Sweet <geoffrsweet at gmail.com>
> Betreff: Re: [kronolith] defaultView missing in Kronolith
> An: Jan Schneider <jan at horde.org>
>
> Ok I guess I don't get it.  What am I do wrong in the config file  
> directory?  The conf.php clearly says not to edit it.  Ok.  The  
> prefs.php seems to be fine I guess.  The UPGRADE doc in the /docs  
> directory doesn't say anything about editing any of them.  Here is  
> my layout:
>
> [gorf at web1 config]$ ls -la
> total 96
> drwxrwxrwx  2 gorf gorf  4096 Jan 21 15:10 .
> drwxr-xr-x 13 gorf gorf  4096 Jan 21 15:10 ..
> -rw-r--r--  1 gorf gorf   861 Jan 12 16:14 conf.php
> -rw-r--r--  1 gorf gorf  3565 Dec 20  2007 conf.xml
> -rw-r--r--  1 gorf gorf    14 Feb 19  2004 .htaccess
> -rw-r--r--  1 gorf gorf   598 Nov  6  2004 keywords.php.dist
> -rw-r--r--  1 gorf gorf  1335 Dec 20  2007 menu.php.dist
> -rw-r--r--  1 gorf gorf 15127 Jan 12 16:14 prefs.php
> -rw-r--r--  1 gorf gorf 15127 Jun 19  2009 prefs.php.dist
> [gorf at web1 config]$ diff prefs.php prefs.php.dist
> [gorf at web1 config]$
>
> I can clearly see in the prefs.php where it sets a default value:
>
> // default view
> $_prefs['defaultview'] = array(
> 'value' => 'month',
> 'locked' => false,
> 'shared' => false,
> 'type' => 'enum',
> 'enum' => array('day' => _("Day"),
> 'week' => _("Week"),
> 'workweek' => _("Work Week"),
> 'month' => _("Month")),
> 'desc' => _("Select the view to display on startup:")
> );
>
> but still nothing.
>
> -Geoff
>
> On Thu, Jan 21, 2010 at 12:44 PM, Jan Schneider <jan at horde.org> wrote:
>
>> >From horde/docs/UPGRADING:
>>
>> After updating to a newer Horde version, or a newer version of **any** Horde
>> application, you **always** need to update **all** configuration files.
>>
>> Zitat von Geoff Sweet <geoffrsweet at gmail.com>:
>>
>> >  The documentation for upgrading is pretty simple and I followed all the
>> > steps.  The only mention of anything have to do with th  
>> preferences is this:
>> > Preferences
>> >
>> > The preference that stores the address books that are searched  
>> for attendees
>> > with free/busy urls has changed both the name and the format. The  
>> preference
>> > used to be called "search_abook" and contained a serialized PHP array. The
>> > new preference is called "search_sources", contains a tab-separated list,
>> > and goes along with the "search_fields" preference.
>> >
>> >
>> > and that basically tells me nothing.  So still my users calendar  
>> is broken.
>> >
>> >
>> > -Geoff
>> >
>> >
>> > On Fri, Jan 15, 2010 at 4:36 AM, <mtecles at biof.ufrj.br> wrote:
>> >
>> > > On 14 Jan 2010 at 11:06, Geoff Sweet wrote:
>> > >
>> > > > I'm not sure this made it through the first time so I am  
>> resending.  My
>> > > > apologies for the double post if you already got this.
>> > > >
>> > > > Greetings all, I am upgrading Kronolith (and the whole Horde  
>> shebang) to
>> > > the
>> > > > very latest from an install with 2.1.2.  After running the upgrade
>> > > scripts
>> > > > for Kronolith, I ended up with an issue whereby when I click on
>> > > "Calendar"
>> > > > in my menu I get this error:
>> > > >
>> > > > *Warning*: require(/home/gorf/public_html/
>> > > > testdom.net/www/webmail/kronolith/.php)
>> > > > [function.require<
>> > > http://www.whootis.net/webmail/kronolith/function.require>]:
>> > > > failed to open stream: No such file or directory in *
>> > > >  
>> /home/gorf/public_html/testdom**.net/www/webmail/kronolith/index.php*  
>> on
>> > > > line *22*
>> > > >
>> > > > line 22: require KRONOLITH_BASE . '/' .  
>> $prefs->getValue('defaultview') .
>> > > > '.php';
>> > > >
>> > > > Some simple testing shows that the defaultview is set to ''  
>> and thus it
>> > > is
>> > > > trying to pull in a file called ".php" which of course  
>> doesn't exist.  I
>> > > > altered this error a little by making index.php look like this:
>> > > >
>> > > > require_once KRONOLITH_BASE . '/lib/base.php';
>> > > >
>> > > > if ( is_null( $prefs->getValue('defaultview') ) ) {
>> > > >     require KRONOLITH_BASE . '/month.php';
>> > > > } else {
>> > > >     require KRONOLITH_BASE . '/' . $prefs->getValue('defaultview') .
>> > > '.php';
>> > > > }
>> > > >
>> > > > Which fixes the initial problem, but continued errors  
>> elsewhere suggest
>> > > this
>> > > > isn't the only fix I need.  Did I miss something in the  
>> upgrade process?
>> > > >
>> > > > Thanks!
>> > > >
>> > > > -Geoff
>> > > > --
>> > > > Kronolith mailing list - Join the hunt:
>> > > http://horde.org/bounties/#kronolith
>> > > > Frequently Asked Questions: http://horde.org/faq/
>> > > > To unsubscribe, mail: kronolith-unsubscribe at lists.horde.org
>> > >
>> > > Did you follow each upgrade step by step? (That is to say you must do
>> > > intermediate upgrades.) I record that some Horde upgrade needed the
>> > > "conf.php" files.
>> > >
>> > > Mauricio
>> > > --------------------------------------------------------
>> > > Mauricio J. T. Tecles
>> > > Instituto de Biofisica Carlos Chagas Filho - UFRJ
>> > > Edificio do Centro de Ciencias da Saude, Bloco G
>> > > Av. Carlos Chagas Filho, 373
>> > > Cidade Universitaria, Ilha do Fundao
>> > > Rio de Janeiro, RJ
>> > > Brasil
>> > > 21941-902
>> > > Telefone: 55 21 2562-6544
>> > > FAX: 55 21 2280-8193
>> > > mtecles at biof.ufrj.br
>> >
>> >  --
>> > Kronolith mailing list - Join the hunt:  
>> http://horde.org/bounties/#kronolith
>> > Frequently Asked Questions: http://horde.org/faq/
>> > To unsubscribe, mail: kronolith-unsubscribe at lists.horde.org
>>
>> Jan.
>>
>> --
>> Do you need professional PHP or Horde consulting?
>> http://horde.org/consulting/
>>
>> --
>>
>>
>> Kronolith mailing list - Join the hunt: http://horde.org/bounties/#kronolith
>> Frequently Asked Questions: http://horde.org/faq/
>> To unsubscribe, mail: kronolith-unsubscribe at lists.horde.org
>
> ----- Ende der weitergeleiteten Nachricht -----
>
>  
>
> Jan.
>
> --
> Do you need professional PHP or Horde consulting?
> http://horde.org/consulting/
> --
> Kronolith mailing list - Join the hunt: http://horde.org/bounties/#kronolith
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: kronolith-unsubscribe at lists.horde.org
>



Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the kronolith mailing list