Can't find DB.php - PEAR path wrong?

Public discussion forum about Anuko Time Tracker and related software

Can't find DB.php - PEAR path wrong?

Postby admin » Fri Dec 04, 2009 3:35 pm

It looks like there may be a problem with the definition of path to PEAR in config.php, and a solution (to not use capitalized letters).

// Set include path for PEAR and its modules, which we include in the distribution.
//
set_include_path(realpath(dirname(__FILE__).'/lib/PEAR') . PATH_SEPARATOR . get_include_path());

Should we change it to this?

set_include_path(realpath(dirname(__FILE__).'/lib/pear') . PATH_SEPARATOR . get_include_path());

> Hi, I have a question or comment for Anuko. Here it is: ...

Anuko Time Tracker: I've installed the Time Tracker on my private network and it can't find the pear library.

In config.php the pear path is in UPPERCASE whereas the directory's name is in lowercase so it can't find the pear library (unix systems).

After correcting this problem it works fine.
admin
 
Posts: 779
Joined: Fri Oct 08, 2004 9:46 pm
Location: Vancouver, Canada

Postby tawood » Tue Jan 26, 2010 12:11 am

What is the default name of that folder when one installs pear? On my (windows) system, the PEAR directory was created in all uppercase by default. I would expect that this is the norm for installing pear

It would appear from looking at the source installation files at http://pear.php.net/package/PEAR/download/ that the default is ALL CAPS, so I would recommend leaving it alone.

If you want to add some code to check for the presence of a PEAR directory, then pear, then Pear before setting the environment variables, then I suppose that would be an even better solution.

Tom
tawood
 
Posts: 38
Joined: Tue May 01, 2007 8:40 pm

Postby admin » Tue Jan 26, 2010 1:51 am

Tom, I think this issue is related to some Linux systems.

At some point someone has suggested to include a reference to this topic in Linux install page at http://www.anuko.com/content/time_track ... nstall.htm

Nik
admin
 
Posts: 779
Joined: Fri Oct 08, 2004 9:46 pm
Location: Vancouver, Canada

Postby tawood » Tue Jan 26, 2010 1:57 am

Nik,
Yea, I get that the issue is on Linux, but I downloaded the generic install package from the pear website, the same one that would be used on an linux box, and the path name was capitalized.

So, yea, a note in the install manual saying that you must not change from the default, or you'll have to patch the code makes sense, but changing the code to look for a lower-case path probably does not.

Tom
tawood
 
Posts: 38
Joined: Tue May 01, 2007 8:40 pm


Return to Time Tracker

Who is online

Users browsing this forum: Google [Bot] and 1 guest