Warning: Cannot use a scalar value as an array in

LiteCart Fan
Da Sweden
Membro dal mag 2018

Hi,

I´m getting the following errors in Firefox:

Warning: Cannot use a scalar value as an array in ~/includes/library/lib_security.inc.php (Line 27)
Warning: Cannot use a scalar value as an array in ~/includes/library/lib_security.inc.php (Line 28)
Warning: Cannot use a scalar value as an array in ~/includes/library/lib_security.inc.php (Line 31)

Everything is working fine in Chrome and Opera, Why is thit happening?
I´m on a localhost for testing!

I have attached an image that shows how everything is pushed to the right do to the messages.

Anybody??

tim
Founder
Da Sweden
Membro dal mag 2013
tim

Errors are display for unlocked IPs and logged in admin users.

What does your line 27 in lib_security.inc.php look like?

if (empty(session::$data['bottrap']['trigger'])) session::$data['bottrap'] = array('trigger' => null);

LiteCart Fan
Da Sweden
Membro dal mag 2018

My line 27 looked like this:
if (!isset(session::$data['bottrap']['trigger'])) session::$data['bottrap']['trigger'] = array();

So I changed it to your version and now it works. Do I need to change anything in line 28 and 31:

Line 28:  self::$_trigger = &session::$data['bottrap']['trigger'];
Line 31: session::$data['bottrap']['trigger'] = array(

I am using the latest version 2.1. Why isthere a difference between your line 28 and mine?

tim
Founder
Da Sweden
Membro dal mag 2013
tim

No you are fine this way. My line comes from the latest dev version (2.2) soon going public.

LiteCart Fan
Da Sweden
Membro dal mag 2018

Thank you Tim! When is the new version out?

tim
Founder
Da Sweden
Membro dal mag 2013
tim

Dev versions are already out. 2.1.6 goes master goes master any day here.

Questo thread è stato chiuso per lunga inattività. Non è possibile postare su di esso.
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.