• We use open_basedir to 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 452

    The 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 the file_exists() if the path returned from get_local_stylesheet_path() or get_fonts_folder() lies outside of WP.

  • The topic ‘open_basedir warnings from wptt-webfont-loader.php’ is closed to new replies.