Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

PHP 7.4 error : Trying to access array offset on value of type null

I have the following message in the error log after switching to PHP 7.4

Quote

Trying to access array offset on value of type null

File = Authenticate.class.php
Line = 349

This is the code
CodeDownload  
return array("user_level" => 0, "user_rights" => "", "user_groups" => "", "user_theme" => $settings['theme']);

$settings['theme'] is NULL ?

A line above 349, add

CodeDownload  
if ($settings['theme'] === NULL) {
 $settings['theme'] = 'Default';
}

Fixed https://github.com/php-fusion/PHP-Fusion/commit/7a5217474d4fab167e3f343f2c09d22e852ea3a4
Would that be wrong now?
CodeDownload  
return array("user_level" => 0, "user_rights" => "", "user_groups" => "", "user_theme" => "Default");

Anything that works goes..
Thread Information
Author
Replies
5 posts
Views
385 times
Last Post
Last updated on 8 months ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Falk, Chan, Rolly8-HL, RobiNN, Ernst74