Jump to content

Error log entries


windsurfer

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 comment
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 comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...