
Originally Posted by
lat9
That's because there's not a tpl_pricelist_default.php file that's part of the distribution. Are you sure that you uploaded all the pertinent files into the proper directories?
I am also getting this same error / partial blank page on a local 1.5.4 installation when calling http://www.yourdomain.com/index.php?main_page=pricelist in the front end.
Yes, all files have been merged / uploaded as per instructions (and double-checked).
Swapped templates a few times and it is the same result on all templates.
Template Classic Green (default)
[16-Jul-2015 11:23:08 Australia/Brisbane] PHP Warning: require(includes/templates/template_default/templates/tpl_pricelist_default.php): failed to open stream: No such file or directory in /var/www/dispensary/includes/templates/template_default/common/tpl_main_page.php on line 122
[16-Jul-2015 11:23:08 Australia/Brisbane] PHP Fatal error: require(): Failed opening required 'includes/templates/template_default/templates/tpl_pricelist_default.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/dispensary/includes/templates/template_default/common/tpl_main_page.php on line 122
Template Bentley Classic
[16-Jul-2015 11:19:32 Australia/Brisbane] PHP Warning: require(includes/templates/template_default/templates/tpl_pricelist_default.php): failed to open stream: No such file or directory in /var/www/dispensary/includes/templates/bentley_classic/common/tpl_main_page.php on line 141
[16-Jul-2015 11:19:32 Australia/Brisbane] PHP Fatal error: require(): Failed opening required 'includes/templates/template_default/templates/tpl_pricelist_default.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/dispensary/includes/templates/bentley_classic/common/tpl_main_page.php on line 141
Template Responsive Sheffield Blue 2.0
[16-Jul-2015 11:23:37 Australia/Brisbane] PHP Warning: require(includes/templates/template_default/templates/tpl_pricelist_default.php): failed to open stream: No such file or directory in /var/www/dispensary/includes/templates/responsive_sheffield_blue/common/tpl_main_page.php on line 249
[16-Jul-2015 11:23:37 Australia/Brisbane] PHP Fatal error: require(): Failed opening required 'includes/templates/template_default/templates/tpl_pricelist_default.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/dispensary/includes/templates/responsive_sheffield_blue/common/tpl_main_page.php on line 249
Lines 122, 141 and 249 respectively in includes/templates/TEMPLATE_AS_PER_ABOVE/common/tpl_main_page.php are all calling for
PHP Code:
require($body_code);
Tracing $body_code in DTK, I am ending up at /includes/templates/template_default/common/main_template_vars.php
That reads
PHP Code:
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';
}
and that file
PHP Code:
DIR_WS_MODULES . 'pages/' . $current_page_base . '/main_template_vars.php'
does not exist in the package. Therefore ZC is looking for a corresponding template file and tries to call tpl_pricelist_default.php and that does not exist either, hence the error.
Please correct me if I am wrong.
Bookmarks