When a customer want to check there orders none are showing. I did a debug . The result is an error in common_tl_main_page.php at line 122
122 require($body_code)
Anybody have an idea of the problem?
Thank very much.
When a customer want to check there orders none are showing. I did a debug . The result is an error in common_tl_main_page.php at line 122
122 require($body_code)
Anybody have an idea of the problem?
Thank very much.
If it's failing on "require($body_code)" then you've likely got something broken in the files that build the value of $body_code, which suggests you've got one or more addons or custom coding that has broken something in the original code, or you've got a bad upload of files.
Or, it could be that the filename that $body_code is supposed to name, doesn't exist.
But, since you failed to not post the ACTUAL error message, all we can do is tell you to go fix whatever you broke, or to read the error message more clearly, perhaps out loud this time instead of keeping it a secret.
.
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.
Thank for answer me. Yes I should put more info. Here are the information please help me (I have a hard time with PHP)
Error:
[03-Mar-2010 14:54:16] PHP Warning: require(includes/templates/template_default/templates/tpl_account_history_info_default.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/converti/public_html/estore/includes/templates/template_default/common/tpl_main_page.php on line 122
[03-Mar-2010 14:54:16] PHP Warning: require(includes/templates/template_default/templates/tpl_account_history_info_default.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/converti/public_html/estore/includes/templates/template_default/common/tpl_main_page.php on line 122
[03-Mar-2010 14:54:16] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/templates/template_default/templates/tpl_account_history_info_default.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/converti/public_html/estore/includes/templates/template_default/common/tpl_main_page.php on line 122
Code found on line 122: require($body_code); ?>
Code found with Tools: main_template_vars (in Common)
if (file_exists(DIR_WS_MODULES . 'pages/' . $current_page_base . '/main_template_vars.php')) {
$body_code = DIR_WS_MODULES . 'pages/' . $current_page_base . '/main_template_vars.php';
} else {
$body_code = $template->get_template_dir('tpl_' . preg_replace('/.php/', '',$_GET['main_page']) . '_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_' . $_GET['main_page'] . '_default.php';
}
Thanks.
Resolve: includes/templates/template_default/templates/tpl_account_history_info_default.ph was missing.
Thanks Dr,Byte you put me on the correct track. A big hug...![]()