If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / Cache logging files.

Cache logging files.

Started by snaggle on 11 May 2012, 7:57 AM · Views: 2,130

Results 1 to 11 of 11
11 May 2012, 7:57 AM
#1
snaggle avatar

snaggle

Zen Follower

Join Date:
Jun 2011
Posts:
113
Plugin Contributions:
0

Cache logging files.

Hello I really need some assistance
Something in my zen cart is logging files into my cash flder.

It is logging hundreds of files by this kind of name.

myDEBUG-1336693125-320257.log

it is crazy how many files this is logging could someone let me know how to stop this?

thank you or at least lessen the file logged over time

11 May 2012, 8:36 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Cache logging files.

Those are recording PHP errors which are happening on your site.
You can stop the by fixing the PHP errors which they're recording inside them.

See: http://www.zen-cart.com/content.php?124-blank-page

.
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.

11 May 2012, 8:53 AM
#3
snaggle avatar

snaggle

Zen Follower

Join Date:
Jun 2011
Posts:
113
Plugin Contributions:
0

Re: Cache logging files.

DrByte:

Those are recording PHP errors which are happening on your site.
You can stop the by fixing the PHP errors which they're recording inside them.

See: http://www.zen-cart.com/content.php?124-blank-page

thank ou for your answre but I do not quite undrstand what all that mean.

I loaded my site once and 5 of these files generated.

all say the same thing in the file

[11-May-2012 09:46:19] PHP Warning: session_save_path(): open_basedir restriction in effect. File(/home/content/01/7784001/html/snagglessharkteeth/cache) is not within the allowed path(s): (/var/www/vhosts/www.snagssharkteeth.com/httpdocs/:/tmp/) in /var/www/vhosts/www.snagssharkteeth.com/httpdocs/includes/functions/sessions.php on line 168

What should I do?
thank you

11 May 2012, 12:50 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: Cache logging files.

Evidently your site was on another server at some point, and hasn't been updated for the new server's folder structure.

You need to go to Admin->Configuration->Sessions->Session Directory and change the existing value from:
/home/content/01/7784001/html/snagglessharkteeth/cache
to this instead:
/var/www/vhosts/www.snagssharkteeth.com/httpdocs/cache

Or if you can't login to your admin for some reason, then use this addon utility to do it for you: http://www.zen-cart.com/downloads.php?do=file&id=8 Be sure to delete the file from your server when you're done.

And you can delete old myDEBUG-xxxxxxx.log files from your server. Any new myDebug-xxxx.log files that are generated should be viewed and dealt with, and then deleted.

.
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.

11 May 2012, 11:38 PM
#5
snaggle avatar

snaggle

Zen Follower

Join Date:
Jun 2011
Posts:
113
Plugin Contributions:
0

Re: Cache logging files.

DrByte:

Evidently your site was on another server at some point, and hasn't been updated for the new server's folder structure.

You need to go to Admin->Configuration->Sessions->Session Directory and change the existing value from:
/home/content/01/7784001/html/snagglessharkteeth/cache
to this instead:
/var/www/vhosts/www.snagssharkteeth.com/httpdocs/cache

Or if you can't login to your admin for some reason, then use this addon utility to do it for you: http://www.zen-cart.com/downloads.php?do=file&id=8 Be sure to delete the file from your server when you're done.

And you can delete old myDEBUG-xxxxxxx.log files from your server. Any new myDebug-xxxx.log files that are generated should be viewed and dealt with, and then deleted.

Thank you so much for our help

which file do I delete from the server?

"Be sure to delete the file from your server when you're done."

than you so much

12 May 2012, 12:06 AM
#6
drbyte avatar

drbyte

Sensei

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

Re: Cache logging files.

I was referring to the fix_cache_key.php file, if you were to use the addon I was mentioning. If you didn't use it or upload it, then there's nothing to delete.

.
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 May 2012, 12:27 AM
#7
snaggle avatar

snaggle

Zen Follower

Join Date:
Jun 2011
Posts:
113
Plugin Contributions:
0

Re: Cache logging files.

Thank you Dr Byte
That cache file was was very problematic

I did not use the addon just updates the lin session

thank you so much

14 Jul 2012, 2:49 AM
#8
snaggle avatar

snaggle

Zen Follower

Join Date:
Jun 2011
Posts:
113
Plugin Contributions:
0

Re: Cache logging files.

Hello once again Dr Byte.
My cache folder is filling up with debug files again
I added the previous line you told me to but since than I have had a friend add his web sites to my server also.

should I change this line/ alter it?
if so what too?

thank you

16 Jul 2012, 1:44 AM
#9
drbyte avatar

drbyte

Sensei

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

Re: Cache logging files.

Filling up with WHAT?

.
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.

16 Jul 2012, 2:11 AM
#10
snaggle avatar

snaggle

Zen Follower

Join Date:
Jun 2011
Posts:
113
Plugin Contributions:
0

Re: Cache logging files.

It is fixed now.
I changed the server path or dommain which had a www., I removed this thus I was in need to modify the original path that you initially instructed me to modify.

It was logging with debug notepad files again

but since the re-modification the cach file is now normal again

16 Jul 2012, 2:16 AM
#11
drbyte avatar

drbyte

Sensei

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

Re: Cache logging files.

Good. Thanks for confirming that once you took care of the errors you created, the debug logs stopped generating, as expected.

.
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.