Claudia Posted January 30, 2023 Share Posted January 30, 2023 Admin System Error Log When I got up this morning I checked my admin error log. I had over 4200 entries in the system error log. I try to clear the log every day but still get thousands. Has this been addressed or is it something I'm doing to cause this. This has been happening since I updated to CC6.4.9 PHP 8.1.13 Here's an example. Anything I can do? Today, 11:55 [<strong>Deprecated</strong>] /home/xxxxxx/public_html/classes/cache/file.class.php:224 - preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated https://www.cambargainstore.com/index.php Today, 11:47 [<strong>Deprecated</strong>] /home/xxxxxx/public_html/classes/cache/file.class.php:224 - preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated https://www.cambargainstore.com/index.php?seo_path=listed-only-on-etsy Today, 11:44 [<strong>Deprecated</strong>] /home/xxxxxx/public_html/classes/cache/file.class.php:224 - preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated https://www.cambargainstore.com/index.php Today, 11:40 [<strong>Deprecated</strong>] /home/xxxxxx/public_html/classes/cache/file.class.php:224 - preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated https://www.cambargainstore.com/index.php Today, 11:33 [<strong>Deprecated</strong>] /home/xxxxxx/public_html/classes/debug.class.php:260 - strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated https://www.gza-e.com/api/consumer/user/common/applet/code Today, 11:33 [<strong>Deprecated</strong>] /home/xxxxxx/public_html/classes/cache/file.class.php:224 - preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated https://www.gza-e.com/api/consumer/user/common/applet/code Today, 11:33 [<strong>Deprecated</strong>] /home/xxxxxx/public_html/classes/user.class.php:719 - strtolower(): Passing null to parameter #1 ($string) of type string is deprecated https://www.gza-e.com/api/consumer/user/common/applet/code Today, 11:33 [<strong>Deprecated</strong>] /home/xxxxxx/public_html/classes/session.class.php:676 - htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated https://www.gza-e.com/api/consumer/user/common/applet/code Today, 11:33 [<strong>Deprecated</strong>] /home/xxxxxx/public_html/classes/session.class.php:676 - strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated https://www.gza-e.com/api/consumer/user/common/applet/code Today, 11:33 [<strong>Deprecated</strong>] /home/xxxxxx/public_html/classes/session.class.php:676 - htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated https://www.gza-e.com/api/consumer/user/common/applet/code Today, 11:33 [<strong>Deprecated</strong>] /home/cambarga/public_html/classes/session.class.php:676 - strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated https://www.gza-e.com/api/consumer/user/common/applet/code Today, 11:30 [<strong>Deprecated</strong>] /home/cambarga/public_html/classes/cache/file.class.php:224 - preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated https://www.cambargainstore.com/index.php Today, 11:18 [<strong>Deprecated</strong>] /home/cambarga/public_html/classes/cache/file.class.php:224 - preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated https://www.cambargainstore.com/soft-drink-bottles Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 30, 2023 Share Posted January 30, 2023 (edited) You get thousands of log entries because, I would say, you have a very popular site. Most, if not all, I have seen fixed for CC6410 -- some issues are still open. I assume they will be closed before CC6410 is released. file.class.php:224 https://github.com/cubecart/v6/issues/3114 session.class.php:676 https://github.com/cubecart/v6/issues/3044 Although other places may contact CubeCart without this server variable. From: return strpos(($_SERVER['HTTP_USER_AGENT']), 'Trident') ? 'IEX' : htmlspecialchars($_SERVER['HTTP_USER_AGENT']); To: return strpos(($_SERVER['HTTP_USER_AGENT']??"fullsize"), 'Trident') ? 'IEX' : htmlspecialchars($_SERVER['HTTP_USER_AGENT']??"fullsize"); user.class.php:719 Same as above. From: $agent = strtolower($_SERVER['HTTP_USER_AGENT']); To: $agent = strtolower($_SERVER['HTTP_USER_AGENT']??"fullsize"); debug.class.php:260 Same as above. From: if (strstr(($_SERVER['HTTP_USER_AGENT']), 'W3C_Validator')) { To: if (strstr(($_SERVER['HTTP_USER_AGENT']??"fullsize"), 'W3C_Validator')) { I do not recall why I used "fullsize". Edited January 30, 2023 by bsmither Quote Link to comment Share on other sites More sharing options...
Claudia Posted January 30, 2023 Author Share Posted January 30, 2023 Thanks Brian. I'll make those changes ASAP! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.