Page 4 of 10 FirstFirst ... 23456 ... LastLast
Results 31 to 40 of 95
  1. #31
    Join Date
    Aug 2007
    Posts
    277
    Plugin Contributions
    0

    Default Re: Display Log Files [Support Thread]

    Quote Originally Posted by lat9 View Post
    Exactly! The last update was missing that define. You'll need to edit /YOUR_ADMIN/includes/languages/english/display_logs.php and add the line that I've highlighted in red:
    Code:
    define('TABLE_HEADING_FILENAME', 'File Name');
    define('TABLE_HEADING_MODIFIED', 'Date Modified');
    define('TABLE_HEADING_FILESIZE', 'File Size (bytes)');  /*v1.0.3a*/
    define('TABLE_HEADING_DELETE', 'Delete?');
    define('TABLE_HEADING_ACTION', 'Action');
    Thank you very much. I found the file mentioned and inserted the code highlighted in red in Line 27 of that file and it fixed the problem. Many Thanks to you and the rest of the community as well.

  2. #32
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: Display Log Files [Support Thread]

    I'm about to submit v1.0.3 to the plugins' area:
    1. Added missing constant to /YOUR_ADMIN/includes/languages/english/display_logs.php.
    2. Modifications to /YOUR_ADMIN/display_logs.php to account for large files. The notifier_trace.log file, for instance, can grow to be enormous if not flushed periodically.
    3. BUGFIX: $dir variable close/unset was in the wrong place (/YOUR_ADMIN/display_logs.php).
    4. BUGFIX: Needed to convert htmlentities in the loaded file to ensure that any present don't disrupt the file display.

  3. #33
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Display Log Files [Support Thread]

    I like the convenience of this mod.
    But most times I don't check for errors until I know I have one, eg: blank screen
    So I have added a warning to the admin that notifies you if any log files exist.

    Quick and dirty file attached,
    It does need work to extract the language file parts and tidy up, but you will get the idea.

    It is a copy of
    YOUR_ADMIN\includes\init_includes\init_errors.php
    that has a check for log files added.

    Place it in the overrides directory
    YOUR_ADMIN\includes\init_includes\overrides\init_errors.php

    YES you can override some admin files!!
    nb: This is for zen v1.5.1
    Attached Files Attached Files
    Last edited by gilby; 16 Sep 2013 at 12:19 PM.

  4. #34
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Display Log Files [Support Thread]

    Quote Originally Posted by lat9 View Post
    I'm about to submit v1.0.3 to the plugins' area:
    1. Added missing constant to /YOUR_ADMIN/includes/languages/english/display_logs.php.
    Sorry for that, I never noticed it was missing. Must have added it somewhere else on my own system.

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

    Default Re: Display Log Files [Support Thread]

    How did I miss this handy little gem!!!??? Thanks lat9 and all for this.. I use a similar plugin for WordPress for debugging/error checking.. I have always wished something similar was available for Zen Cart..
    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.

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

    Default Re: Display Log Files [Support Thread]

    Quote Originally Posted by gilby View Post
    I like the convenience of this mod.
    But most times I don't check for errors until I know I have one, eg: blank screen
    So I have added a warning to the admin that notifies you if any log files exist.

    Quick and dirty file attached,
    It does need work to extract the language file parts and tidy up, but you will get the idea.

    It is a copy of
    YOUR_ADMIN\includes\init_includes\init_errors.php
    that has a check for log files added.

    Place it in the overrides directory
    YOUR_ADMIN\includes\init_includes\overrides\init_errors.php

    YES you can override some admin files!!
    nb: This is for zen v1.5.1
    Because you've never steered me wrong I just BLINDLY made this change.. However, this seems very similar to the code Torvista posted earlier in this thread.. If I am understanding this correctly, Torvista's code displays the error log directly in the message stack, and your code simply notifies the shopowner that an error log exists.. Am I correct???
    Last edited by DivaVocals; 16 Sep 2013 at 03:57 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.

  7. #37
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Display Log Files [Support Thread]

    Quote Originally Posted by DivaVocals View Post
    However, this seems very similar to the code Torvista posted earlier in this thread.. If I am understanding this correctly, Torvista's code displays the error log directly in the message stack, and your code simply notifies the shopowner that an error log exists.. Am I correct???
    Hmmm.. Looks like I have sort of re-invented the wheel
    I should have read the entire thread, seems I was in a hurry.
    Mine simply shows how many log files there are as an admin message stack warning.
    Torvista's shows the messages there instead.

    I will probably add Torvista's code as well to show the most recent error

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

    Default Re: Display Log Files [Support Thread]

    Quote Originally Posted by gilby View Post
    Hmmm.. Looks like I have sort of re-invented the wheel
    I should have read the entire thread, seems I was in a hurry.
    Mine simply shows how many log files there are as an admin message stack warning.
    Torvista's shows the messages there instead.

    I will probably add Torvista's code as well to show the most recent error
    Thanks for confirming.. I like Torvista's code, but given that this add-on shows the error log, I'm gonna keep just your code to inform me when there is an error log to see.. I don't think I need to see it twice..
    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. #39
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,571
    Plugin Contributions
    30

    Default Re: Display Log Files [Support Thread]

    This functionality (showing the existence of debug logs in the admin message stack) is included in 1.6, why not copy it from there and avoid an unnecessary upgrade merge.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  10. #40
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: Display Log Files [Support Thread]

    v1.0.3 is now available in the Plugins ...

 

 
Page 4 of 10 FirstFirst ... 23456 ... LastLast

Similar Threads

  1. v151 Log Manager [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 19 Oct 2023, 11:44 AM
  2. v155 Big Files support thread
    By swguy in forum Addon Admin Tools
    Replies: 6
    Last Post: 9 Nov 2021, 07:06 AM
  3. v156 PWA, Offline support Push notifications addon [Support Thread]
    By perfumbg in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 23 May 2019, 02:27 PM
  4. v155 WordPress Product Display Support Thread
    By swguy in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 13 Jul 2017, 12:04 AM
  5. v150 Admin Password Change Alert Message Display -- Support Thread
    By lat9 in forum All Other Contributions/Addons
    Replies: 13
    Last Post: 24 Dec 2015, 04:53 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