Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2011
    Posts
    168
    Plugin Contributions
    0

    Default where is the $tpl_page_body

    I got a error message said:
    Code:
    No such file or directory in ...../includes/modules/pages/product_info/main_template_vars.php on line 182.
    Then checked the main_template_vars.php. The code on line 182 is
    Code:
    require($template->get_template_dir($tpl_page_body,DIR_WS_TEMPLATE, $current_page_base,'templates'). $tpl_page_body);
    . Searching the install package, and couldn't find the $tpl_page_body

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: where is the $tpl_page_body

    Quote Originally Posted by su35 View Post
    I got a error message said:
    Code:
    No such file or directory in ...../includes/modules/pages/product_info/main_template_vars.php on line 182.
    Then checked the main_template_vars.php. The code on line 182 is
    Code:
    require($template->get_template_dir($tpl_page_body,DIR_WS_TEMPLATE, $current_page_base,'templates'). $tpl_page_body);
    . Searching the install package, and couldn't find the $tpl_page_body
    Did you install a non-standard template from a commercial source such as Template Monster?

    Link to your site?

  3. #3
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: where is the $tpl_page_body

    Quote Originally Posted by su35 View Post
    The code on line 182 is
    Code:
    require($template->get_template_dir($tpl_page_body,DIR_WS_TEMPLATE, $current_page_base,'templates'). $tpl_page_body);
    . Searching the install package, and couldn't find the $tpl_page_body
    Although it seems apparent that this problem is due to a missing $tpl_page_body variable, we only have your word on that. It *could* be a redherring.

    The thing is, I've seen a problem similar to this during my time developing the ozpost module, and the cause has been because the constant DIR_WS_TEMPLATE hasn't been defined, and the reason for this is that this particular define doesn't exist in the ZenCart v1.3.7 configuration files, and many people that have upgraded from V1.3.7 to a later version have neglected to merge these changes during the upgrade, so when the newer modules/code try to use this constant, because it hasn't been defined the path to the file is incorrect and the result is the error message "No such file or directory in ...."

    Sadly, you truncated the most import part of the error message.. specifically the part that tells us the file (and path) that is *actually* missing. If you had done that I wouldn't have a need to speculate about this other possibility... What I'm saying here is that that you will get the exact same *symptom* regardless of whether it is a missing $tpl_page_body variable or the undefined DIR_WS_TEMPLATE.

    A closer inspection of the missing part of your log file should provide the answer as to which of these is the culprit (assuming that it isn't another cause entirely).

    Cheers
    Rod

  4. #4
    Join Date
    Oct 2011
    Posts
    168
    Plugin Contributions
    0

    Default Re: where is the $tpl_page_body

    Thanks frank18 and RodG

    It's my failure. I had commented the assignment statement in one place.

  5. #5
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: where is the $tpl_page_body

    Quote Originally Posted by su35 View Post
    Thanks frank18 and RodG

    It's my failure. I had commented the assignment statement in one place.
    Good to hear you have got this resolved.

 

 

Similar Threads

  1. Replies: 2
    Last Post: 1 Feb 2015, 03:35 PM
  2. Where would I look to change the name that shows at the top of the Browser?
    By ScootaMan in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Nov 2007, 02:31 PM
  3. Voucher in the basket - where is the value stored in the database?
    By sanji in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 18 May 2007, 02:32 PM
  4. Where or Where is the Up Sell?
    By Redcinamn in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 24 Mar 2007, 04:01 PM
  5. where is located the buttons folder where the buttons images is stored
    By maci in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 29 Jul 2006, 07:08 PM

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