Page 1 of 1

PHP Fail after windows 10 fall update

PostPosted: 05. November 2017 17:48
by Wellington224
After upgrading with Windows 10 fall update my localhost access fails with: Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0, followed by Fatal error: Unknown: Failed opening required 'C:/(my document root)' (include_path='.;C:\xampp\php\PEAR') in Unknown on line 0. I have tried updating file permissions and including xampp in path environment but keeps failing

Re: PHP Fail after windows 10 fall update

PostPosted: 13. November 2017 13:00
by bestia
According to what I've read, that error code indicates a failure during pre-validation - specifically, wrong SKU or architecture. I'm not sure how that would be possible if you're upgrading through Windows Update. Maybe your installation is faulty?

Re: PHP Fail after windows 10 fall update

PostPosted: 19. November 2017 16:09
by Wellington224
I would like to know where you read that the failure is during pre-validation - specifically, wrong SKU or architecture. Thanks.

Re: PHP Fail after windows 10 fall update

PostPosted: 20. November 2017 09:56
by ignium
Wellington224 wrote:After upgrading with Windows 10 fall update my localhost access fails with: Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0, followed by Fatal error: Unknown: Failed opening required 'C:/(my document root)' (include_path='.;C:\xampp\php\PEAR') in Unknown on line 0. I have tried updating file permissions and including xampp in path environment but keeps failing


Is your project stored on OneDrive by any chance?

I was having the same issue, I uninstalled, reinstalled, tweaked php.ini and httpd.conf to no avail. None of my code changed, only the update. I had another system that hadn't updated and localhost still worked on that machine. So the only difference was the update. After a TON of searching, I discovered that OneDrive was also changed in the update and (for reasons I'm still searching for) the OneDrive directories are no longer accessible by Apache. To test this, I moved the project from my OneDrive folder to my Documents folder and lo and behold it worked. It looks like this is the only solution for the time being, until I can get more information on the change or Microsoft changes this in a future update.

Re: PHP Fail after windows 10 fall update - OneDrive!

PostPosted: 24. November 2017 04:28
by geoffham
Same thing happened to me. Took it out of onedrive and it works fine!

Re: PHP Fail after windows 10 fall update - OneDrive!

PostPosted: 24. November 2017 18:48
by Nobbie
geoffham wrote:Same thing happened to me. Took it out of onedrive and it works fine!


Of course, moving Xampp to OneDrive (or any other Cloud) is the worst idea ever. Concurrent synchronizing leads to unpredictable results and will destroy your Xampp installation.

Re: PHP Fail after windows 10 fall update

PostPosted: 25. November 2017 16:32
by Wellington224
Thank you ignium all my projects are on one drive.
Nobbie wrote:
geoffham wrote:Same thing happened to me. Took it out of onedrive and it works fine!


Of course, moving Xampp to OneDrive (or any other Cloud) is the worst idea ever. Concurrent synchronizing leads to unpredictable results and will destroy your Xampp installation.
- Only my DocumentRoot is on one drive not Xampp!

Re: PHP Fail after windows 10 fall update

PostPosted: 26. November 2017 17:11
by Wellington224
Looks like it is to do with OneDrive going back to using placeholders (files on demand) as in windows 8. Apache/PHP can't read the directory.

Re: PHP Fail after windows 10 fall update

PostPosted: 28. November 2017 10:34
by olszynski
same issue / onedrive for htdocs,

any workaround?

Re: PHP Fail after windows 10 fall update

PostPosted: 28. November 2017 11:35
by Nobbie
Dont put htdocs on OneDrive or any other Cloud Service. There is no "work around", it is simply a wrong design to do so.