Forums / Installing on a Linux/Unix Server / dir(includes/templates/classic/index) NO such file or directory. Stacktrace.

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

Views: 1,379

Results 1 to 5 of 5
3 Aug 2011, 5:17 PM
#1
tzre avatar

tzre

New Zenner

Join Date:
Jul 2011
Posts:
7
Plugin Contributions:
0

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:

[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 :

[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
3 Aug 2011, 6:13 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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 Aug 2011, 8:09 PM
#3
tzre avatar

tzre

New Zenner

Join Date:
Jul 2011
Posts:
7
Plugin Contributions:
0

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 ?

3 Aug 2011, 8:20 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.

3 Aug 2011, 8:32 PM
#5
tzre avatar

tzre

New Zenner

Join Date:
Jul 2011
Posts:
7
Plugin Contributions:
0

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

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