Categories

Failed to open stream: No such file or directory in X on line Y

Alex Ross October 22, 2012
Rating: 5.0/5. From 2 votes.
Please wait...

You can get errors like this:

Failed to open stream: No such file or directory in foo.php on line 45

If you reference a file that doesn’t exist.

Please perform the following steps to fix the issue:

  1. To troubleshoot the problem, look in the file given, at the line given (for this example, you would look at file foo.php on line 45.). The file mentioned on that line is the one that PHP can’t find.
  2. Make sure that the file in question has proper permissions (644 or 755) and is readable by the system/server.
  3. Contact your hosting provider regarding the issue.
This entry was posted in Hosting FAQ, Website & server errors and tagged error, failed, open, stream. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket