Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,213
    Plugin Contributions
    20

    Default 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 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?

  2. #2
    Join Date
    Jan 2004
    Posts
    65,255
    Blog Entries
    7
    Plugin Contributions
    226

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

    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.

  3. #3
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,213
    Plugin Contributions
    20

    Default 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!

  4. #4
    Join Date
    Jan 2004
    Posts
    65,255
    Blog Entries
    7
    Plugin Contributions
    226

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

  5. #5
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,213
    Plugin Contributions
    20

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

  6. #6
    Join Date
    Jan 2004
    Posts
    65,255
    Blog Entries
    7
    Plugin Contributions
    226

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

 

 

Similar Threads

  1. I think this might be an odd question, but...
    By MNTcomputers in forum General Questions
    Replies: 2
    Last Post: 31 Jul 2007, 03:28 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR