Jump to content

Admin System Error Log


Claudia

Recommended Posts

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

Link to comment
Share on other sites

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 by bsmither
Link to comment
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...