If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / Addon Admin Tools / Show Debug Files Automatically

Show Debug Files Automatically

Started by torvista on 18 Jun 2011, 5:35 PM · Views: 4,484

Results 21 to 24 of 24
19 Aug 2014, 11:03 AM
#21
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Post #21 by swguy

dbltoe:

Any thoughts on adding the paypal log files to this call out?

Doesn't make sense. Paypal logs are not necessarily indicative of a problem. Error logs are always indicative of a problem.

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.

23 Aug 2014, 7:19 AM
#22
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,908
Plugin Contributions:
23

Post #22 by dbltoe

Doesn't make sense. Paypal logs are not necessarily indicative of a problem.I don't want to make it seem like we are at odds here.
We would not have found a serious problem on one site without seeing a paypal log. We put a fake debug on the site for testing the admin notification. The customer reported no problems prior to the mod's installation. We were installing the display logs since the older sitemonitor was not doing the job for us. Imagine our surprise when our first click resulted in paypal errors. Yes, most were from invalid or incorrectly entered data. BUT, recent errors led us to discover that the customer's site had been blacklisted for spam and was blocked by AT&T, AOL, etc. Just the fact that the paypal transaction was passing through an AT&T router caused them to block the transaction from reaching PayPal. Thus the Error 28.
Does this happen a lot? Maybe not. Do we need to know about it immediately? I think so. Especially those on shared servers can be vulnerable to a block without knowing it has happened. A flag showing when they open the admin might get us involved before the situation gets too out of hand.
We'd just rather sift through a few to not miss the one important one. I hope someday to have the display also e-mail a notification to us so that we can stay on top of things for our customers.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

22 Jun 2019, 1:08 PM
#23
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Post #23 by simon1066

torvista:

// 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

22 Jun 2019, 3:12 PM
#24
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Post #24 by swguy

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.