Skip to content

Warn about too new PHP version, don't block access completely #57015

@LM-vb

Description

@LM-vb

Tip

Help move this idea forward

  • Use the 👍 reaction to show support for this feature.
  • Avoid commenting unless you have relevant information to add; unnecessary comments create noise for subscribers.
  • Subscribe to receive notifications about status changes and new comments.

Is your feature request related to a problem? Please describe.
Some Linux distributions moved from PHP 8.4 to 8.5. versioncheck.php blocks access to NC32 completely, stating that it is incompatible with PHP 8.5. However, it is not. By editing versioncheck.php and only one single 3rd party file (pimple -> Container.php) NC32 runs fine (at least for the apps we use).

Describe the solution you'd like
A notification similar to PostgreSQL in Administration -> Overview. If using a too new PostgreSQL NC works, but simply prints out a warning. It would save a hassle if this was done for PHP, too. Something like the following on the Overview page:
PHP version
PHP version "8.5" detected. PHP >=8.1 and <=8.4 is suggested for best performance, stability and functionality with this version of Nextcloud.

Additional context
I am aware that running NC outside of the recommended configuration is a risk (which has to be borne by the administrator). However, I have used newer PHP or PostgreSQL versions repeatedly in the last years and there were never any ill side effects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmapenhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions