We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Ivan Llanas
8 months agoExplorer | Level 4
Apache can't open files in Dropbox anymore
Hi,
I am using an Apache 2.4.41 server which DOCSROOT directory is in a Dropbox drive. It's been always working fine until 2025-05-01, when my Dropbox client asked me for an update. I consent and immediatelly the Apache server stopped working. It seems it cannot open the files the way it did. If I move the web files out of the Dropbox drive (and I configure Apache to use the new location, of course) it works again. The error I'm getting is this one:
Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
Fatal error: Unknown: Failed opening required 'E:/Dropbox/Web/index.html' (include_path='.;C:\php\pear') in Unknown on line 0Any way to fix it or workaround it?
Thanks.
Ivan Llanas Lung101 we are aware of the issue, and believe it's a PHP incompatibility with the latest Dropbox update. To remediate your issue, you could follow the opt out instructions found here: https://help.dropbox.com/installs/dropbox-for-windows
33 Replies
- Norajohnson3 months agoExplorer | Level 3
After a Dropbox update, Apache stopped opening files from Dropbox, showing a "failed opening required" error. Moving files out of Dropbox fixes Dropbox is stuck syncing forever, waiting to sync, not starting, or monkey type files are not uploading. If your Dropbox desktop app is stuck syncing, waiting to sync, or not starting to sync, Try logging into your account on dropbox.com to see if they are there. You or someone who shared or unshared the files or folders may have accidentally moved, renamed, or deleted them.
- CrazyViny3 months agoNew member | Level 2
Same issue, but started 2025 sept 24, when dropbox offer me Microsof Cloud update.
PHP under Apache can`t access file - Ivan Llanas4 months agoExplorer | Level 4
Hi.
If it serves I'll tell you my "solution". I was also using an older version of PHP. It couldn't open any Dropbox files after updating to the latest version. Updating PHP didn't work, so I downgraded the Dropbox client and everything went back to "normal".
A month ago, I switched (permanently) to Linux, abandoning Windows. Now everything works by default. - dbphp4 months agoNew member | Level 2
Spent a few hours trying to figure this out until finding this page. Definitely an issue with my php files and dropbox. I am using an older php, 5.3. Did the opt out instructions which created a new, second dropbox folder. After everything synced up, php files were working like previous. I don't really understand what this did though... did it roll back to a previous version? Forgot to check version number prior to making the switch. Or it just disabled some of the newer features?
- richardsyuk6 months agoExplorer | Level 3
Has a proper fix been released yet rather than a workaround?
- Nancy7 months ago
Dropbox Community Moderator
Hey richardsyuk, feel free to check out our team’s reply here, if you haven’t already.
- richardsyuk7 months agoExplorer | Level 3
The parent folder in windows explorer suggests it is synchronising. The sub folders and files i am trying to access all appear to be in the available offline status. I have paused and unpaused synchronising many times to try and get the parent directory icon status to change without success. Rebooted many times also. Getting other folders and files to be in available offline status was a challenge. The upgrade has been anything but seemless.
The icon in the system tray shows synchronsed.
The php script is just returning false or when using file_exists or file_get_contents().
- Walter7 months ago
Dropbox Community Moderator
Hey richardsyuk - sorry to hear about this.
Can you maybe send us a screenshot of the exact error(s) you're getting and one of the Dropbox desktop app's exact status as shown in your system tray?
- richardsyuk7 months agoExplorer | Level 3
I have just upgraded dropbox to 226.4.5094 and a number of my PHP scripts no longer work.
getcwd() works.
file_exists() , file_get_contents(), etc stopped working.
I initially thought because files not available offline but i think all the files available offline and still experiencing the issue
I am using very old version of PHP, i.e. 5.5.12, on Windows 10 build 19045.5965
- Ivan Llanas7 months agoExplorer | Level 4
No. It's not a real solution, it's just a workaround which works for me.
It seems that PHP under Apache fails to open files with some of the new Windows file attributes. It's a PHP bug. Well, it's a misunderstanding between an old software (PHP) and a new one (Windows with funny file attributes).
I just updated my Apache server and PHP module to their latest versions. But I am tooooo lazy and busy to test it now. If it's not working I'll have to recreate the Dropbox folder and I'm not in the mood of that. When the course is over I'll create a VM and synchronize only the web folder to test this new server version.
About Apps and Installations
Have a question about a Dropbox app or installation? Reach out to the Dropbox Community and get solutions, help, and advice from members.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!