RE: please help.
Brought to you by:
iridium
From: Max H. <ma...@fl...> - 2003-05-06 17:14:06
|
> > I have a lycos.co.uk account and have just uploaded via ftp all the > > files for phpweather 2.1.2, now when i click on the sites ftp client > > to show me my files, i had done as suggested and made a directory > > called, phpweather. now when i clicked on index.php, i had to > > obviously preview the file. it then gave me a message when read as > > follows. Fatal Error: cannot instantiate non-existent class: > > pw_db_null in db_layer.php on line 52. > I think you're the first who has seen this error --- it's supposed to > be something that cannot happen... The error says that the 'new' call > in line 52 has failed because there's no class definition of > pw_db_null. The definition is stored in the file included in line 51, > so it really should work: > > include_once(PHPWEATHER_BASE_DIR . '/db/pw_db_null.php'); > $this->db = new pw_db_null($this->properties); > > I don't have any good suggestions for you :-( Only thing i'd suggest is to try hard-coding the path to PHPWEATHER_BASE_DIR. Aron, do you get any errors about "could not find file xyz for include" or whatever (i'm getting rusty - i can't remember exactly what it'll say) What exactly do you mean by "i had to obviously preview the file." Cheers, Max |