Jump to content

Recommended Posts

I get these 2 errors using version 6.2.9

Anything i should be worried about ?

 

 

[13-Sep-2020 18:05:34 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/wilst831/usbc.ca/classes/ajax.class.php on line 170

This is on line 170 :                     foreach ($dirs[$dir] as $parent => $folder) {
                        $path = (!empty($dir)) ? '/' : '';
                        $json[] = array(
                            'type' => 'directory',
                            'path' => urldecode($dir.basename($folder).'/'),
                            'name' => basename($folder),

 


[13-Sep-2020 18:26:58 UTC] PHP Warning:  Stored session data did not match DB record. Session aborted as possible session hijack. Old IP Address: '209.204.208.250' New IP Address: '209.204.208.250' Old User Agent: 'Mozilla/5.0 (Linux; Android 7.1.1; SM-P550) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.81 Safari/537.36' New User Agent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.81 Safari/537.36' in /home/wilst831/usbc.ca/classes/session.class.php on line 719

This is on line 719: 
                trigger_error('Stored session data did not match DB record. Session aborted as possible session hijack. Old IP Address: \''.$current[0]['ip_address'].'\' New IP Address: \''.$ip.'\' Old User Agent: \''.$current[0]['useragent'].'\' New User Agent: \''.$this->_http_user_agent().'\'', E_USER_WARNING);
 

Link to post
Share on other sites

The first message has been reported, but might not get fixed any time soon. We completely understand why it happens, and we know that the result is not causing any problems.

The second error message is when the visitor has an active session happening (based on cookies), but for some reason the browser has changed (based on the reported "user agent string" - typically a browser version upgrade). Or, maybe in a couple of cases, when the IP address has changed - though when the visitor is meandering among numerous wi-fi hotspots, the IP address may change frequently, so aborting a session because of this doesn't happen that often.

In the above message, the session switched from "Android 7.1.1" to "X11". Perhaps someone was testing the site by having the browser simulate a mobile device.

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...