Zen Cart Logo
Forums / Managing Customers and Orders / Customer history order not showing

Customer history order not showing

Locked

Views: 3,464

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
4 Mar 2010, 1:54 AM
#1
icikite avatar

icikite

New Zenner

Join Date:
Mar 2009
Posts:
69
Plugin Contributions:
0

Customer history order not showing

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.

4 Mar 2010, 5:46 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Customer history order not showing

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.

4 Mar 2010, 12:29 PM
#3
icikite avatar

icikite

New Zenner

Join Date:
Mar 2009
Posts:
69
Plugin Contributions:
0

Re: Customer history order not showing

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.

4 Mar 2010, 3:34 PM
#4
icikite avatar

icikite

New Zenner

Join Date:
Mar 2009
Posts:
69
Plugin Contributions:
0

Re: Customer history order not showing

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...:hug::hug: