Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Beware of debug logger?? True or False??

    Not sure if this is the right place to post this, but I wanted to get opinions on this from the Zen Cart experts..

    I ran across this blog post: Beware of zencart debug logger!

    Which states:
    In the recent versions of Zencart (I think starting from 1.3.9h) you will find that includes/extra_configures/enable_error_logging.php exists by default. This file will turn on the debug switch and will put the logs into your /cache folder. The problem is that it also puts lots of WARNINGS and such inside this, and ZC does generate lots of those. Within a short amount of time (depending on the number of visitors you have and number of warnings etc), this folder will be flooded with log files and will more than likely lead to many performance issues and such.
    I recommend that you rename this to enable_error_logging.php.bak and only rename it backs when you want to check for an issue.
    Any truth to this?? Has this been the experience of others??
    Last edited by DivaVocals; 16 Feb 2012 at 05:19 PM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  2. #2
    Join Date
    Apr 2006
    Posts
    51
    Plugin Contributions
    0

    Default Re: Beware of zencart debug logger?? True or False??

    Yes! It's happening on everyone of my clients sites that use1.3.9h. On my own site it had over 10000 debug errors in the cache in just a few days.

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Beware of zencart debug logger?? True or False??

    You should not have any debug logs unless you have a problem to fix ...

    If you have a problem they need to be addressed until there are no more debug logs generated ...

    Should you get too many to open the /cache then rename it /cache_full and make a new /cache with proper write permissions and check the error messages and correct the issues ...

    Once fixed, delete the debug logs and the /cache to be clear of all debug logs if all is working correctly ...

    Trying to turn off the debug logs so they do not fill up the /cache is fool hardy as you are not fixing anything and you need to fix whatever is not working so that you do not get any debug logs ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Beware of zencart debug logger?? True or False??

    Quote Originally Posted by Ajeh View Post
    You should not have any debug logs unless you have a problem to fix ...

    If you have a problem they need to be addressed until there are no more debug logs generated ...

    Should you get too many to open the /cache then rename it /cache_full and make a new /cache with proper write permissions and check the error messages and correct the issues ...

    Once fixed, delete the debug logs and the /cache to be clear of all debug logs if all is working correctly ...

    Trying to turn off the debug logs so they do not fill up the /cache is fool hardy as you are not fixing anything and you need to fix whatever is not working so that you do not get any debug logs ...
    This was my thought as well when I read this.. Thanks for your insight..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  5. #5
    Join Date
    Apr 2006
    Posts
    51
    Plugin Contributions
    0

    Default Re: Beware of zencart debug logger?? True or False??

    I would fix it if I could figure out the problem but just loading my index page should not cause a send mail error but yet it does every single time it's loaded.

  6. #6
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Beware of zencart debug logger?? True or False??

    Quote Originally Posted by grneyes View Post
    I would fix it if I could figure out the problem but just loading my index page should not cause a send mail error but yet it does every single time it's loaded.
    Honestly you should start a new post about this to try and sort out the issues you are having (you might start with posting some DETAILS of the exact error messages you are getting)

    The intent of this topic wasn't to troubleshoot errors in the error log.. I wanted to get an opinion about the advice given in this article.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  7. #7
    Join Date
    Apr 2006
    Posts
    51
    Plugin Contributions
    0

    Default Re: Beware of zencart debug logger?? True or False??

    Quote Originally Posted by DivaVocals View Post
    Honestly you should start a new post about this to try and sort out the issues you are having (you might start with posting some DETAILS of the exact error messages you are getting)

    The intent of this topic wasn't to troubleshoot errors in the error log.. I wanted to get an opinion about the advice given in this article.
    I wasn't asking anyone to troubleshoot anything. No reason to be rude about it.

  8. #8
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Beware of zencart debug logger?? True or False??

    Quote Originally Posted by grneyes View Post
    I wasn't asking anyone to troubleshoot anything. No reason to be rude about it.
    Rude eh?? You read WAY MORE into my post and assigned sentiments to it I did NOT convey (or even mean).. Your accusation is rude... I merely suggested that IF you were seeking troubleshooting assistance (which your post seemed to feel like) that you should start a fresh post to get some help from the community.. 'tis all..
    Last edited by DivaVocals; 16 Feb 2012 at 06:32 PM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Beware of debug logger?? True or False??

    Quote Originally Posted by DivaVocals View Post
    I ran across this blog post: blog.rubikintegration.com/2012/02/04/beware-of-zencart-debug-logger

    Which states:
    In the recent versions of Zencart (I think starting from 1.3.9h) you will find that includes/extra_configures/enable_error_logging.php exists by default. This file will turn on the debug switch and will put the logs into your /cache folder. The problem is that it also puts lots of WARNINGS and such inside this, and ZC does generate lots of those. Within a short amount of time (depending on the number of visitors you have and number of warnings etc), this folder will be flooded with log files and will more than likely lead to many performance issues and such.
    I recommend that you rename this to enable_error_logging.php.bak and only rename it backs when you want to check for an issue.
    Any truth to this?? Has this been the experience of others??
    There's only a small bit of truth in those statements: yes the site's performance will slow down if there is a huge number of debug logs.

    BUT there will ONLY be debug logs if there are actual errors on the site. A default clean install of the current version of Zen Cart (ie: v1.5.0 as of today) does NOT trigger any debug logs.
    So, any problems that are showing in the logs are a result of sloppy coding on the part of whoever has been customizing the site or its addons.

    I suppose this merely exposes that the folks at rubikintegration have a lot of code problems :O
    .

    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.

  10. #10
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Beware of zencart debug logger?? True or False??

    Quote Originally Posted by grneyes View Post
    I would fix it if I could figure out the problem but just loading my index page should not cause a send mail error but yet it does every single time it's loaded.
    Quote Originally Posted by DivaVocals View Post
    Honestly you should start a new post about this to try and sort out the issues you are having (you might start with posting some DETAILS of the exact error messages you are getting)

    The intent of this topic wasn't to troubleshoot errors in the error log.. I wanted to get an opinion about the advice given in this article.
    And I would agree with DivaVocals: if you are reading this thread and have a lot of debug logs, it is best for you to start a separate thread to discuss your specific problems, including details from the most recent log entries. Be sure to review the FAQs for possible answers to your error messages before posting, as it may save you some time.
    .

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 12
    Last Post: 15 Dec 2013, 05:29 AM
  2. Cant change the value "true" and "False" everywhere!
    By smartboy in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 22 Nov 2010, 02:22 PM
  3. how do I SSL 'false' to SSL true
    By fauxtog in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 6 Sep 2006, 06:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR