Jump to content

What do these PHP Warnings mean


Claudia

Recommended Posts

I noticed these in my cPanel error log today.  Are they a problem?

Thanks in advance for any and all help

 

[31-Dec-2020 07:54:03 America/Louisville] PHP Warning:  Invalid Security Token in /home/xxxxx/public_html/classes/sanitize.class.php on line 155

[31-Dec-2020 22:20:16 America/Louisville] PHP Warning:  Stored session data did not match DB record. Session aborted as possible session hijack. Old IP Address: '2607:5500:3000:ddc::2' New IP Address: '2607:5500:3000:ddc::2' Old User Agent: '' New User Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36' in /home/xxxx/public_html/classes/session.class.php on line 753

[01-Jan-2021 08:35:51 America/Louisville] PHP Warning:  Stored session data did not match DB record. Session aborted as possible session hijack. Old IP Address: '54.153.119.180' New IP Address: '54.153.119.180' Old User Agent: '' New User Agent: 'IEX' in /home/xxxx/public_html/classes/session.class.php on line 753

~~~~   I have 14 of these, all with the same time  ~~~~

[02-Jan-2021 03:05:03 America/Louisville] PHP Warning:  unlink(/home/xxxxx/public_html/cache/0873f.sql.e739b77303e675a535b93f0478846032.cache) [<a href='http://docs.php.net/manual/en/function.unlink.php'>function.unlink.php</a>]: No such file or directory in /home/xxxxxx/public_html/classes/cache/file.class.php on line 186

~~~~~~~~~ I have 3 of these, all with the same time ~~~~~~~~~~~~~~~~~

[02-Jan-2021 03:05:03 America/Louisville] PHP Warning:  filesize() [<a href='http://docs.php.net/manual/en/function.filesize.php'>function.filesize.php</a>]: stat failed for /home/xxxxxx/public_html/cache/0873f.sql.7a29490012548f170c6cca0d43c82775.cache in /home/xxxxxx/public_html/classes/cache/file.class.php on line 173

Don't ask what I was doing today at 03:05:03 because it is only a little after noon now.  The only thing I did today is setup an offsite customer and their order.  I've done this many times without getting these warnings.

Link to comment
Share on other sites

If something or some behavior all of a sudden changes, and you didn't do anything, then blame your hosting provider.

Specifically, your site may have been upgraded to PHP 7.3 or 7.4. These versions of PHP changes a few things that were Notices are now Warnings.

The Invalid Security Token is where someone used the BACK button on the browser, and then submitted a form a second time.

The Stored Session Data is a browser using the same cookie but has changed its IP address or the browser's identification (probably got upgraded).

However, the unlinks and stat failed messages are interesting. These suggest that something other than PHP under CubeCart's control cleared the cache folder.

 

Link to comment
Share on other sites

My PHP is still  7.3.23.  I did use the back button.  I cleared the cache when I deleted the extra images of the item I sold. And sometimes I might have 2 admins open.  On the order I "open in a new tab" the sold item shown in the order summary and uncheck the extra images, among other things.  Could I have caused this by going to file manager in this admin to delete them, then go to the other admin where the order is?

 
Link to comment
Share on other sites

Archived

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

×
×
  • Create New...