Skip to content

[2.1.x] open_basedir restriction warnings in php 8+ #7738

@isaak654

Description

@isaak654

Description

Derived from [2.0.19] open_basedir restriction with Altervista provider - this issue is only related to my findings with SMF 2.1.x and a different Altervista domain than the one reported.

Steps to reproduce

  1. Create a new Altervista site for free from https://en.altervista.org/create-free-site.php ("Hosting with file manager" plan)
  2. You may need to set PHP as version 8.0 or later from their control panel
  3. Clean installation of SMF 2.1.3 (no mods)
  4. Go to the Package Manager and go back and forth through the following tabs:
    immagine
  5. Multiple error log(s) like this will be produced:
/membri/AVforum2/Sources/Packages.php (Line 2308)
Backtrace information
Type of error: General
Error message Select
2: is_file(): open_basedir restriction in effect. File(/membri/AVforum2/..) is not within the allowed path(s): (/membri/AVforum2/:/membri2/AVforum2/:/membri/.dummy/)

Environment (complete as necessary)

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

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

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions