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.

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

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:
CodeDownload  
$memory_limit = !isnum($memory_limit) ? 8 * 1024 * 1024 : $memory_limit < 8 * 1024 * 1024 ? 8 * 1024 * 1024 : $memory_limit;

Upgrade your system to latest.... It's already fixed
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:

CodeDownload  
 // 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
If you are using version 9.0, upgrade to version 9.03.50.

If 8.00 upgrade to 8.00.40.
Thank you very much for such prompt response, indeed!

Have a nice day.
Tom
Greetings.


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

Best regards - Tom
Thread Information
Author
Replies
6 posts
Views
815 times
Last Post
Last updated on 3 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: tws, RobiNN, Ernst74