Page 1 of 1

PHP8 compatibility?

Posted: Mon Apr 14, 2025 5:59 pm
by gveconi
Hello:

I am running a legacy NuBuilder app. My hosting company recently upgraded to PHP8, and I am no longer able to log in to the app. The server displays a message "Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in [...]/nudatabase.php on line 29". Line 29 is

Code: Select all

ini_set("session.gc_maxlifetime", $gcLifetime);
Not sure if this is a compatibility problem or something else. If anyone has encountered this problem and has a fix, I would most appreciate!

Thanks,

Gib

Re: PHP8 compatibility?

Posted: Mon Apr 14, 2025 6:14 pm
by kev1n
Hi,

Try removing/excluding that line.

Re: PHP8 compatibility?

Posted: Thu Apr 24, 2025 4:17 pm
by gveconi
Removing that line prevents the error message from being displayed, but returns a page with only style sheets and no HTML content.

I read elsewhere about php-mbstring being installed for compatibility with PHP 8. Can you elaborate?

Re: PHP8 compatibility?

Posted: Thu Apr 24, 2025 4:21 pm
by kev1n
E.g viewtopic.php?p=30187&hilit=mbstring#p30187
Or search google / forum

Re: PHP8 compatibility?

Posted: Fri Apr 25, 2025 7:03 pm
by gveconi
Yes, that's what I saw.

Unfortunately, enabling php-mbstring did not change anything relative to the problem I'm having.

It would appear by the error that something is starting a session and it can not be modified, changed or restarted. Do you have any suggestions at this point?

Re: PHP8 compatibility?

Posted: Fri Apr 25, 2025 7:13 pm
by kev1n
Are there no other errors in the (apache) log file?