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!

    What do you mean "are there" ? Do you mean the file you're trying to load is at: /home/content/p/h/r/phrazecrazy/html/cart/lib/classes/DB/DataObject.php ?

      maybe the path to your home directory was changed (home/content/p/h/r/phrazecrazy)... use phpinfo() to confirm the path.

        greensweater wrote:

        maybe the path to your home directory was changed

        Well we at least know the home directory is correct by looking at the error message as it gives the script's full location.

        I just wrote out the full path in the event that would help clarify where the file is being looked for.

          duh :queasy: oops. Well I'm looking for something that would change server-side to cause this to fail... what would cause it to suddenly stop working? If there's no DB/DataObject.php in the classes directory this would fail, obviously... there's a note in the docs regarding PHP5 and case sensitivity, maybe they updated to 5. Or maybe the permissions on the file got changed?

          It could help to post the code from Font.php around line 5...

            I would even suggest contacting the webhost with details about the situation and let them figure it out - if they're going to change things for their paying customers, they should be more than willing to troubleshoot any problems that arise.

              Write a Reply...