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

    application error Disclaimer Page +++++

    Hi,

    I've added a disclaimer page, but now getting the following error:

    Fatal error: require() [function.require]: Failed opening required '' (include_path='.;C:\php5\pear') in d:\inetpub\wwwroot\bargainbooks4kids.com\html\includes\templates\classic\templat es\tpl_disclaimer_default.php on line 21

    line #21 is: require($define_disclaimer);

    anyone have any ideas?

    link to page is -> http://www.bargainbooks4kids.com/ind...age=disclaimer

    Thanks,

    Derek
    Last edited by derekhorne; 17 Sep 2007 at 11:00 PM. Reason: forgot line

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Disclaimer Page +++++

    Do you have a define-page created for this page?

    That message is suggesting you don't.
    .

    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
    Sep 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Disclaimer Page +++++

    Hey DrByte,

    I have a define_disclaimer.php within: includes/languages/english/html_includes/classic/

    i've been scratching my head for a while with this one....

    any ideas??

    Thanks again,

    Derek

  4. #4
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Disclaimer Page +++++

    Do you also have a copy in the english/html_includes/ ? ( can't override something that isn't there)
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  5. #5
    Join Date
    Sep 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Disclaimer Page +++++

    Hi Kim,

    Yeah i have a define_disclaimer.php there too. I was kinda hoping one of them would work!!

    Any other suggestions!?

    Thanks again,

    Derek

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Disclaimer Page +++++

    in your header_php.php file, what is $define_disclaimer set to ?
    .

    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.

  7. #7
    Join Date
    Sep 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Disclaimer Page +++++

    Hi,

    I have the following:

    includes/extra_datafiles/extra_page_filenames.php
    define('FILENAME_DEFINE_DISCLAIMER', 'define_disclaimer');

    includes/languages/english/disclaimer.php
    define('NAVBAR_TITLE', 'Disclaimer');
    define('HEADING_TITLE', 'Disclaimer');
    define('TEXT_INFORMATION', '');

    includes/languages/english/html_includes/classic/define_disclaimer.php
    <p>this is the disclaimer page<br/>blah blah blah</p>

    includes/modules/pages/disclaimer/
    require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
    // include template specific file name defines
    $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_DISCLAIMER, 'false');
    $breadcrumb->add(NAVBAR_TITLE);

    includes/templates/template_default/templates/tpl_disclaimer_default.php
    <div class="centerColumn" id="conditions">
    <h1 id="conditionsHeading"><?php echo HEADING_TITLE; ?></h1>
    <?php if (DEFINE_CONDITIONS_STATUS >= 1 and DEFINE_CONDITIONS_STATUS <= 2) { ?>
    <div id="conditionsMainContent" class="content">
    <?php
    /**
    * require the html_define for the conditions page
    */
    require($define_disclaimer);
    ?>
    </div>
    <?php } ?>
    <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>
    </div>


    does that make the problem any clearer!?!

    Thanks so much for this!

    Derek

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

    Default Re: Disclaimer Page +++++

    DrByte was asking what you have the $define_disclaimer *variable* set to in header_php.php. You show a number of other things defined, but not that.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Disclaimer Page +++++

    Quote Originally Posted by derekhorne View Post
    includes/modules/pages/disclaimer/
    require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
    // include template specific file name defines
    $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_DISCLAIMER, 'false');
    $breadcrumb->add(NAVBAR_TITLE);

    includes/templates/template_default/templates/tpl_disclaimer_default.php
    <div class="centerColumn" id="conditions">
    <h1 id="conditionsHeading"><?php echo HEADING_TITLE; ?></h1>
    <?php if (DEFINE_CONDITIONS_STATUS >= 1 and DEFINE_CONDITIONS_STATUS <= 2) { ?>
    <div id="conditionsMainContent" class="content">
    <?php
    /**
    * require the html_define for the conditions page
    */
    require($define_disclaimer);
    ?>
    </div>
    In your template file, change your $define_disclaimer to $define_page, and all will be fine.
    .

    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.

  10. #10
    Join Date
    Sep 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Disclaimer Page +++++

    Hey DrByte,

    Thanks for your help so far, but it still don't work!!

    I'm now getting the error below...

    Warning: require(includes/languages/english/html_includes/disclaimer.php) [function.require]: failed to open stream: No such file or directory in d:\inetpub\wwwroot\bargainbooks4kids.com\html\includes\templates\template_defaul t\templates\tpl_disclaimer_default.php on line 24

    Fatal error: require() [function.require]: Failed opening required 'includes/languages/english/html_includes/disclaimer.php' (include_path='.;C:\php5\pear') in d:\inetpub\wwwroot\bargainbooks4kids.com\html\includes\templates\template_defaul t\templates\tpl_disclaimer_default.php on line 24


    line 24 is:
    require($define_page);

    Sorry I'm going round and round in circles with this!!

    Any help appreciated...

    Derek
    Last edited by derekhorne; 18 Sep 2007 at 07:38 PM. Reason: wrong line #

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Making a "Sale Disclaimer" page...
    By toomanyknots in forum General Questions
    Replies: 0
    Last Post: 3 Apr 2015, 10:30 PM
  2. Is it possible to post a disclaimer on a certain page?
    By ShopShogun in forum General Questions
    Replies: 5
    Last Post: 28 Feb 2011, 08:55 PM
  3. Disclaimer
    By braggweb in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 5 Jan 2009, 09:50 PM
  4. Adult site disclaimer page....
    By thelatinbarbie in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 5 Oct 2007, 07:22 PM
  5. Shipping Disclaimer?
    By jacunivac in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 27 Aug 2007, 03:33 PM

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