Jump to content

tblerrorlog filling up with errors after update


Recommended Posts

1 hour ago, WHMCS John said:

Hi @Faizal1,

Whilst a PHP warning doesn't typically cause a functional problem, it would be good to get to the bottom of them.

Can you please share the fill contents of the message field please?

Sure: 

session_start(): Cannot start session when headers already sent

array_key_exists() expects parameter 2 to be array, null given

session_name(): Cannot change session name when headers already sent

session_set_cookie_params(): Cannot change session cookie parameters when headers already sent

Edited by Faizal1
Link to comment
Share on other sites

Ok so out of curiosity since it was filling the log every 5 mins since the upgrade I decided to check the cron command listed in the automation status and it was different from the one we have always used. Copied that command over and the errors seem to have stopped and automation status still looks good. Could that have been it? Had over 5000  entries since the upgrade so nice to see them stopped. 

Also, are we ok to go ahead and empty  old tblerrorlog entries?

Thanks for all your help

Edited by Faizal1
Link to comment
Share on other sites

  • 2 months later...

This causes quite a bit of performance overhead, we see up-to a dozen MySQL inserts per second, check yours:

```
MariaDB [whmcs]> select (select created_at from tblerrorlog order by created_at desc limit 1) as start, (select created_at from tblerrorlog order by created_at asc limit 1) as end, (select created_at from tblerrorlog order by created_at desc limit 1)-(select created_at from tblerrorlog order by created_at asc limit 1) as seconds, (select count(*) from tblerrorlog) as totalrows;
+---------------------+---------------------+---------+-----------+
| start               | end                 | seconds | totalrows |
+---------------------+---------------------+---------+-----------+
| 2020-12-30 09:54:32 | 2020-12-30 09:38:33 |    1599 |     14005 |
+---------------------+---------------------+---------+-----------+
1 row in set (0.02 sec)
```

Link to comment
Share on other sites

  • 3 months later...
  • 7 months later...

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated