Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default myDEBUG: 3 identical files yesterday

    I do not have any documented code changes over the past week other than update the USPS shipping to K5 this morning, I haven't a clue where to start.

    Any ideas or suggestions?

    I did look at the raw server logs and the timestamp for the 3 logfiles matched (within a 3 minute timeframe) when

    UK-ResearchInMotion Blackberry IP 93.186.30.240 was hitting the server 8-10 times per second

    Code:
    [06-Sep-2014 08:50:27 America/Los_Angeles] #1  strstr() called at [/home/chainwea/public_html/includes/functions/functions_lookups.php:712]
    #2  zen_run_normal() called at [/home/chainwea/public_html/includes/modules/westminster_new/product_listing.php:34]
    #3  include(/home/chainwea/public_html/includes/modules/westminster_new/product_listing.php) called at [/home/chainwea/public_html/includes/templates/westminster_new/templates/tpl_modules_product_listing.php:14]
    #4  require(/home/chainwea/public_html/includes/templates/westminster_new/templates/tpl_modules_product_listing.php) called at [/home/chainwea/public_html/includes/templates/westminster_new/templates/tpl_index_product_list.php:100]
    #5  require(/home/chainwea/public_html/includes/templates/westminster_new/templates/tpl_index_product_list.php) called at [/home/chainwea/public_html/includes/modules/pages/index/main_template_vars.php:219]
    #6  require(/home/chainwea/public_html/includes/modules/pages/index/main_template_vars.php) called at [/home/chainwea/public_html/includes/templates/westminster_new/common/tpl_main_page.php:253]
    #7  require(/home/chainwea/public_html/includes/templates/westminster_new/common/tpl_main_page.php) called at [/home/chainwea/public_html/index.php:97]
    
    [06-Sep-2014 08:50:27 America/Los_Angeles] PHP Warning:  strstr(): Empty needle in /home/chainwea/public_html/includes/functions/functions_lookups.php on line 712
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,892
    Plugin Contributions
    96

    Default Re: myDEBUG: 3 identical files yesterday

    Hmm, that's the following (highlighted) line in /includes/functions/functions_lookups.php:
    Code:
      function zen_run_normal() {
        $zc_run = false;
        switch (true) {
          case (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])):
          // down for maintenance not for ADMIN
            $zc_run = true;
            break;
    The PHP warning is that the $_SERVER['REMOTE_ADDR'] portion is null/empty. While it shouldn't be empty, if you've got someone pounding on your site it's quite possible that they've got a mechanism to obfuscate that value. A possible solution for this case would be to change the line to read:
    Code:
          case (!empty ($_SERVER['REMOTE_ADDR']) && strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])):
    The strstr case in the functions_lookups module is the tip of the proverbial iceberg; using the DTK in a v1.5.3 test site's admin to search for $_SESSION['REMOTE_ADDR'] yields 55 matches, most of them similar to the function's usage.
    Last edited by lat9; 7 Sep 2014 at 07:12 PM. Reason: Added solution

  3. #3
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,828
    Plugin Contributions
    31

    Default Re: myDEBUG: 3 identical files yesterday

    I also had this debug error yesterday.
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: myDEBUG: 3 identical files yesterday

    Just to close the loop, lest people read this down the road and think they need to do the same, this is fixed in v1.6.0, albeit somewhat differently, by making sure the IP is never blank in the first place.
    .

    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.

 

 

Similar Threads

  1. v153 Multiple myDEBUG files, similar errors
    By RixStix in forum Bug Reports
    Replies: 26
    Last Post: 21 Aug 2014, 08:22 AM
  2. Replies: 4
    Last Post: 19 Jan 2013, 05:47 AM
  3. Thousands of MyDebug files!
    By jgold723 in forum General Questions
    Replies: 7
    Last Post: 22 Nov 2011, 09:21 PM
  4. myDEBUG log files in cache folder
    By Athens Collectibles in forum General Questions
    Replies: 2
    Last Post: 26 Jun 2011, 11:04 AM
  5. Identical EZ page headers
    By Mojetto in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 21 Dec 2008, 06:11 PM

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