Utilitaires
Scripts
Divers
Jeux
Rechercher
Quillevere.net
Computer science thoughts

Fix "Unknown: failed to open stream: No such file or directory in Unknown on line 0"

07/08/2021

While viewing your website, you may have the following two errors displayed:

  • Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
  • Fatal error: Unknown: Failed opening required 'index.php' (include_path='.;C:\php\pear') in Unknown on line 0

It is indeed a problem of access to a file but several origins are possible. Here are some ideas.

Special characters in path / file

Check that the path and name of the file to display do not contain special characters, such as accents. The system may not find the file to display due to the character encoding of the path or file name. Limit yourself to the characters A to Z, a to z, 0 to 9, the hyphen, underscore and space.

Synology Drive Client

If you are using a file sync solution like Synology Drive Client, make sure the "Enable on-demand sync to save disk space " checkbox is unchecked. Indeed, this synchronization deletes the file locally (even if it remains visible) and PHP cannot suddenly access it.

Dernière modification le 09/08/2021 - Quillevere.net

Search in this website

fr en rss RSS info Informations