Zen Cart Logo
Forums / Addon Admin Tools / Display Log Files [Support Thread] (v1.5.1-to-v1.5.6)

Display Log Files [Support Thread] (v1.5.1-to-v1.5.6)

Views: 22,771

Results 81 to 95 of 95
13 Jul 2017, 3:49 PM
#81
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

Display Log Files [Support Thread] (v1.5.1-to-v1.5.6)

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.

13 Jul 2017, 8:52 PM
#82
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: Display Log Files [Support Thread] (v1.5.1-to-v1.5.6)

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)?

13 Jul 2017, 8:58 PM
#83
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

Re: Display Log Files [Support Thread] (v1.5.1-to-v1.5.6)

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.

28 Aug 2017, 3:02 PM
#84
rayzermatic avatar

rayzermatic

New Zenner

Join Date:
Sep 2011
Posts:
11
Plugin Contributions:
0

Re: Display Log Files [Support Thread] (v1.5.1-to-v1.5.6)

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.

28 Aug 2017, 8:07 PM
#85
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: Display Log Files [Support Thread] (v1.5.1-to-v1.5.6)

rayzermatic:

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:

...

// -----
// 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"
    );
}

[B]/*-bof- Don't display the warning message[/B]
// -----
// 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');
    }
}
[B]   -eof-Don't display the warning message */[/B]
5 Sep 2019, 7:03 PM
#86
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: Display Log Files [Support Thread] (v1.5.1-to-v1.5.6)

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.

23 Jan 2020, 12:22 PM
#88
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: Display Log Files [Support Thread] (v1.5.1-to-v1.5.6)

I've just submitted v2.2.0 of Display Log Files to the Zen Cart moderators for review and will post back here once it's available for download.

This release contains changes associated with GitHub issue #14, recognizing that log-file names might now include a trailing error-severity suffix, aligning with Report All Errors, v3.1.0 (also just submitted).

1 Feb 2020, 4:43 PM
#89
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: Display Log Files [Support Thread] (v1.5.1-to-v1.5.6)

lat9:

I've just submitted v2.2.0 of Display Log Files to the Zen Cart moderators for review and will post back here once it's available for download.

This release contains changes associated with GitHub issue #14, recognizing that log-file names might now include a trailing error-severity suffix, aligning with Report All Errors, v3.1.0 (also just submitted).
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=1583

15 Mar 2021, 3:59 PM
#90
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Display Log Files [Support Thread] (v1.5.1-to-v1.5.6)

lat9:

Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=1583

Hello! I noticed your website says this plugin is obsolete:

https://vinosdefrutastropicales.com/index.php?main_page=product_info&cPath=2_3&products_id=21

but I cannot find this ability in my 157c Zen Cart. Thank you!

15 Mar 2021, 4:27 PM
#91
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,798
Plugin Contributions:
22

Re: Display Log Files [Support Thread] (v1.5.1-to-v1.5.6)

shrimp-gumbo-mmmhhh:

Hello! I noticed your website says this plugin is obsolete:

https://vinosdefrutastropicales.com/index.php?main_page=product_info&cPath=2_3&products_id=21

but I cannot find this ability in my 157c Zen Cart. Thank you!

admin->Modules->Plugin Manager and simply install the plugin.

My site - Pro ZC Help
My portfolio | My plugins

16 Mar 2021, 5:39 AM
#92
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Display Log Files [Support Thread] (v1.5.1-to-v1.5.6)

Wow! Wish there were more plugins there to choose from! Thank you!

25 Dec 2021, 5:29 PM
#93
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

Re: Display Log Files [Support Thread] (v1.5.1-to-v1.5.6)

How to admin > configuration > Maximum Values

Maximum Display Debug Log Files?
**

**

Cheers!
v2.2.1

25 Dec 2021, 5:55 PM
#94
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: Display Log Files [Support Thread] (v1.5.1-to-v1.5.6)

Webskipper:

How to admin > configuration > Maximum Values

Maximum Display Debug Log Files?

Configuration -> Logging -> Display Logs: Display Maximum

25 Dec 2021, 6:02 PM
#95
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

Re: Display Log Files [Support Thread] (v1.5.1-to-v1.5.6)

lat9:

Configuration -> Logging -> Display Logs: Display Maximum

Thanks.

Cheers!
v2.2.1