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?

Deprecated: Unparenthesized `a ? b : c ? d : e` on search.php

Asked Modified Viewed 2,400 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

Deprecated: Unparenthesized a ? b : c ? d : e is deprecated. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) in ... search.php on line 273

Line 273:
$memory_limit = !isnum($memory_limit) ? 8 * 1024 * 1024 : $memory_limit < 8 * 1024 * 1024 ? 8 * 1024 * 1024 : $memory_limit;
0 replies

4 posts

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

Upgrade your system to latest.... It's already fixed
0 replies
— 2 months later —
T
tws
T
tws 10
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 1 thread in the forums
answered
Newbie

Greetings.



After recent upgrade PHP 7.1 to 7.4.5 I am seeing below notice:

Notice: Trying to access array offset on the value of type bool in /var/www/sp2l-9/maincore.php on line 176

Line 176 is:

 $current_user_language = ($langData['user_language'] ?: fusion_get_settings('locale'));

Part of the relevant code is:

 // Main language detection procedure
 static $current_user_language = [];
 if (iMEMBER && valid_language($userdata['user_language'])) {
 $current_user_language = $userdata['user_language'];
 } else {
 $langData = dbarray(dbquery('SELECT * FROM '.DB_LANGUAGE_SESSIONS.' WHERE user_ip=:ip', [':ip' => USER_IP]));
 $current_user_language = ($langData['user_language'] ?: fusion_get_settings('locale'));
 }
 $language_opts = fusion_get_enabled_languages();
 $enabled_languages = array_keys($language_opts);



Also noticed almost exactly the same message as in subject line:
"Deprecated: Unparenthesized a ? b : c ? d : e on...".

System is Debian 9.12 64 bit with Apache 2.4.25.

As above happens on PHP Fusion 9.0, does it mean that I need to upgrade to 9.03.50
as suggested by RobiNN ?

Will appreciate very much suggestions how to fix this.



Best regards - Tom
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

If you are using version 9.0, upgrade to version 9.03.50.

If 8.00 upgrade to 8.00.40.
Edited by Anonymous User on 12-05-2020 14:46,
1 reply
T
tws
T
tws 10
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 1 thread in the forums
answered
Newbie

Greetings.


Upgrade PHP Fusion to 9.03.50 resolved issues!
Thank you very much, RobiNN.

Best regards - Tom
0 replies

Labels

None yet

Statistics

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

3 participants

T
T
tws 10
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 1 thread 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