Re: DataObject getLinks() not working on web host

From: Date: Tue, 03 May 2005 04:16:53 +0000
Subject: Re: DataObject getLinks() not working on web host
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19057@lists.php.net to get a copy of this message
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? -- Larry Garfield AIM: LOLG42 larry@garfieldtech.com ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it." -- Thomas Jefferson

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