Koozali.org: home of the SME Server

installing new module: Kronolith/nag = just a blank screen

jader

installing new module: Kronolith/nag = just a blank screen
« on: February 15, 2004, 02:43:26 PM »
I have followed http://www.leiinc.com/repository/Linux/Mitel_SME_Server/HowToGuides/sme56_imp-horde-php_upgrade.htm to upgrade everything.
Have to change from:
pear install Log
to
pear download Log-1.6.7.tgz
pear install Log-1.6.7.tgz

everything else worked!

But I'm getting a blank screen when clicking on Calend (kronolith) icon!
I went to /var/log/messages and saw:
Feb 15 10:37:41 aguia httpd: PHP Warning:  main(Date/Calc.php): failed to open stream: No such file or directory in /home/http
d/html/horde/kronolith/lib/base.php on line 55
Feb 15 10:37:41 aguia httpd: PHP Fatal error:  main(): Failed opening required 'Date/Calc.php' (include_path='.:/usr/share/pea
r') in /home/httpd/html/horde/kronolith/lib/base.php on line 55
[root@aguia log]#

but I can find anywhere Date/Calc.php and /lib/base.php appears to be there!


Any tips?

Thanks!

ergozd

installing new module: Kronolith/nag = just a blank screen
« Reply #1 on: February 15, 2004, 02:51:04 PM »
I think you will have to install Date.

type
# pear install Date

jader

what version of Date
« Reply #2 on: February 15, 2004, 04:55:57 PM »
What version of Date?

As above I have to install version 1.6.7 or Log because others fail on dependency check!

Could you please verify what version of Date do you have installed?

Thanks!

Jáder

jader

Tested: Installed Date
« Reply #3 on: February 15, 2004, 05:06:06 PM »
I have installed Date with: pear install Date
See below:

[root@aguia root]# pear install Date
downloading Date-1.4.tgz ...
...done: 39,002 bytes
install ok: Date 1.4
[root@aguia root]#  /sbin/e-smith/signal-event horde-update
[root@aguia root]# service httpd restart
Stopping httpd:                                            [   OK   ]

Starting httpd:                                            [   OK   ]

[root@aguia root]# tail -f /var/log/messages
Feb 15 12:57:11 aguia e-smith[1775]: S70conf-turba=action|Event|horde-update|Action|S70conf-turba|Start|1076860630 879012|End|1076860631 436197|Elapsed|0.557185
Feb 15 12:57:12 aguia httpd-e-smith: httpd startup succeeded
Feb 15 12:57:12 aguia e-smith-bg: Starting httpd: [   OK   ]^M
Feb 15 12:57:37 aguia httpd: PHP Fatal error:  Call to undefined function:  iswarning() in /home/httpd/html/horde/kronolith/lib/Driver/sql.php on line 64

Now I have a different error message... it was a step forward! Thanks!
Any other tips?

ergozd

installing new module: Kronolith/nag = just a blank screen
« Reply #4 on: February 15, 2004, 06:57:10 PM »
I am not really sure if that's the case BUT I think it is a PEAR related issue.

Are you sure you have the right php.ini settings...

Your /etc/php.ini has
include_path = ".:/usr/share/pear"

ergozd

installing new module: Kronolith/nag = just a blank screen
« Reply #5 on: February 15, 2004, 07:01:07 PM »
Don't forget to check you mysql preferences... If I don't remember wrong user "horde" 's password was changed on v6.

jader

problem: ...Driver/sql.php
« Reply #6 on: February 15, 2004, 08:30:18 PM »
I have php.ini changed to point to pear instead of php...And as I'm using SME 5.6 upd 6 horde password has no changed! (I hope).

Seems like Horde cannot access kronolith_events database. But I used mysql command line to access it and everything worked.

I don't know where to start from here... I did a search in Google for error message and do not got any usefull links!

jader

DB connection error
« Reply #7 on: February 15, 2004, 09:07:33 PM »
I went to Driver/sql.php file to search on line 64!
line 62: /* Connect to the SQL server using the supplied parameters. */
line 63: $this->db = &DB::connect($this->params, true);
line 64: if (DB::isError($this->db) || DB::isWarning($this->db)) {
line 65: Horde::fatal($this->db, __FILE__, __LINE__);
 

Seems like a DB connection problem...

ergozd

installing new module: Kronolith/nag = just a blank screen
« Reply #8 on: February 16, 2004, 10:29:21 AM »
Check you

# /home/httpd/html/horde/kronolith/config/conf.php file toi make sure that your mysql settings are ok.

You can also upgrade your pear by

# pear upgrade-all

jader

check mysql settings
« Reply #9 on: February 16, 2004, 11:44:57 AM »
I could check mysql setting...but I think if I had a problem with it, nothing will work at all.Not just Kronolith.

And I´m afraid of do a pear upgrade all.
If I try to install last version of Log (pear install Log) as per instructions page I get an sqlite dependencies failure!

Do you have kronolith working? If yes, could you please send me your conf.php file of kronolith?
I think Kronolith database access is the key!
Thanks!

Jáder

ergozd

installing new module: Kronolith/nag = just a blank screen
« Reply #10 on: February 17, 2004, 09:48:20 AM »
I run
- SME 6.0 final
- Horde 2.2.3
- IMP 3.2.1
- Kronolith

and yes, it works.  :-)

Here comes my conf.php for kronolith

------------------------------------------------------
<?php
/**
 * Kronolith Configuration File
 *
 * This file contains global configuration settings for Kronolith. Values
 * may be safely edited by hand. Use conf.php.dist as a reference.
 *
 * Strings should be enclosed in 'quotes'.
 * Integers should be given literally (without quotes).
 * Boolean values may be true or false (no quotes).
 *
 * $Horde: kronolith/config/conf.php.dist,v 1.29.2.3 2003/04/04 19:23:54 chuck Exp $
 */


/**
 ** Calendar Driver Settings
 **/

// What calendar backend is being used? Right now, the only options are
// 'mcal' and 'sql', but others may appear at some point in the future.
$conf['calendar']['driver'] = 'sql';

// What MCAL driver is being used? 'mstore' is the local file driver,
// and is the only one with extensive testing. There is also an ICAP
// driver, and theoretically an ICAP server, but Kronolith has not
// been tested with them.
$conf['calendar']['params']['driver'] = 'mstore';

// The mstore driver requires a username and a password that is in
// /etc/mpasswd in order to access local calendars.
$conf['calendar']['params']['username'] = '';
$conf['calendar']['params']['password'] = '';

// This is an example configuration for an sql driver, in this case MySQL.
$conf['calendar']['params']['phptype'] = 'mysql';
$conf['calendar']['params']['hostspec'] = 'localhost';
$conf['calendar']['params']['username'] = '*******';
$conf['calendar']['params']['password'] = '*******';
$conf['calendar']['params']['database'] = 'horde';
$conf['calendar']['params']['table'] = 'kronolith_events';


/**
 ** Metadata Settings
 **/

// If this is true, then an array of keywords will be read from
// config/keywords.php and you will be able to assign any or all of
// them to events.
$conf['metadata']['keywords'] = false;


/**
 ** Menu settings
 **/

// Should we display a Import/Export link in the Horde application
// menus?
$conf['menu']['import_export'] = true;

// This is an array of applications (using the names defined in
// horde/config/registry.php) to include links to in the menubar. An
// example providing a link to Turba (an addressbook program) would
// be: $conf['menu']['apps'] = array('turba');
$conf['menu']['apps'] = array('imp','turba','mnemo','nag');

-----------------------------------------------------
Another issue is your registry.php in
#/home/httpd/html/horde/config
Make sure that you've got the setting for kronolith
-----------------------------------------------------
$this->applications['kronolith'] = array(
    'fileroot' => dirname(__FILE__) . '/../kronolith',
    'webroot' => $this->applications['horde']['webroot'] . '/kronolith',
    'icon' => $this->applications['horde']['webroot'] . '/kronolith/graphics/kronolith.gif',
    'name' => _("Calendar"),
    'allow_guests' => false,
    'status' => 'active'
);
-----------------------------------------------------
I hope this helps. good luck.

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
installing new module: Kronolith/nag = just a blank screen
« Reply #11 on: February 17, 2004, 10:56:52 AM »
Everything seems ok... just do not work :)

