Results 1 to 10 of 24

Hybrid View

  1. #1
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,826
    Plugin Contributions
    31

    Default Re: Show Debug Files Automatically

    Have tried but can't seem to get this to work with 1.5.1
    This is what I have, using 1.51.
    PHP Code:

    // steve check for and display debug logs 
    $path str_replace(DIR_FS_CATALOG,'../',DIR_FS_LOGS).'/';
        
    $matches glob($path ."myDEBUG*.*");
        if (
    is_array($matches)) {
            foreach (
    $matches as $filename) {
            
    $messageStack->add('Debug log file exists: '.str_replace($path,DIR_FS_LOGS.'/',$filename),'warning');
            }
        } 
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  2. #2
    Join Date
    Dec 2010
    Location
    UK
    Posts
    1,771
    Plugin Contributions
    3

    Default Re: Show Debug Files Automatically

    Quote Originally Posted by torvista View Post
    This is what I have, using 1.51.
    PHP Code:

    // steve check for and display debug logs 
    $path str_replace(DIR_FS_CATALOG,'../',DIR_FS_LOGS).'/';
        
    $matches glob($path ."myDEBUG*.*");
        if (
    is_array($matches)) {
            foreach (
    $matches as $filename) {
            
    $messageStack->add('Debug log file exists: '.str_replace($path,DIR_FS_LOGS.'/',$filename),'warning');
            }
        } 
    Thank you I really appreciate that, I'll give that a go later.

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,873
    Plugin Contributions
    96

    Default Re: Show Debug Files Automatically

    Nice one, Steve! Thanks for sharing.

  4. #4
    Join Date
    Dec 2010
    Location
    UK
    Posts
    1,771
    Plugin Contributions
    3

    Default Re: Show Debug Files Automatically

    Yes thankyou again, works a treat and I think it compliments Lat9's handy mod too, thank you both.

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,873
    Plugin Contributions
    96

    Default Re: Show Debug Files Automatically

    I just noticed, looking through the Zen Cart github repository, that this feature is slated for inclusion in the Zen Cart v1.6.0 admin!

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

    Default Re: Show Debug Files Automatically

    I thought it rather handy to know this info on files in the /cache and /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!]
    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!

  7. #7
    Join Date
    Jul 2009
    Posts
    402
    Plugin Contributions
    0

    Default Re: Show Debug Files Automatically

    Hi,
    I was looking exactly for this feature since I am one of those that venture in modding files and then have the logs directory filling up....
    I have added the code to header.php and the defne for the logs dir in the configures.php files, but no way to see the message coming up in the admin.
    Can someone tell me what to look for?
    Thanks
    enzo

  8. #8
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,303
    Plugin Contributions
    1

    Default Re: Show Debug Files Automatically

    Quote Originally Posted by torvista View Post
    PHP Code:

    // steve check for and display debug logs 
    $path str_replace(DIR_FS_CATALOG,'../',DIR_FS_LOGS).'/';
        
    $matches glob($path ."myDEBUG*.*");
        if (
    is_array($matches)) {
            foreach (
    $matches as $filename) {
            
    $messageStack->add('Debug log file exists: '.str_replace($path,DIR_FS_LOGS.'/',$filename),'warning');
            }
        } 
    Having lost these lines from 2012 (v1.51) in a recent v1.56b upgrade, I revisited this thread to grab them again - still works well.

    I see that there was mention in this thread of this feature being included in v1.60. I wondered, as I can't find it in v1.56, is it due for inclusion in v1.57 or has it been decided against?
    Simon

  9. #9
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: Show Debug Files Automatically

    1.5.7 is brand new and the decision to backport some features was just made. I suspect this one will be included, but you'll need to wait and see.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. v1.51 Clean Up Debug Log Files
    By haredo in forum Code Collaboration
    Replies: 2
    Last Post: 27 Nov 2013, 12:15 AM
  2. Debug files filling up my Cache on Zen 139H
    By tbokich in forum General Questions
    Replies: 2
    Last Post: 28 Apr 2011, 07:09 AM
  3. Debug utility not writing log files
    By zhamid in forum General Questions
    Replies: 1
    Last Post: 4 Jul 2009, 02:44 PM
  4. AIM debug files in cache folder
    By earmsby in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 31 Dec 2007, 07:43 PM

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