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.
Not a member yet? Click here to register.
Forgot Password?

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

Asked Modified Viewed 1,337 times
E
Ernst74
E
  • Junior Member, joined since
  • Contributed 32 posts on the community forums.
  • Started 14 threads in the forums
  • Started this discussions
asked
Junior Member

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
return array("user_level" => 0, "user_rights" => "", "user_groups" => "", "user_theme" => $settings['theme']);
Edited by Falk on 13-01-2020 23:38,
0 replies

4 posts

C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

$settings['theme'] is NULL ?

A line above 349, add

if ($settings['theme'] === NULL) {
 $settings['theme'] = 'Default';
}
0 replies
R
Anonymous User
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions
answered
Veteran Member

Fixed https://github.com/PHPFusion/PHPFusion/commit/7a5217474d4fab167e3f343f2c09d22e852ea3a4
0 replies
R
Rolly8-HL
R
Greeting Rolly8 HL
What is important for others must not be as important for me!
I'm stubborn, Unteachable, in protest I do not what others believe is right!
This gives a thought to it?
  • Junior Member, joined since
  • Contributed 27 posts on the community forums.
  • Started 13 threads in the forums
answered
Junior Member

Would that be wrong now?
return array("user_level" => 0, "user_rights" => "", "user_groups" => "", "user_theme" => "Default");
0 replies
F
Falk
F
Falk 146
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
answered
Super Admin

Anything that works goes..
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 4 posts
  • Votes 0 votes
  • Topic users 5 members

5 participants

F
F
Falk 146
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
C
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
R
R
Greeting Rolly8 HL
What is important for others must not be as important for me!
I'm stubborn, Unteachable, in protest I do not what others believe is right!
This gives a thought to it?
  • Junior Member, joined since
  • Contributed 27 posts on the community forums.
  • Started 13 threads in the forums
R
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions
E
E
  • Junior Member, joined since
  • Contributed 32 posts on the community forums.
  • Started 14 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet