Re: DataObject getLinks() not working on web host

From: Date: Tue, 03 May 2005 04:34:26 +0000
Subject: Re: DataObject getLinks() not working on web host
References: 1 2 3 4 5  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19058@lists.php.net to get a copy of this message
On 5/2/05, Larry Garfield <larry@garfieldtech.com> wrote: > Justin Patrin wrote: > > >>>Have you updated the path in the DataObject.ini file? If the path to > >>>the DataObjects or require prefix is different you need to change > >>>that. Also, have you set up your include path in the same way? > >> > >>Yes in both cases. If there's a problem with the DataObject.ini file, > >>wouldn't the factory method not work in the first place? > > > > Well, you *are* getting that error in the debug output and that > > usually means your path isn't set up right. Are you *sure* you set it > > right? > > On my local system, the test script is in: > /home/lgarfiel/public_html/gmdarchive/includes > > That directory contains db_dataobject.ini and a directory DataObjects, > in which the DO classes are stored along with gmdarchive.ini and > gmdarchive.links.ini. db_dataobject.ini reads (modulo the SQL data here > not real, and it's word wrapping here): > > database = mysql://user:passwd@localhost/dbname > schema_location = > "/home/lgarfiel/public_html/gmdarchive/includes/DataObjects" > class_location = > "/home/lgarfiel/public_html/gmdarchive/includes/DataObjects" > require_prefix = DataObjects/ > class_prefix = DataObjects_ > > On the production server, I upload all of the above files verbatim. The > test script is now in: > /usr/www/users/stfleet/gmd/archive/includes > > And I edit db_dataobject.ini to read (Ibid on DB data): > > database = mysql://user:passwd@localhost/dbname > schema_location = "/usr/www/users/stfleet/gmd/archive/includes/DataObjects" > class_location = "/usr/www/users/stfleet/gmd/archive/includes/DataObjects" > require_prefix = DataObjects/ > class_prefix = DataObjects_ > > That is all correct, isn't it? > Looks good to me. -- Justin Patrin

« previous php.pear.general (#19058) next »