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

Fix fatal error when trying to install Matomo when PHP version is too low #15813

Merged
merged 2 commits into from Apr 15, 2020

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Apr 15, 2020

fix #15771

To reproduce issue you can change $piwik_minimumPHPVersion = '7.2.0'; to eg $piwik_minimumPHPVersion = '7.5.0'; and temporarily remove your config/config.ini.php. You will then see it shows a fatal error because the auto loader has not been loaded yet.

With this patch it shows correct error message
image

Not needed for 3.X since most users would have PHP 5.5+ anyway.

Also removed the sentence mentioning PHP4 and PHP 5.3 linking to https://matomo.org/faq/how-to-install/faq_77/ as it's outdated and the solution in https://matomo.org/faq/how-to-install/faq_77/ likely doesn't even work that often and is quite complicated so not too helpful.

@tsteur tsteur added the Needs Review PRs that need a code review label Apr 15, 2020
@tsteur tsteur added this to the 4.0.0 milestone Apr 15, 2020
@sgiehl sgiehl merged commit 4f476d6 into 4.x-dev Apr 15, 2020
@sgiehl sgiehl deleted the m15771 branch April 15, 2020 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Projects
None yet
2 participants