PHP Version 8.x Compatibility

79 views
Skip to first unread message

Gavin Spomer

unread,
Mar 9, 2022, 1:27:46 PM3/9/22
to Suma: mobile library assessment toolkit
Hello,

I upgraded PHP on our web server from version 7.4 to 8.0 last Monday. Our Access Services staff brought to my attention that the Suma client was producing an error:

Error sending data to server. This may be caused by issues including server outages and Wi-Fi connectivity problems. The data will be retained by the browser. Please contact an administrator if this doesn't resolve itself soon: Internal Server Error.

I checked my logs and found that the issue was caused by a call to the deprecated get_magic_quotes_gpc function:

2022-03-09_09-20-22.png

Since magic quotes type functions are deprecated as of PHP 7.4.0 and removed as of PHP 8.0.0, is there plans to upgrade Suma to work with PHP 8.0?

Thanks for your time.

Gavin Spomer
Systems Programmer
Brooks Library
Central Washington University

Jesse Russell

unread,
Jun 2, 2022, 1:47:14 PM6/2/22
to Suma: mobile library assessment toolkit
Hello,

Was there any followup on this that didn't occur here? I mean this will eventually spell the end of Suma if not updated right? PHP 7.4 is out of active support and only receiving security support until November of this year. So any server with a Suma instance after November will either vulnerable or broken.

Julie Wood

unread,
Jun 2, 2022, 4:02:35 PM6/2/22
to suma-mobile-library...@googlegroups.com
I am successfully running our instance of suma (4.0) on php v. 8.1.6.  


On Thu, Jun 2, 2022 at 11:47 AM 'Jesse Russell' via Suma: mobile library assessment toolkit <suma-mobile-library...@googlegroups.com> wrote:
Hello, Was there any followup on this that didn't occur here? I mean this will eventually spell the end of Suma if not updated right? PHP 7.4 is out of active support and only receiving security support until November of this year. So any server
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.
Please verify the legitimacy of the message before you click on any links, open any attachments, or reply to the message.
 
ZjQcmQRYFpfptBannerEnd
--
You received this message because you are subscribed to the Google Groups "Suma: mobile library assessment toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to suma-mobile-library-asses...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/suma-mobile-library-assessment-toolkit/67f70b43-0430-48bf-841a-2d6720859739n%40googlegroups.com.

Jason Casden

unread,
Jun 13, 2022, 1:39:01 PM6/13/22
to suma-mobile-library...@googlegroups.com
Hi everyone,

Sorry for the late reply. I made an initial attempt at addressing PHP 8.x compatibility issues, but I think there may be more work to be done. If anyone would like to contribute to this as a tester, you can find the draft PR here: https://github.com/suma-project/Suma/pull/152

Thanks,
Jason

Jason Casden

unread,
Jan 25, 2023, 9:14:45 AM1/25/23
to Suma: mobile library assessment toolkit
Hi everyone,

I just wanted to follow up on this thread to say that we've released Suma 4.1.0 with PHP 8.1 support. We are running this in production at UNC and all seems to be working well. It also appears to be working normally on PHP 7.4 and I expect that it would work at least as far back as PHP 7.1.


Thanks,
Jason

Gavin Spomer

unread,
Apr 25, 2023, 5:28:33 PM4/25/23
to Suma: mobile library assessment toolkit
Thanks Jason! Big apologies for my very late reply. 

 - Gavin 

Reply all
Reply to author
Forward
0 new messages