Forums / General Questions / is there an easy way to empty 'logs' folder

is there an easy way to empty 'logs' folder

Views: 832

Results 1 to 4 of 4
12 Apr 2016, 5:28 AM
#1
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

is there an easy way to empty 'logs' folder

Hi - had a problem of lack of space on a website - issue was lack of available 'inodes'- had 213k entries in error logs (all myDEBUG files) - I want to purge the folder - using WinSCP ftp client is low, can only delete 10k entries at a time and that takes ages - is there another faster way?

cheers, Mike

12 Apr 2016, 5:42 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: is there an easy way to empty 'logs' folder

In recent versions of Zen Cart the Admin->Tools->Store Manager has a cleanup option. I can't remember if it goes all the way back to v151 though.

You could also use your hosting company's control panel if they offer a File Manager option.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Apr 2016, 6:18 AM
#3
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: is there an easy way to empty 'logs' folder

DrByte:

In recent versions of Zen Cart the Admin->Tools->Store Manager has a cleanup option. I can't remember if it goes all the way back to v151 though.

You could also use your hosting company's control panel if they offer a File Manager option.

Many thanks Doc - worked a treat - had 213,000 of the same error message - after clearout it is still coming through every 30 seconds or so - bloody nuisance.

[12-Apr-2016 16:06:18 Australia/Melbourne] PHP Warning: constant(): Couldn't find constant MIDDLEBOX_NUMBER_1 in /home/harmony2/public_html/includes/templates/responsive_all_business/templates/tpl_middleboxes.php on line 20
[12-Apr-2016 16:06:18 Australia/Melbourne] PHP Warning: constant(): Couldn't find constant MIDDLEBOX_NUMBER_2 in /home/harmony2/public_html/includes/templates/responsive_all_business/templates/tpl_middleboxes.php on line 20
[12-Apr-2016 16:06:18 Australia/Melbourne] PHP Warning: constant(): Couldn't find constant MIDDLEBOX_NUMBER_3 in /home/harmony2/public_html/includes/templates/responsive_all_business/templates/tpl_middleboxes.php on line 20
[12-Apr-2016 16:06:18 Australia/Melbourne] PHP Warning: constant(): Couldn't find constant MIDDLEBOX_NUMBER_4 in /home/harmony2/public_html/includes/templates/responsive_all_business/templates/tpl_middleboxes.php on line 20
[12-Apr-2016 16:06:18 Australia/Melbourne] PHP Warning: constant(): Couldn't find constant MIDDLEBOX_NUMBER_5 in /home/harmony2/public_html/includes/templates/responsive_all_business/templates/tpl_middleboxes.php on line 20
[12-Apr-2016 16:06:18 Australia/Melbourne] PHP Warning: constant(): Couldn't find constant MIDDLEBOX_NUMBER_6 in /home/harmony2/public_html/includes/templates/responsive_all_business/templates/tpl_middleboxes.php on line 20
[12-Apr-2016 16:06:18 Australia/Melbourne] PHP Warning: constant(): Couldn't find constant MIDDLEBOX_NUMBER_7 in /home/harmony2/public_html/includes/templates/responsive_all_business/templates/tpl_middleboxes.php on line 20
[12-Apr-2016 16:06:18 Australia/Melbourne] PHP Warning: constant(): Couldn't find constant MIDDLEBOX_NUMBER_8 in /home/harmony2/public_html/includes/templates/responsive_all_business/templates/tpl_middleboxes.php on line 20
[12-Apr-2016 16:06:18 Australia/Melbourne] PHP Warning: constant(): Couldn't find constant MIDDLEBOX_NUMBER_9 in /home/harmony2/public_html/includes/templates/responsive_all_business/templates/tpl_middleboxes.php on line 20
[12-Apr-2016 16:06:18 Australia/Melbourne] PHP Warning: constant(): Couldn't find constant MIDDLEBOX_NUMBER_1 in /home/harmony2/public_html/includes/templates/responsive_all_business/templates/tpl_middleboxes.php on line 20
[12-Apr-2016 16:06:18 Australia/Melbourne] PHP Warning: constant(): Couldn't find constant MIDDLEBOX_NUMBER_2 in /home/harmony2/public_html/includes/templates/responsive_all_business/templates/tpl_middleboxes.php on line 20
[12-Apr-2016 16:06:18 Australia/Melbourne] PHP Warning: constant(): Couldn't find constant MIDDLEBOX_NUMBER_3 in /home/harmony2/public_html/includes/templates/responsive_all_business/templates/tpl_middleboxes.php on line 20
[12-Apr-2016 16:06:18 Australia/Melbourne] PHP Warning: constant(): Couldn't find constant MIDDLEBOX_NUMBER_4 in /home/harmony2/public_html/includes/templates/responsive_all_business/templates/tpl_middleboxes.php on line 20
[12-Apr-2016 16:06:18 Australia/Melbourne] PHP Warning: constant(): Couldn't find constant MIDDLEBOX_NUMBER_5 in /home/harmony2/public_html/includes/templates/responsive_all_business/templates/tpl_middleboxes.php on line 20
[12-Apr-2016 16:06:18 Australia/Melbourne] PHP Warning: constant(): Couldn't find constant MIDDLEBOX_NUMBER_6 in /home/harmony2/public_html/includes/templates/responsive_all_business/templates/tpl_middleboxes.php on line 20
[12-Apr-2016 16:06:18 Australia/Melbourne] PHP Warning: constant(): Couldn't find constant MIDDLEBOX_NUMBER_7 in /home/harmony2/public_html/includes/templates/responsive_all_business/templates/tpl_middleboxes.php on line 20
[12-Apr-2016 16:06:18 Australia/Melbourne] PHP Warning: constant(): Couldn't find constant MIDDLEBOX_NUMBER_8 in /home/harmony2/public_html/includes/templates/responsive_all_business/templates/tpl_middleboxes.php on line 20
[12-Apr-2016 16:06:18 Australia/Melbourne] PHP Warning: constant(): Couldn't find constant MIDDLEBOX_NUMBER_9 in /home/harmony2/public_html/includes/templates/responsive_all_business/templates/tpl_middleboxes.php on line 20

12 Apr 2016, 6:20 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: is there an easy way to empty 'logs' folder

Well at least it's telling you which PHP file is causing the trouble. maybe you should turn that middlebox off?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.