Forums / Templates, Stylesheets, Page Layout / Odd error - well, I think it's odd

Odd error - well, I think it's odd

Locked

Views: 1,751

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
22 Aug 2007, 10:38 AM
#1
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Odd error - well, I think it's odd

Getting the following error message after the client made some changes to the site...

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 119Now 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 ```
require($body_code); ?>

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

22 Aug 2007, 11:37 AM
#2
drbyte avatar

drbyte

Sensei

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

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?main_page=product_contrib_info&cPath=40_54&products_id=378

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

22 Aug 2007, 12:08 PM
#3
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Odd error - well, I think it's odd

http://84.51.237.82/index.php?main_page=product_info&cPath=44&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!

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

22 Aug 2007, 12:18 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: Odd error - well, I think it's odd

I don't see any errors ... (other than broken images in the footer)

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

22 Aug 2007, 12:18 PM
#5
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

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.

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

22 Aug 2007, 12:20 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: Odd error - well, I think it's odd

Gotta hate missing files :)

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