PHP Fail after windows 10 fall update

Problems with the Windows version of XAMPP, questions, comments, and anything related.

PHP Fail after windows 10 fall update

Postby Wellington224 » 05. November 2017 17:48

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
Wellington224
 
Posts: 5
Joined: 15. August 2015 10:12
Operating System: Windows 10

Re: PHP Fail after windows 10 fall update

Postby bestia » 13. November 2017 13:00

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?
bestia
 
Posts: 2
Joined: 13. November 2017 12:40
XAMPP version: 1.7.4
Operating System: Windows 10

Re: PHP Fail after windows 10 fall update

Postby Wellington224 » 19. November 2017 16:09

I would like to know where you read that the failure is during pre-validation - specifically, wrong SKU or architecture. Thanks.
Wellington224
 
Posts: 5
Joined: 15. August 2015 10:12
Operating System: Windows 10

Re: PHP Fail after windows 10 fall update

Postby ignium » 20. November 2017 09:56

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.
ignium
 
Posts: 1
Joined: 20. November 2017 09:46
XAMPP version: 3.2.2
Operating System: Windows 10 (Build 1709)

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

Postby geoffham » 24. November 2017 04:28

Same thing happened to me. Took it out of onedrive and it works fine!
geoffham
 
Posts: 1
Joined: 24. November 2017 04:06
XAMPP version: 3.2.2
Operating System: Windows 10

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

Postby Nobbie » 24. November 2017 18:48

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.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: PHP Fail after windows 10 fall update

Postby Wellington224 » 25. November 2017 16:32

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!
Wellington224
 
Posts: 5
Joined: 15. August 2015 10:12
Operating System: Windows 10

Re: PHP Fail after windows 10 fall update

Postby Wellington224 » 26. November 2017 17:11

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.
Wellington224
 
Posts: 5
Joined: 15. August 2015 10:12
Operating System: Windows 10

Re: PHP Fail after windows 10 fall update

Postby olszynski » 28. November 2017 10:34

same issue / onedrive for htdocs,

any workaround?
olszynski
 
Posts: 1
Joined: 28. November 2017 10:31
XAMPP version: 7
Operating System: win10x64

Re: PHP Fail after windows 10 fall update

Postby Nobbie » 28. November 2017 11:35

Dont put htdocs on OneDrive or any other Cloud Service. There is no "work around", it is simply a wrong design to do so.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 250 guests