Title: PHP Errors
Last modified: October 27, 2023

---

# PHP Errors

 *  Resolved [Safety13](https://wordpress.org/support/users/safety13/)
 * (@safety13)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/php-errors-307/)
 * Keep getting these types of errors, PHP Warning: file_exists(): open_basedir 
   restriction in effect. File(/watch) is not within the allowed path(s): (/www/
   xxx/public:/www/xxx/mysqleditor:/www/xxx/web:/www/xxx/deploy:/www/xxx/deployment:/
   www/xxx/deployments:/usr/share:/tmp:/www/xxx/public/wp-content/plugins/download-
   monitor/) in /www/xxx/public/wp-content/plugins/download-monitor/src/FileManager.
   php on line 80″ while reading response header from upstream, client: 95.181.237.3,
   server: xxx, request: “GET /download/6227/?tmstv=1695144862 HTTP/2.0”, upstream:“
   fastcgi://unix:/var/run/php8.0-fpm-xxx:”, host: “xxx:40739”
 * The files are always custom urls which link to 3rd party sites like YouTube.
 * What is the proper path to enter in the open_basedir to stop the messages from
   populating the server error log?

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

 *  Thread Starter [Safety13](https://wordpress.org/support/users/safety13/)
 * (@safety13)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/php-errors-307/#post-17156191)
 * Note: Using Download Monitor on a multisite setup. It is network activated.
 *  [beatrice12](https://wordpress.org/support/users/beatrice12/)
 * (@beatrice12)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/php-errors-307/#post-17164047)
 * Hello [@safety13](https://wordpress.org/support/users/safety13/),
 * Thanks for reaching out to us!
 * This is something that should be raised with your web host, because these limitations
   are usually added by the hosts in order to avoid potential access of files from
   one customer to another (when they share certain resources/paths).
 * My suggestion would be to ask your host to add our plugin path to the PHP/open_basedir
   path and then restart PHP/NGINX and see if the error keeps showing up.
 * Please let us know how it goes!
 * Warmly,
 * Beatrice.
 *  Thread Starter [Safety13](https://wordpress.org/support/users/safety13/)
 * (@safety13)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/php-errors-307/#post-17164112)
 * Host has added /www/xxx_329/public:/www/xxx_329/mysqleditor:/www/xxx_329/web:/
   www/xxx_329/deploy:/www/xxx_329/deployment:/www/xxx_329/deployments:/usr/share:/
   tmp:/www/xxx_329/public/wp-content/plugins/download-monitor/ as the path. Still
   getting the errors. Is that the correct path?
 * Also found PHP Notice: ob_flush(): Failed to flush buffer. No buffer to flush
   in /www/xxx_329/public/wp-content/plugins/download-monitor/src/DownloadHandler.
   php on line 880 in the WP Debug logs.

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

The topic ‘PHP Errors’ 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
 * 2 participants
 * Last reply from: [Safety13](https://wordpress.org/support/users/safety13/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/php-errors-307/#post-17164112)
 * Status: resolved