Results 1 to 9 of 9
  1. #1
    Join Date
    Sep 2007
    Posts
    12
    Plugin Contributions
    0

    Default No such file error

    I just installed Zen Cart for the first time. Everything works except when I go to view a product I get the following error.

    Warning: main(includes/templates/template_default/templates/tpl_product_info_default.php): failed to open stream: No such file or directory in /usr/local/pem/vhosts/6189/webspace/httpdocs/findmynew/programs/zencart/includes/templates/template_default/common/tpl_main_page.php on line 119 Warning: main(includes/templates/template_default/templates/tpl_product_info_default.php): failed to open stream: No such file or directory in /usr/local/pem/vhosts/6189/webspace/httpdocs/findmynew/programs/zencart/includes/templates/template_default/common/tpl_main_page.php on line 119 Fatal error: main(): Failed opening required 'includes/templates/template_default/templates/tpl_product_info_default.php' (include_path='.:/php/includes') in /usr/local/pem/vhosts/6189/webspace/httpdocs/findmynew/programs/zencart/includes/templates/template_default/common/tpl_main_page.php on line 119
    It is looking for a includes/templates/template_default/templates/tpl_product_info_default.php

    This file isn't included in the download. i tried downloading older versions of zencart and it wasn't in any of them either. does anyone know what the problem is or could send me a fresh copy of tpl_product_info_default.php

    Thanks.

  2. #2
    Join Date
    Jun 2005
    Location
    Cheney WA
    Posts
    1,134
    Plugin Contributions
    0

    Default Re: No such file error

    The problem isn't that the file isn't there, because it's created dynamicly, or doesn't exist until it's needed. I think.

    The problem is probably in your configure.php file. check and make sure all the paths are correct and that your username and password is correct as well.

  3. #3
    Join Date
    Sep 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: No such file error

    I have looked over the configure.php file multiple times and everything looks to be correct.

  4. #4
    Join Date
    Nov 2006
    Location
    Papworth, Cambridgeshire, UK
    Posts
    731
    Plugin Contributions
    3

    Default Re: No such file error

    What template are you using?
    Line 119 in tpl_main_page is where all the code for the page body is loaded.
    Do you have anything heavily modified on the product page body?

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: No such file error

    Quote Originally Posted by drumminlogan View Post
    It is looking for a includes/templates/template_default/templates/tpl_product_info_default.php

    This file isn't included in the download. i tried downloading older versions of zencart and it wasn't in any of them either.
    That's correct.
    Zen Cart uses tpl_product_info_display.php normally.

    What's different between what you've installed to your server vs the original Zen Cart fileset ? I suspect you've got an addon or contribution or template that's got wrong settings in it.

    What's the URL where we can see this in action ?
    .

    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.

  6. #6
    Join Date
    Sep 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: No such file error

    The url is http://www.findmynew.findmydesign.com/programs/zencart/

    This is a fresh install. I haven't changed any of the files at all.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: No such file error

    Then your FTP program let you down ...

    You're missing the /includes/modules/pages/product_info/main_template_vars.php file on your server.
    .

    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.

  8. #8
    Join Date
    Sep 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: No such file error

    Awesome. That was the problem.

    That is very strange though. I tried installing it twice and both times uploaded everything from scratch. All the other files where there but that one.

    Thanks so much. I have used Cubecart for about 20 stores and we are looking at switching to Zen Cart and are testing it out to see if it will work out for us.

    THANKS!

  9. #9
    Join Date
    Mar 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: No such file error

    The above fixed the err for me to. In my case I am using the latest version 1.3.8 and had installed the magic zoom plus add on. When I uploaded the page folders included in the add on, I replaced product_info page with the one from the add on (magic zoom) and that got rid of the files. I then went back and made sure all those files were there (in inlcludes/modules/pages/product_info and then simply added the one js file I should have added and it was all good.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 13 Oct 2013, 08:59 PM
  2. error: No such file or directory in
    By Joseph Heinen in forum General Questions
    Replies: 2
    Last Post: 5 Jun 2008, 03:55 AM
  3. No such file, line 38 error??
    By bchapp3182 in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 23 Dec 2006, 03:52 PM
  4. Installed, Error Says "No Such File" but file is there!
    By plumloopy in forum Installing on a Linux/Unix Server
    Replies: 9
    Last Post: 30 Aug 2006, 01:34 AM
  5. Error: failed to open stream: No such file or directory
    By idtags in forum Basic Configuration
    Replies: 0
    Last Post: 18 Jun 2006, 03:07 AM

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