Title: open_basedir() warnings
Last modified: June 28, 2022

---

# open_basedir() warnings

 *  Resolved [michael.orlitzky](https://wordpress.org/support/users/michaelorlitzky/)
 * (@michaelorlitzky)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/open_basedir-warnings/)
 * These are harmless, but they clutter the logs:
 *     ```
       Jun 28 19:20:36 http2 php: PHP Warning:  file_exists(): open_basedir restriction in effect. File(/wp-content/uploads/2022/04/example.pdf) is not within the allowed path(s): (/var/www/example.com/www/:/usr/share/php/:/usr/local/lib/wordpress/plugins/) in /usr/local/lib/wordpress/plugins/download-monitor/src/FileManager.php on line 68
       ```
   
 * I think the issue is that calling `file_exists()` on a relative path will generally
   run afoul of `open_basedir()`.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Miha](https://wordpress.org/support/users/mplusb/)
 * (@mplusb)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/open_basedir-warnings/#post-15780961)
 * Hi [@michaelorlitzky](https://wordpress.org/support/users/michaelorlitzky/),
 * Thanks for letting us know about this!
    I went ahead and opened a ticket regarding
   this warning so we can fix it in our next update. You can follow the progress
   here: [https://github.com/WPChill/download-monitor/issues/981](https://github.com/WPChill/download-monitor/issues/981)
 * Warmly,
    Mihaela
 *  Plugin Author [Teo Alex](https://wordpress.org/support/users/altesin/)
 * (@altesin)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/open_basedir-warnings/#post-15802061)
 * Hello Michael,
 * Can you please tell us what version of PHP are you using?
 * Have a great day,
    Teo
 *  Thread Starter [michael.orlitzky](https://wordpress.org/support/users/michaelorlitzky/)
 * (@michaelorlitzky)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/open_basedir-warnings/#post-15802571)
 * v7.4.28 at the moment

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘open_basedir() warnings’ is closed to new replies.

 * ![](https://ps.w.org/download-monitor/assets/icon-256x256.png?rev=3198936)
 * [Download Monitor](https://wordpress.org/plugins/download-monitor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/download-monitor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/download-monitor/)
 * [Active Topics](https://wordpress.org/support/plugin/download-monitor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/download-monitor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/download-monitor/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [michael.orlitzky](https://wordpress.org/support/users/michaelorlitzky/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/open_basedir-warnings/#post-15802571)
 * Status: resolved