New Zenner
- Join Date:
- Jun 2005
- Posts:
- 22
- Plugin Contributions:
- 0
myDEBUG log files hit inode limit
After a lot of functionality on our client's website stopped working yesterday, we learned that the server hit the inode limit due to a huge number of log files being written to the /logs directory. They're all in the format myDEBUG-*.log, and contain basically the same message pasted below. The hosting provider deleted them, but there are hundreds of new ones being generated per minute.
Any ideas on what is causing these warnings? I assume something is being passed into the foreach that is not an array. Also, is there a way to disable writing log files on a PHP Warning severity level?
Zen Cart v1.5.5a
Thanks!
[27-Apr-2017 13:33:57 America/Phoenix] Request URI: /index.php?main_page=product_info&cPath=&products_id=555, IP address: XXXXXXXXXX
#1 base->attach() called at [/home/XXXXXXXX/public_html/includes/classes/observers/class.google_recaptcha.php:24]
#2 google_recaptcha->__construct() called at [/home/XXXXXXXX/public_html/includes/autoload_func.php:79]
#3 require(/home/XXXXXXXX/public_html/includes/autoload_func.php) called at [/home/XXXXXXXX/public_html/includes/application_top.php:170]
#4 require(/home/XXXXXXXX/public_html/includes/application_top.php) called at [/home/XXXXXXXX/public_html/index.php:26]
[27-Apr-2017 13:33:57 America/Phoenix] PHP Warning: Invalid argument supplied for foreach() in /home/XXXXXXXX/public_html/includes/classes/class.base.php on line 30