Page 9 of 9 FirstFirst ... 789
Results 81 to 87 of 87
  1. #81
    Join Date
    May 2005
    Location
    England
    Posts
    563
    Plugin Contributions
    0

    Default Re: Display Log Files [Support Thread]

    Hello there,

    Thanks for that, I got the following:-

    The current error-log file is /home/*****/logs/thegemtree_com.php.error.log.
    The current error log is not set correctly, it should be /home/******/public_html/logs/myDEBUG-1499960758-270099.log; retrying ....
    Reset error_log to /home/*****/logs/*****_com.php.error.log

    I think I need to change 'doc_root' with the hosts. The zencart logs folder is at /public_html/logs so I think that must be the issue.

  2. #82
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    8,956
    Plugin Contributions
    71

    Default Re: Display Log Files [Support Thread]

    Look in your /includes/configure.php and /YOUR_ADMIN/includes/configure.php files; what is your setting for DIR_FS_CATALOG (for v1.5.5+) or DIR_FS_LOGS (for ZC versions < 1.5.5)?

  3. #83
    Join Date
    May 2005
    Location
    England
    Posts
    563
    Plugin Contributions
    0

    Default Re: Display Log Files [Support Thread]

    For includes configure I have:-

    // define('DIR_FS_LOGS' ...
    define('DIR_FS_CATALOG', '/home/*****/public_html/');
    For the first bit, it says no need to change, but some sites may need to alter. So perhaps mine falls into the minority since php7 change and needs setting

    For admin version of configure I have the same as above.

  4. #84
    Join Date
    Sep 2011
    Posts
    9
    Plugin Contributions
    0

    Default Re: Display Log Files [Support Thread]

    Is there a way to turn off the "Display Log File" heading on the main admin page? i.e. " 323 debug-log files exist, click here to view."
    I run zencarts for customers and this freaks them out and I don't want to have them just start clicking around. I have put the fear of TODD into them to just not mess with any of the links east of "Reports" on the nav ribbon. So having the "Display Log Files" in the tools link is enough for me. I will begin to look there as one of the first things I do when working on someones site.

    Thanks.

  5. #85
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    8,956
    Plugin Contributions
    71

    Default Re: Display Log Files [Support Thread]

    Quote Originally Posted by rayzermatic View Post
    Is there a way to turn off the "Display Log File" heading on the main admin page? i.e. " 323 debug-log files exist, click here to view."
    I run zencarts for customers and this freaks them out and I don't want to have them just start clicking around. I have put the fear of TODD into them to just not mess with any of the links east of "Reports" on the nav ribbon. So having the "Display Log Files" in the tools link is enough for me. I will begin to look there as one of the first things I do when working on someones site.

    Thanks.
    Not currently without a coding change (I'll add this as a change-request in the plugin's GitHub repository).

    For now, you can edit the file /YOUR_ADMIN/includes/init_includes/init_display_logs.php to comment out that section for your purposes:
    Code:
    ...
    
    // -----
    // If the current plugin version is different from that recorded in the database, update the database!
    //
    if (DISPLAY_LOGS_VERSION != DISPLAY_LOGS_CURRENT_VERSION) {
        $db->Execute(
            "UPDATE " . TABLE_CONFIGURATION . "
                SET configuration_value = '" . DISPLAY_LOGS_CURRENT_VERSION . "'
              WHERE configuration_key = 'DISPLAY_LOGS_VERSION'
              LIMIT 1"
        );
    }
    
    /*-bof- Don't display the warning message
    // -----
    // Check to see if there are any debug-logs present and, if so, notify the current admin via header message ... unless the admin is already on the display logs page.
    //
    if ($current_page != FILENAME_DISPLAY_LOGS . '.php') {
        $path = (defined('DIR_FS_LOGS')) ? DIR_FS_LOGS : DIR_FS_SQL_CACHE;
        $log_files = glob($path . '/myDEBUG-*.log');
        $num_log_files = ($log_files === false) ? 0 : count ($log_files);
        unset ($log_files);
        if ($num_log_files > 0) {
            $messageStack->add(sprintf(DISPLAY_LOGS_MESSAGE_LOGS_PRESENT, $num_log_files, zen_href_link(FILENAME_DISPLAY_LOGS)), 'caution');
        }
    }
       -eof-Don't display the warning message */

  6. #86
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    8,956
    Plugin Contributions
    71

    Default Re: Display Log Files [Support Thread]

    I've just submitted v2.1.2 of "Display Log Files" for moderator review and will post back here when it's available for download.

    This version corrects an integration issue with zc156+, where the logfile names were slightly changed ... causing the "Display debug-logs only?" checkbox feature to no longer work.

  7. #87
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    8,956
    Plugin Contributions
    71

    Default Re: Display Log Files [Support Thread]


 

 
Page 9 of 9 FirstFirst ... 789

Similar Threads

  1. Hebrew Support - new release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 12
    Last Post: 9 Oct 2019, 09:32 PM
  2. BackUp ZC [Support Thread]
    By skipwater in forum All Other Contributions/Addons
    Replies: 282
    Last Post: 20 May 2016, 02:19 PM
  3. 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
  4. goMobile Support Thread
    By steveyork136 in forum Addon Templates
    Replies: 29
    Last Post: 26 Aug 2015, 11:56 AM

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