Maybe it's caused by the mix of \ and / in your paths.. Maybe it would work better if your wrapped the paths in realpath()
Fatal error: require_once() incomplete path
Hello all,
I'm having an recurring issue in a production environment where the generated path to files suddenly doesnt get completed, and then after a few hours the problem disappears as sudden as it began. Does anyone have an idea what causes this and how to structurally fix this? Thanks in advance!
The production enviroment uses PHP 5.6.16, Laravel 5.0, on a IIS server. I've checked server for any changes at the time of start of the errors, but I cant fnd anything strange that might cause this.
Php log files is full of below errors. As one can see the path and filename is incomplete in the require_once.
[23-May-2016 02:20:16 Europe/Belgrade] PHP Fatal error: require_once(): Failed opening required 'D:\www\explorer-api\vendor/composer/autoload_real.php' (include_path='.;C:\php\pear') in D:\www\explorer-api\vendor\autoload.php on line 5 [23-May-2016 02:20:17 Europe/Belgrade] PHP Warning: require_once(D:\www\explorer-api\vendor\compo): failed to open stream: No such file or directory in D:\www\explorer-api\vendor\autoload.php on line 5
month later [26-Jun-2016 16:00:45 Europe/Belgrade] PHP Warning: require_once(D:\www\explorer-api\vendor\composer\autoload_rea): failed to open stream: No such file or directory in D:\www\explorer-api\vendor\autoload.php on line 5 [26-Jun-2016 16:00:45 Europe/Belgrade] PHP Fatal error: require_once(): Failed opening required 'D:\www\explorer-api\vendor/composer/autoload_real.php' (include_path='.;C:\php\pear') in D:\www\explorer-api\vendor\autoload.php on line 5
Please or to participate in this conversation.