Skip to content

[2.1.x] Open_basedir warnings with file permission profile #7744

@isaak654

Description

@isaak654

Originally posted by @isaak654 in #7741 (review)

When you set the file permission function Use predefined permission profile: Standard, it will produce multiple open_basedir warnings

 Time of Error 	Today at 01:53 PM
» Member ID that caused error 	1
» URL that caused error 	https://AVforum2.altervista.org/index.php?action=admin;area=packages;sa=perms;e664666a=e29b63c81067f8ab59e118a8605c33f0
» Error Message 	2: is_writable(): open_basedir restriction in effect. File(/membri/AVforum2/..) is not within the allowed path(s): (/membri/AVforum2/:/membri2/AVforum2/:/membri/.dummy/)
File: /membri/AVforum2/Sources/Subs.php
Line: 7222
» Error Type 	general
» Time of Error 	Today at 01:53 PM
» Member ID that caused error 	1
» URL that caused error 	https://AVforum2.altervista.org/index.php?action=admin;area=packages;sa=perms;e664666a=e29b63c81067f8ab59e118a8605c33f0
» Error Message 	2: is_dir(): open_basedir restriction in effect. File(/membri/AVforum2/..) is not within the allowed path(s): (/membri/AVforum2/:/membri2/AVforum2/:/membri/.dummy/)
File: /membri/AVforum2/Sources/Subs.php
Line: 7213
» Error Type 	general
» Time of Error 	Today at 01:53 PM
» Member ID that caused error 	1
» URL that caused error 	https://AVforum2.altervista.org/index.php?action=admin;area=packages;sa=perms;e664666a=e29b63c81067f8ab59e118a8605c33f0
» Error Message 	2: is_writable(): open_basedir restriction in effect. File(/membri/AVforum2/..) is not within the allowed path(s): (/membri/AVforum2/:/membri2/AVforum2/:/membri/.dummy/)
File: /membri/AVforum2/Sources/Subs.php
Line: 7209
» Error Type 	general
» Time of Error 	Today at 01:53 PM
» Member ID that caused error 	1
» URL that caused error 	https://AVforum2.altervista.org/index.php?action=admin;area=packages;sa=perms;e664666a=e29b63c81067f8ab59e118a8605c33f0
» Error Message 	2: file_exists(): open_basedir restriction in effect. File(/membri/AVforum2/..) is not within the allowed path(s): (/membri/AVforum2/:/membri2/AVforum2/:/membri/.dummy/)
File: /membri/AVforum2/Sources/Subs-Package.php
Line: 2787
» Error Type 	general
» Time of Error 	Today at 01:53 PM
» Member ID that caused error 	1
» URL that caused error 	https://AVforum2.altervista.org/index.php?action=admin;area=packages;sa=perms;e664666a=e29b63c81067f8ab59e118a8605c33f0
» Error Message 	2: file_exists(): open_basedir restriction in effect. File(/membri/AVforum2/..) is not within the allowed path(s): (/membri/AVforum2/:/membri2/AVforum2/:/membri/.dummy/)
File: /membri/AVforum2/Sources/Subs-Package.php
Line: 2775
» Error Type 	general
» Time of Error 	Today at 01:53 PM
» Member ID that caused error 	1
» URL that caused error 	https://AVforum2.altervista.org/index.php?action=admin;area=packages;sa=perms;e664666a=e29b63c81067f8ab59e118a8605c33f0
» Error Message 	2: file_exists(): open_basedir restriction in effect. File(/membri/AVforum2/..) is not within the allowed path(s): (/membri/AVforum2/:/membri2/AVforum2/:/membri/.dummy/)
File: /membri/AVforum2/Sources/Subs-Package.php
Line: 2760
» Error Type 	general
» Time of Error 	Today at 01:53 PM
» Member ID that caused error 	1
» URL that caused error 	https://AVforum2.altervista.org/index.php?action=admin;area=packages;sa=perms;e664666a=e29b63c81067f8ab59e118a8605c33f0
» Error Message 	2: is_dir(): open_basedir restriction in effect. File(/membri/AVforum2/..) is not within the allowed path(s): (/membri/AVforum2/:/membri2/AVforum2/:/membri/.dummy/)
File: /membri/AVforum2/Sources/Packages.php
Line: 2648
» Error Type 	general

Environment (complete as necessary)

  • Version/Git revision: SMF 2.1.3
  • Database: MySQL 8.0.26
  • PHP Version: 8.0.26 / 8.2.3

Additional information/references

  • open_basedir: /membri/AVforum2/:/membri2/AVforum2/:/membri/.dummy/
  • php.ini can't be changed, even upon official request to the provider
  • no apache log

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions