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

    Default Finding a non existent file?

    Got a bit of a puzzle here... error message says that

    require(includes/templates/template_default/templates/tpl_product_music_default.php): failed to open stream: No such file or directory in /includes/templates/template_default/common/tpl_main_page.php on line 122

    Fine - that tells me (not surprisingly!) that there's no file named tpl_product_music_default.php which is being called from line 122 in tpl_main_page.php

    The problem is that line 122 is
    Code:
    require($body_code);
    Using developer-toolkit to locate tpl_product_music_default.php brings up zero returns ... so, how do I go about trying to identify where this error starts?
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Finding a non existent file?

    That filename may be dynamically generated wherever it is used, so it would not appear as such. Try a smaller string, like product_music or something.

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

    Default Re: Finding a non existent file?

    Oh, I've tried everything I can think of! A variation of the error is displayed today with the filenames of tpl_product_music_infoaND88_default.php and tpl_product_music_infoaND83_default.php so as you suggest, it's being dynamically generated...but as to where from remains a complete mystery...to me anyway!

    But thanks for the response.
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  4. #4
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Finding a non existent file?

    Are you using a mod of some kind or have music products?

    includes/templates/template_default/templates/tpl_product_music_default.php
    - although this is not a default Zen Cart file, it does need to be there -- as part of a module -- if another file calls for it -- but it won't call for it by that name. Weird, I know, but that's how some of the files work.

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

    Default Re: Finding a non existent file?

    Thanks for that Rob - it is music products. The site has recently been upgraded to 1.3.9h but I have checked all the old files just to see if I'd missed something, but it didn't exist there either...and the old one was a 1.3.7 so had been there for ever!

    It's an odd one for sure - it's not repeated tonight
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  6. #6
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Finding a non existent file?

    Although line 122 states require($body_code); is there an IF statement just before that?

    Odds are there is... or some module, default or addon, with files in 'includes/modules/pages/custom_module' is calling for an array or other type code and needs the 'tpl_product_music_default.php' to display the output. I'm not a database guy so not quite sure of the details but I've had some custom modules created which work along the same method.

  7. #7
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: Finding a non existent file?

    Nope - the tpl_main_page is as per the ZC default for 1.3.9h and there is no override.

    I've text-searched all filea using grep at root level and I've searched the database... nothing that shouldn't be there.

    But thanks for the suggestions. To be honest, unless it starts becoming a serious problem, I'm not going to waste any more time it....but it's just so £%*(! frustrating!
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

 

 

Similar Threads

  1. v139h Gift Certificates sent to non existent emails
    By newtoEstore in forum General Questions
    Replies: 2
    Last Post: 27 May 2012, 03:26 AM
  2. header.php file non existent?
    By pbg98pbg in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Feb 2011, 12:34 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