RSS Feed/News Error when open_basedir is configured and the parent of tempDataPath is not included

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,728
Points
823

Reputation:

Code:

Code:
RuntimeException: SplFileInfo::isFile(): open_basedir restriction in effect. File(/<tempdir>/..) is not within the allowed path(s)

#0 src/XF/Util/File.php(146): SplFileInfo->isFile()

Changing
PHP:

if (!$file->isFile() || $file->getFilename() == 'index.html')

to
PHP:

if ($file->isDot() || !$file->isFile() || $file->getFilename() === 'index.html')

seems to fix this.

Continue reading...
 
Status
Not open for further replies.
Top