You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to the latest OctoberCMS version running under PHP 7.4 my sites where generating these Exception errors like:
An exception has been thrown during the rendering of a template ("file_exists(): open_basedir restriction in effect. File(/storage/app/media/logos/vdz-logo.png) is not within the allowed path(s):
Looking into the code I noticed that the storage path was absolute and not reading from the storage folder. By modifying the class everything works fine again. Are there more people suffering this issue? If so can you update the code?
Line 48 in Class Image.php:
$this->filePath = (file_exists(storage_path($filePath)))
The text was updated successfully, but these errors were encountered:
remko-key
changed the title
file_exists(): open_basedir restriction in effect
file_exists(): open_basedir restriction in effect since build 467
Oct 5, 2020
here as well. somehow many of our servers and reseller hosting packages now have that problem: data-src="{{ background | resize(size_small) }}" as an example
After upgrading to the latest OctoberCMS version running under PHP 7.4 my sites where generating these Exception errors like:
An exception has been thrown during the rendering of a template ("file_exists(): open_basedir restriction in effect. File(/storage/app/media/logos/vdz-logo.png) is not within the allowed path(s):
Looking into the code I noticed that the storage path was absolute and not reading from the storage folder. By modifying the class everything works fine again. Are there more people suffering this issue? If so can you update the code?
Line 48 in Class Image.php:
$this->filePath = (file_exists(storage_path($filePath)))
The text was updated successfully, but these errors were encountered: