Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2011
    Posts
    7
    Plugin Contributions
    0

    help question dir(includes/templates/classic/index) NO such file or directory. Stacktrace.

    Hi,

    doing a fresh install of 1.3.9h on unix (same works ok on windows).

    Installation is successful without any problem, but when i load the frontend i get a huge myDebug...log in /cache/ on each page request. (page appears to load/appear fine in the browser).


    Extract from myDebug:

    Code:
    [03-Aug-2011 20:46:19] PHP Warning:  dir(includes/templates/classic/index) [<a href='function.dir'>function.dir</a>]: failed to open dir: No such file or directory in /path/www.mydomain.com/includes/classes/template_func.php on line 58
    [03-Aug-2011 20:46:19] PHP Stack trace:
    [03-Aug-2011 20:46:19] PHP   1. {main}() /path/www.mydomain.com/index.php:0
    [03-Aug-2011 20:46:19] PHP   2. require() /path/www.mydomain.com/index.php:97
    [03-Aug-2011 20:46:19] PHP   3. require() /path/www.mydomain.com/includes/templates/template_default/common/tpl_main_page.php:92
    [03-Aug-2011 20:46:19] PHP   4. require() /path/www.mydomain.com/includes/modules/column_left.php:31
    [03-Aug-2011 20:46:19] PHP   5. template_func->get_template_dir($template_code = 'tpl_box_default_left.php', $current_template = 'includes/templates/classic/', $current_page = 'index', $template_dir = 'common', $debug = *uninitialized*) /path/www.mydomain.com/includes/modules/sideboxes/banner_box.php:30
    [03-Aug-2011 20:46:19] PHP   6. template_func->file_exists($file_dir = 'includes/templates/classic/index', $file_pattern = 'tpl_box_default_left.php', $debug = *uninitialized*) /path/www.mydomain.com/includes/classes/template_func.php:44
    [03-Aug-2011 20:46:19] PHP   7. dir('includes/templates/classic/index') /path/www.mydomain.com/includes/classes/template_func.php:58

    Its full of stuff like this all requesting includes/templates/classic/index which does not exist.

    Ive tried to set all filed to 777 but it didnt have any effect.


    More :
    Code:
    [03-Aug-2011 20:46:19] PHP Warning:  dir(includes/templates/classic/index) [<a href='function.dir'>function.dir</a>]: failed to open dir: No such file or directory in /path/www.mydomain.com/includes/classes/template_func.php on line 58
    [03-Aug-2011 20:46:19] PHP Stack trace:
    [03-Aug-2011 20:46:19] PHP   1. {main}() /path/www.mydomain.com/index.php:0
    [03-Aug-2011 20:46:19] PHP   2. require() /path/www.mydomain.com/index.php:97
    [03-Aug-2011 20:46:19] PHP   3. require() /path/www.mydomain.com/includes/templates/template_default/common/tpl_main_page.php:122
    [03-Aug-2011 20:46:19] PHP   4. template_func->get_template_dir($template_code = 'tpl_index_default.php', $current_template = 'includes/templates/classic/', $current_page = 'index', $template_dir = 'templates', $debug = *uninitialized*) /path/www.mydomain.com/includes/modules/pages/index/main_template_vars.php:217
    [03-Aug-2011 20:46:19] PHP   5. template_func->file_exists($file_dir = 'includes/templates/classic/index', $file_pattern = 'tpl_index_default.php', $debug = *uninitialized*) /path/www.mydomain.com/includes/classes/template_func.php:44
    [03-Aug-2011 20:46:19] PHP   6. dir('includes/templates/classic/index') /path/www.mydomain.com/includes/classes/template_func.php:58
    Last edited by tzre; 3 Aug 2011 at 06:23 PM.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: dir(includes/templates/classic/index) NO such file or directory. Stacktrace.

    You're only seeing that because you've got debug addon tools enabled which show "warning" details with stacktraces.

    The code is simply looking for whether that folder exists and will take action if it finds something there. In your case since you're not using any of the override capability it's moot, and you can safely ignore those warnings.
    .

    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.

  3. #3
    Join Date
    Jul 2011
    Posts
    7
    Plugin Contributions
    0

    Default Re: dir(includes/templates/classic/index) NO such file or directory. Stacktrace.

    Ok, so does this mean that when there will be a real problem it will be buried in a 4000 line warning log, or it will show up normally into apache_error_log ?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: dir(includes/templates/classic/index) NO such file or directory. Stacktrace.

    What you're seeing is NOT normal. It's a consequence of YOUR php configuration.
    NONE of those errors would appear if you weren't using the extra stacktrace tool you've got installed in your PHP configuration.

    If you don't like the logs being generated, you can turn them off by deleting the /includes/extra_configures/enable_error_logging.php file from your site.

    The errors are suppressed by an @ prefix anyway, so you shouldn't be seeing any of them.
    .

    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.

  5. #5
    Join Date
    Jul 2011
    Posts
    7
    Plugin Contributions
    0

    Default Re: dir(includes/templates/classic/index) NO such file or directory. Stacktrace.

    Right, @dir, roger! Panic time over, thank you doctor!

 

 

Similar Threads

  1. require(includes/index_filters/default): No such file or directory
    By bluefirefly in forum General Questions
    Replies: 2
    Last Post: 17 Sep 2009, 03:14 AM
  2. /includes/languages/spanish/modules/payment/paypal.php: no such file or directory
    By thosecars82 in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 2 Oct 2008, 06:45 PM
  3. Replies: 6
    Last Post: 23 Oct 2007, 06:28 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