Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error on phpversioncheck if no supported PHP versions when last PHP version on array don´t have support #27195

Closed
irbian opened this issue Dec 2, 2019 · 3 comments

Comments

@irbian
Copy link

irbian commented Dec 2, 2019

Steps to reproduce the issue

I had this error:

PHP Fatal error: Call to a member function format() on null in /www/joomla/sede/plugins/quickicon/phpversioncheck/phpversioncheck.php on line 174

I use Joomla 3.8.1 on PHP 5.6

The problem is a simple null pointer. The array of supported PHP versions is fixed. Yesterday 2019/12/1, the last PHP version on the array, lost support https://github.com/joomla/joomla-cms/blob/3.8.1/plugins/quickicon/phpversioncheck/phpversioncheck.php#L130

Because of this, recommendedVersionEndOfSupport is null, and can´t be called format on

I understand that Joomla 3.8.1 is not the last version, and PHP 5.6 is unsupported, but this is beyond the point. I understand that a updated environment and version is the way to go, but this is a bug that breaks access from one day to the other without user intervention.

Expected result

Maybe show something like "Update Joomla to show the recommended PHP version"

Actual result

White page on the administrator page

System information (as much as possible)

PHP 5.6
Joomal 3.8.1

@ReLater
Copy link
Contributor

ReLater commented Dec 2, 2019

I confirm that the fatal error also occurs in current J3.9.13

Test

@SharkyKZ
Copy link
Contributor

SharkyKZ commented Dec 2, 2019

Test PR #27197 please.

@joomla-cms-bot
Copy link

Set to "closed" on behalf of @SharkyKZ by The JTracker Application at issues.joomla.org/joomla-cms/27195

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants