Issues after upgrade PHP version to PHP 7.4

287 views
Skip to first unread message

J. Manuel Velasco

unread,
Mar 17, 2021, 5:42:45 AM3/17/21
to SimpleSAMLphp
Hello,

I have upgraded the PHP version and SimpleSAMLPHP toolkit and time to time I see the following line in the error_log

[17-Mar-2021 00:52:38 UTC] PHP Fatal error:  Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.1.3". You are running 7.0.12. in C:\inetpub\wwwroot\simplesaml\vendor\composer\platform_check.php on line 24

The product seems to work as expected for the authsources configured but I don't understand this Fatal Error because everything I check in the system says I have the correct version of PHP (7.4).

More information can be found here:

But I am starting thinking the issue could be related to something I missed in the upgrade procedure of simplesamlphp.

I will appreciate if someone can help me to stop having this issue.

Thanks,
·_-

Tim van Dijen

unread,
Mar 17, 2021, 6:41:53 AM3/17/21
to SimpleSAMLphp
Check your webserver configuration.. I suspect you have both PHP 7.0 and 7.4 installed next to each other and your webserver is still pointing to the 7.0 module.
You can also access the phpinfo() page through the perspective of SimpleSAMLphp by going to;  https://yourdomain.com/module.php/admin/phpinfo ... I'm positive it will say PHP 7.0.

- Tim

Op woensdag 17 maart 2021 om 10:42:45 UTC+1 schreef jmanuel...@gmail.com:

J. Manuel Velasco

unread,
Mar 17, 2021, 8:25:33 AM3/17/21
to SimpleSAMLphp
Hello,
Thanks for your time.
No, this is what is strange to me. All the checks I do reflects the correct setup of PHP 7.4, also at the simplasaml checks.


In the post on Server Fault I have pasted several more screenshots.

More ideas?
Thanks!
·_-

Tim van Dijen

unread,
Mar 23, 2021, 4:09:54 AM3/23/21
to SimpleSAMLphp
One of the screenshots in Server Fault triggers me...  "Unknown package has no name defined", I've seen this before..
It's probably related to an old version of Composer.. See https://github.com/simplesamlphp/simplesamlphp/issues/1427

- Tim

Op woensdag 17 maart 2021 om 13:25:33 UTC+1 schreef jmanuel...@gmail.com:

J. Manuel Velasco

unread,
Mar 23, 2021, 5:02:10 AM3/23/21
to SimpleSAMLphp
Hi,

Thanks to follow it up.
I have added
    "config": {
        "platform-check": false
    }
to the composer.json.

Hope this stops the Fatal error shown in the logs.

Thanks!
·_-

J. Manuel Velasco

unread,
Apr 19, 2021, 4:03:59 AM4/19/21
to SimpleSAMLphp
I still get the error in my error log, although everything seems to be fine.
Really strange issue here.

Any help will be apreciated since this is happening in our production server and it is weird.

Thanks in advance.

·_-

Tim van Dijen

unread,
Apr 19, 2021, 7:04:52 AM4/19/21
to SimpleSAMLphp
What version of Composer are you using?

- Tim

Op maandag 19 april 2021 om 10:03:59 UTC+2 schreef jmanuel...@gmail.com:
Reply all
Reply to author
Forward
0 new messages