Results 1 to 3 of 3
  1. #1
    Join Date
    May 2010
    Location
    Athens, Greece
    Posts
    299
    Plugin Contributions
    0

    help question myDEBUG log files in cache folder

    Good day,

    Could somebody please explain why log files named myDEBUG-999999-999999.log keep accumulating in my cache folder? Their content is:

    [17-Jun-2011 18:16:21] PHP Fatal error: Call to a member function buildTree() on a non-object in /home3/MYUSER_ID/public_html/includes/templates/MY_TEMPLATE/templates/tpl_page_not_found_default.php on line 27

    (bolded blue characters masking real names)
    Line 27 referred in the error message is:

    Code:
    <div><?php echo $zen_SiteMapTree->buildTree(); ?>
    My Zen Cart version is 1.3.9h and the URL is Athens Collectibles if that helps.

    Any assistance will be much appreciated. Many thanks in advance.

  2. #2
    Join Date
    Jan 2004
    Posts
    59,767
    Blog Entries
    4
    Plugin Contributions
    133

    Default Re: myDEBUG log files in cache folder

    Those files are generated anytime a PHP error occurs in your ZC files. Evidently something's not working correctly when your custom page-not-found template is loaded.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  3. #3
    Join Date
    May 2010
    Location
    Athens, Greece
    Posts
    299
    Plugin Contributions
    0

    Default Re: myDEBUG log files in cache folder

    Thank you DrByte, I really appreciate the very prompt reply

    I had read previous postings about these files before starting this thread. I was actually hoping to get some guidance on where to look for correcting this error.

    Being an old stubborn donkey and not accepting defeat, I played around and came to a solution which seems to work: I deleted everything from line 27 to the end of the file and here is what it's left of it:

    PHP Code:
    <?php
    /**
     * Page Template
     *
     * Displays page-not-found message and site-map (if configured)
     *
     * @package templateSystem
     * @copyright Copyright 2003-2005 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_page_not_found_default.php 3230 2006-03-20 23:21:29Z drbyte $
     */
    ?>
    <div class="centerColumn" id="pageNotFound">
    <h1 id="pageNotFoundHeading"><?php echo HEADING_TITLE?></h1>

    <?php if (DEFINE_PAGE_NOT_FOUND_STATUS == '1') { ?>
    <div id="pageNotFoundMainContent" class="content">
    <?php
    /**
     * require the html_define for the page_not_found page
     */
      
    require($define_page); ?>
    </div>
    <?php ?>
    I repeatedly triggered my custom "Page not found" in English and Greek and it is rendered correctly without log files being produced. I'm quite happy now.

    I know that it's not correct to change core files, but I keep a list of those I have edited and will find my way around when there is a new release.

    Just a last question please: some php files have an intended blank line at the end. I don't know the reason, but should I insert a blank line at the end of the tpl_page_not_found_default.php after my changes?

    Thanks again and have a nice day.

 

 

Similar Threads

  1. Can't find /cache/myDEBUG-xxxxxxx.log
    By doktorfroyd in forum General Questions
    Replies: 3
    Last Post: 21 Jan 2011, 07:29 PM
  2. Cache folder contains too many files to let us open it
    By dealbyethan.com in forum General Questions
    Replies: 14
    Last Post: 6 Jul 2010, 12:29 PM
  3. query_selects_xxxxx.log files in Cache folder
    By Ishikawa91 in forum General Questions
    Replies: 10
    Last Post: 22 May 2010, 07:29 AM
  4. Strange Files in /Cache Folder
    By limelites in forum General Questions
    Replies: 1
    Last Post: 19 Apr 2009, 12:34 PM
  5. Replies: 1
    Last Post: 26 Jun 2007, 05:06 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
  •