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 ofopen_basedir()
.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘open_basedir() warnings’ is closed to new replies.