Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Require_Once Error

Status
Not open for further replies.

rjseals

Technical User
Nov 25, 2002
63
US
I have a php/mysql based website/shopping cart hosted on godaddy. It was working fine for the last year then one day I get the following errors.

Warning: require_once(DB/DataObject.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/p/h/r/phrazecrazy/html/cart/lib/classes/Font.php on line 5

Fatal error: require_once() [function.require]: Failed opening required 'DB/DataObject.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/p/h/r/phrazecrazy/html/cart/lib/classes/Font.php on line 5

There has been absolutely no changes in my scripts etc, the only thing that could have happened is something on Godaddy's end. Any ideas on what would cause this? The files that it is asking for are there.

Thanks!
 
The error means it either can't find that particular file or for some reason can't open it.

If your script hasn't changed, then something changed on the godaddy side: permissions, maybe a modifcation of the include paths etc.

This can happen if your script no longer has permissions to access that folder. You'll need to check with godaddy, and see that the PHP script can access the folder, and that the file is indeed there.



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Thanks for your reply, Where would the include path be? php.ini file? Or somewhere else?
 
Yes, the php.ini file will contain the include path.

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top