Most excellent! I'm glad that it's now working the way you want.
Printable View
[09-Apr-2015 20:51:45 UTC] PHP Warning: require(includes/templates/template_default/templates/tpl_pricelist_default.php): failed to open stream: No such file or directory in E:\xampp\htdocs\zencart\kwmagic\includes\templates\evoluzion\common\tpl_main_pag e.php on line 117
[09-Apr-2015 20:51:45 UTC] PHP Fatal error: require(): Failed opening required 'includes/templates/template_default/templates/tpl_pricelist_default.php' (include_path='.;E:\xampp\php\PEAR') in E:\xampp\htdocs\zencart\kwmagic\includes\templates\evoluzion\common\tpl_main_pag e.php on line 117
after install I am getting this
I found no tpl_pricelist_default.php
Please help.Thanks in advance
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)
Quote:
[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
Template Responsive Sheffield Blue 2.0Quote:
[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
Lines 122, 141 and 249 respectively in includes/templates/TEMPLATE_AS_PER_ABOVE/common/tpl_main_page.php are all calling forQuote:
[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
Tracing $body_code in DTK, I am ending up at /includes/templates/template_default/common/main_template_vars.phpPHP Code:
require($body_code);
That reads
and that filePHP 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';
}
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.PHP Code:
DIR_WS_MODULES . 'pages/' . $current_page_base . '/main_template_vars.php'
Please correct me if I am wrong.
The pricelist page's processing is similar to the popup-type pages, so the tpl_main_page.php file should be loaded from /includes/templates/template_default/pricelist/tpl_main_page.php ... not from /includes/templates/{current_template}/common/tpl_main_page.php (which is where the tpl_{current_page_base}_default.php file's load is determined).
That determination happens pretty early in a ZC page-load, handled by /index.php's processing. That said, I'm puzzled by the fact that the page-load is going down the "common" directory processing given that the plugin's files have been uploaded to the proper directories.
FWIW, I just installed and ran the plugin in a (relatively) vanilla ZC 1.5.3 installation and it ran without issue. The /index.php file hasn't changed since dinosaurs roamed the earth (or at least back as far as Zen Cart 1.3.5, which is pretty close).
@frank18, has your site's /index.php file been modified in any way? What other plugins/templates do you have installed? Any changes to /includes/classes/template_func.php?
Thanks lat9
Have not tried this mod in ZC versions 1.5.3 and lower, only in 1.5.4
No modification to the /index.php file, it is still the same version
Same with /includes/classes/template_func.php - no changes at all.Quote:
* @version $Id: index.php 2942 2006-02-02 04:41:23Z drbyte $
What puzzles me is that it happens in all 3 templates (see my post above) including the default.
Plugins (store front only): image handler 4, zen lightbox, minimum order - really nothing that would affect the functionality of this mod.
The store has been around since v1.3.7 (2007) and progressively updated to 1.5.4
I will pop this into another local 1.5.4 site on the weekend and see what happens.
Relevant Server Information:
Server OS: Linux 3.16.0-36-generic Database: MySQL 5.5.43-0ubuntu0.14.04.1
Server Date: 18/07/2015 10:08:19 Database Date: 18/07/2015 10:08:19
Server Up Time: Disabled/Unavailable HTTP Server: Apache/2.4.7 (Ubuntu)
PHP Version: 5.5.9-1ubuntu4.11 (Zend: 2.5.0) PHP Memory Limit: 128M PHP Safe Mode: Off
Installed on another 1.5.4 local site and have no problem running this plugin - so somewhere in the other site something has gone astray..... :rant::frusty:
Let's keep digging....
Perhaps something in a .htaccess file?