Warning: is_file(): open_basedir restriction in effect

Created on 7 June 2023, about 1 year ago
Updated 8 June 2023, about 1 year ago

Problem/Motivation

I get the following error in the drupal recent message log, if I don't have the photobox library installed on my site:

Warning: is_file(): open_basedir restriction in effect. File(/photobox/jquery.photobox.js) is not within the allowed path(s): (/var/www/vhosts/mydomain.com/:/tmp/) in Drupal\blazy\BlazyManagerBase->getLightboxes() (line 222 of /var/www/vhosts/mydomain.com/sites/all/modules/contrib/blazy/src/BlazyManagerBase.php).

Proposed resolution

Check if the photobox library exists, before checking if the photobox library js file is an existing file.

🐛 Bug report
Status

Fixed

Version

1.3

Component

Code

Created by

🇪🇸Spain ajFernandez

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024