ResolvedLAFKA Out of hours plugin error log growing so large it crashes server.
- This topic has 3 replies, 2 voices, and was last updated 1 year, 10 months ago by
Althemist.
- AuthorPosts
- September 8, 2021 at 11:37 am #31571
lee_daffin
ParticipantHi 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 143I cant disable this plugin, as the whole lafka theme depends on this plugin…
September 8, 2021 at 2:38 pm #31579Althemist
KeymasterHi 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.
November 23, 2021 at 2:51 pm #32224lee_daffin
ParticipantHi 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
November 23, 2021 at 5:35 pm #32225Althemist
KeymasterDid you switch Lafka Order Hours time zone to WordPress Default as we suggested more than 2 months ago?
- AuthorPosts
You must be logged in and have valid license to reply to this topic.