open_basedir warnings from wptt-webfont-loader.php
-
We use
open_basedirto restrict access to the filesystem, and have noticed the following in the logs:PHP Warning: file_exists(): open_basedir restriction in effect. File(/fonts) is not within the allowed path(s): (...) in /var/www/.../chique/inc/wptt-webfont-loader.php on line 452The same warning is raised on lines 151 and 523.
It looks like they all come from
file_exists()checks on a path beginning with/fonts. While in general solving this type of problem might be hard, it looks like in all three of these cases, you’re expecting a relative path inside of the WordPress installation. If so, it might be possible to skip thefile_exists()if the path returned fromget_local_stylesheet_path()orget_fonts_folder()lies outside of WP.
The topic ‘open_basedir warnings from wptt-webfont-loader.php’ is closed to new replies.
