Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 35
  1. #21
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Support Thread: Report All Errors (Even Warnings)

    Probably need to apply this && to & fix: https://github.com/zencart/zencart/pull/1144/files
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  2. #22
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,472
    Plugin Contributions
    88

    Default Re: Support Thread: Report All Errors (Even Warnings)

    Thanks, DrByte! I've incorporated those changes and uploaded v2.0.3 of Report All Errors to the plugins.

  3. #23
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Support Thread: Report All Errors (Even Warnings)

    With && fix applied, there are still PHP Notices being shown when using the module.

    I guess I misunderstood about Notices being disabled as I can see in Configuration -> Logging it states:
    Do you want create debug-log files for all PHP errors, even warnings,

    Perhaps disabling Notices can be a feature in a future version?

  4. #24
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,472
    Plugin Contributions
    88

    Default Re: Support Thread: Report All Errors (Even Warnings)

    Quote Originally Posted by Website Rob View Post
    With && fix applied, there are still PHP Notices being shown when using the module.

    I guess I misunderstood about Notices being disabled as I can see in Configuration -> Logging it states:
    Do you want create debug-log files for all PHP errors, even warnings,

    Perhaps disabling Notices can be a feature in a future version?
    With the change, notices should (by default) not be logged when Report All Errors is disabled, with only Error and Warning type issues being logged. The (even warnings) addition in the plugin's name should, thus, just be ignored.

  5. #25
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Support Thread: Report All Errors (Even Warnings)

    I can confirm that when All Errors features are disabled, no PHP Notices are recorded / shown when the fix mentioned earlier by Dr. Byte has been applied.

    If you want the module other features they need to be manually enabled.

    Admin -> Configuration -> Logging
    Report All Errors (Admin)?
    Report All Errors (Store)?
    Report All Errors: Backtrace on Notice Errors?

    And that is when PHP Notices will also be recorded / shown.


    In continued testing I noticed something not mentioned in the module documentation. In v2.0.2 (v2.0.3 is not available as of today's date) I did not read anywhere that the module is enabled by default and will record / display only error(s). That was a pleasant surprize and exactly what I was looking for.

    Also, I know at one time it was possible for PHP to also state at what character in the line the error found. Not sure if that is possible anymore but be nice to have again.

  6. #26
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,472
    Plugin Contributions
    88

    Default Re: Support Thread: Report All Errors (Even Warnings)

    v2.0.3 is now available for download from the Plugins area.

  7. #27
    Join Date
    Nov 2017
    Location
    Athens, Georgia, USA
    Posts
    99
    Plugin Contributions
    0

    Default Re: Support Thread: Report All Errors (Even Warnings)

    Not sure if I missed it in the thread or not, but when I installed it, both my admin and live site were replaced with a page listing all the errors. Decent little heart attack there, until I disabled the actual php files (just added ~ at the end of them all), but I did save the generated log. Came back with close to 1000 undefined and already defined index and constants, plus a smattering of others. I saw the notice about the already defined ones, but what about all the undefined? My site WORKS... but that's still a LOT of errors that came up...

  8. #28
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,472
    Plugin Contributions
    88

    Default Re: Support Thread: Report All Errors (Even Warnings)

    Quote Originally Posted by Lordzoabar View Post
    Not sure if I missed it in the thread or not, but when I installed it, both my admin and live site were replaced with a page listing all the errors. Decent little heart attack there, until I disabled the actual php files (just added ~ at the end of them all), but I did save the generated log. Came back with close to 1000 undefined and already defined index and constants, plus a smattering of others. I saw the notice about the already defined ones, but what about all the undefined? My site WORKS... but that's still a LOT of errors that came up...
    What version of Zen Cart and PHP are you using?

    Report All Errors does, as you indicated, have a setting to "not report" those already-defined constants. Those issues are normally due to the way that Zen Cart handles cascading language files, e.g. the file /includes/languages/english.php gets loaded in addition to /includes/languages/YOUR_TEMPLATE/english.php. Those reports do not pose any current issue.

    The reports of undefined constants are, however, of concern. PHP 7.2's release indicates that the use of undefined constants is deprecated, and will result in an error in a future PHP version. That said, I'd focus my inspection on those reports!

  9. #29
    Join Date
    Nov 2017
    Location
    Athens, Georgia, USA
    Posts
    99
    Plugin Contributions
    0

    Default Re: Support Thread: Report All Errors (Even Warnings)

    Quote Originally Posted by lat9 View Post
    What version of Zen Cart and PHP are you using?
    Zen Cart 1.5.5d, and PHP 5.4.45

    I've broken down the main log file, into multiple, individual files based on which php file is in question, but the website has been around longer than I have been with the company, so there is a lot of stuff to shift through, and (unfortunately) there was never a "sandbox" version of the store set up to safely test any fixes in.

  10. #30
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,472
    Plugin Contributions
    88

    Default Re: Support Thread: Report All Errors (Even Warnings)

    Any reason the store is still on that oldy-moldy version of PHP?

    Creating a sandbox site is pretty easy; if you're interested, please start a new forum thread so we don't muddy-up this plugin's support thread.

 

 
Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Monthly Sales and Tax Summary Report [support thread]
    By skipwater in forum Addon Admin Tools
    Replies: 236
    Last Post: 1 Sep 2023, 03:51 AM
  2. v151 Sales Report with Graphs support thread
    By JacobBushnell in forum Addon Admin Tools
    Replies: 17
    Last Post: 25 Jul 2019, 02:27 PM
  3. v153 Linked Products Report [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 11
    Last Post: 11 Jun 2015, 09:52 PM
  4. Business Activity Report 1.5.0 Support Thread
    By gharls in forum All Other Contributions/Addons
    Replies: 23
    Last Post: 6 Apr 2012, 11:12 PM
  5. Admin Activity Report [support thread]
    By Steven300 in forum All Other Contributions/Addons
    Replies: 17
    Last Post: 6 Aug 2009, 12:47 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