Odd error - well, I think it's odd
Getting the following error message after the client made some changes to the site...
Quote:
Warning: main(includes/templates/template_default/templates/tpl_product_info_default.php): failed to open stream: No such file or directory in /hsphere/local/home/xxxxxx/xxxxxx/includes/templates/template_default/common/tpl_main_page.php on line 119
Now I'm not surprised it can't find that file, but why would it be looking for it in the first place?
Line 119 of tpl_main_page.php is simply
Code:
require($body_code); ?>
which doesn't give someone like me much of a clue. Where do I look next?
Re: Odd error - well, I think it's odd
Well ... what's the URL of the page they were trying to open when they get that error message?
$body_code points to the relevant load section of code to be processed to build the template content based on the page that's being assembled for the browser. The main_page= value drives that.
http://www.zen-cart.com/index.php?ma...roducts_id=378
Re: Odd error - well, I think it's odd
http://84.51.237.82/index.php?main_p...&products_id=9
So I looked at includes/modules/pages/product_info and none of the files in there have been touched since installation.
In addition, includes/templates/template_default/tpl_product_info_display.php is also the original (and no override)
Edit - ooops - just noticed your link and am reading it now!
Re: Odd error - well, I think it's odd
I don't see any errors ... (other than broken images in the footer)
Re: Odd error - well, I think it's odd
Thanks - got it!
For some reason, the includes/modules/pages/product_info/main_template_vars.php file was missing.
Rick
PS You must have looked after I fixed.
Re: Odd error - well, I think it's odd
Gotta hate missing files :)