Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

PHP8 compatibility?

Post Reply
gveconi
Posts: 3
Joined: Fri Apr 11, 2025 2:05 am

PHP8 compatibility?

Unread post 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
kev1n
nuBuilder Team
Posts: 4291
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: PHP8 compatibility?

Unread post by kev1n »

Hi,

Try removing/excluding that line.
gveconi
Posts: 3
Joined: Fri Apr 11, 2025 2:05 am

Re: PHP8 compatibility?

Unread post 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?
kev1n
nuBuilder Team
Posts: 4291
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: PHP8 compatibility?

Unread post by kev1n »

E.g viewtopic.php?p=30187&hilit=mbstring#p30187
Or search google / forum
gveconi
Posts: 3
Joined: Fri Apr 11, 2025 2:05 am

Re: PHP8 compatibility?

Unread post 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?
kev1n
nuBuilder Team
Posts: 4291
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: PHP8 compatibility?

Unread post by kev1n »

Are there no other errors in the (apache) log file?
Post Reply