ResolvedLAFKA Out of hours plugin error log growing so large it crashes server.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #31571
    lee_daffin
    Participant

    Hi there,

    My website is running slower and slower until it started giving memory errors, upon further investigation I found the reason to be due to the lafka order hours plugin generating errors every second, as it runs through a cron job. The plugin had created a 19 gb error log because of the lafka plugin. It is overloading the server: I have deleted that and I have disabled the lafka order hours functionality and now the site is working better and faster than before. I need the out of hours plugin enabled as it was a core part of why I bought and implemented the LAFKA theme to support our strange order hours.
    See below error log, can you advise how to resolve this please.

    [06-Sep-2021 20:56:17 Europe/London] PHP Warning: Invalid argument supplied for foreach() in /home/leedaffin123/public_html/HMTakeout.com/wp-content/plugins/lafka-plugin/incl/order-hours/Lafka_Order_Hours.phpon line 143
    [06-Sep-2021 20:56:17 Europe/London] PHP Warning: Invalid argument supplied for foreach() in /home/leedaffin123/public_html/HMTakeout.com/wp-content/plugins/lafka-plugin/incl/order-hours/Lafka_Order_Hours.phpon line 143
    [06-Sep-2021 20:56:17 Europe/London] PHP Notice: Undefined offset: 381 in /home/leedaffin123/public_html/HMTakeout.com/wp-content/plugins/lafka-plugin/incl/order-hours/Lafka_Order_Hours.phpon line 141
    [06-Sep-2021 20:56:17 Europe/London] PHP Notice: Undefined offset: 614 in /home/leedaffin123/public_html/HMTakeout.com/wp-content/plugins/lafka-plugin/incl/order-hours/Lafka_Order_Hours.phpon line 141
    [06-Sep-2021 20:56:17 Europe/London] PHP Notice: Trying to get property ‘periods’ of non-object in /home/leedaffin123/public_html/HMTakeout.com/wp-content/plugins/lafka-plugin/incl/order-hours/Lafka_Order_Hours.phpon line 143
    [06-Sep-2021 20:56:17 Europe/London] PHP Notice: Trying to get property ‘periods’ of non-object in /home/leedaffin123/public_html/HMTakeout.com/wp-content/plugins/lafka-plugin/incl/order-hours/Lafka_Order_Hours.phpon line 143

    I cant disable this plugin, as the whole lafka theme depends on this plugin…

    #31579
    Althemist
    Keymaster

    Hi lee_daffin,

    Sounds like your server can’t handle two separate time zones. I’d suggest switching the Lafka Order Hours time zone to the WordPress Default, so it’s using the same settings used by WordPress. That should fix the problem.

    #32224
    lee_daffin
    Participant

    Hi there, this is still creating huge log files and slowing my server down, to the point where I cannot open the log files. I have had to disable the Order Hours off. DO you have any further thought

    #32225
    Althemist
    Keymaster

    Did you switch Lafka Order Hours time zone to WordPress Default as we suggested more than 2 months ago?

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register