The only difference it that I don´t have a **** as horde password. :)
In  v5.6 horde user/password is horde.Right ?
I can see the same (horde as user/pwd) on nag conf.php file!

Maybe a permission issue? Maybe my files on directory are with wrong user/group?
I saw a message from someone who issue chmod 777 for everything on kronolith!!

Thanks!
...

ergozd

installing new module: Kronolith/nag = just a blank screen
« Reply #12 on: February 17, 2004, 11:02:30 AM »
MySQL user horde has oassword horde in 5.6 so you're correct.

I am not sure (dont' think) it's the permissions...

Well, that's all the help I can offer. Maybe you can contact Dan Brown himself, it's his contribs.

PS : Have to ask one thing to be on the safe side  ;-) ... You know that you have to restart you httpd service after modifying php.ini.

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
installing new module: Kronolith/nag = just a blank screen
« Reply #13 on: February 17, 2004, 11:07:19 AM »
>Well, that's all the help I can offer.
Thanks a lot for you continued support!

>Maybe you can contact Dan Brown himself, it's his contribs.
I already have done it. I answered once... I point it to this thread... and I´m waiting for more help!


>PS : Have to ask one thing to be on the safe side  ... You know that you have to restart you httpd service after modifying php.ini.
YES! And this is a test server. I can shutdown it any time!
I have done several reboots since I started with problems! But thanks by remember me! :)
...

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
iswarning()
« Reply #14 on: February 17, 2004, 05:16:00 PM »
Jader, is this still the error you're getting?
Quote

Feb 15 12:57:37 aguia httpd: PHP Fatal error: Call to undefined function: iswarning() in /home/httpd/html/horde/kronolith/lib/Driver/sql.php on line 64

If so, I'm not sure where it's coming from, but it isn't related to an SQL username/password.  Try grepping for iswarning in your horde installation--where else does it appear?
......