• Resolved Safety13

    (@safety13)


    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

    (@safety13)

    Note: Using Download Monitor on a multisite setup. It is network activated.

    Plugin Support beatrice12

    (@beatrice12)

    Hello @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

    (@safety13)

    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.