Results 1 to 10 of 24

Hybrid View

  1. #1
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: Show Debug Files Automatically

    Cheers Steve, I have been looking at writing something similar, but that suits my needs perfectly
    Webzings Design
    Semi retired from Web Design

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

    Default Re: Show Debug Files Automatically

    Have tried but can't seem to get this to work with 1.5.1
    Any hints or solutions welcome please.

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Show Debug Files Automatically

    Debug log files now go in the /logs/ folder instead of the /cache/ folder.

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

    Default Re: Show Debug Files Automatically

    Quote Originally Posted by gjh42 View Post
    Debug log files now go in the /logs/ folder instead of the /cache/ folder.
    Thank you Glenn but where would I edit the above to point to the correct path, logs rather than cache?

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

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

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,871
    Plugin Contributions
    96

    Default Re: Show Debug Files Automatically

    Nice one, Steve! Thanks for sharing.

  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