Zen Cart Logo
Forums / Basic Configuration / Disclaimer Page +++++

Disclaimer Page +++++

Locked

Views: 2,979

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
17 Sep 2007, 9:57 PM
#1
derekhorne avatar

derekhorne

New Zenner

Join Date:
Sep 2007
Posts:
9
Plugin Contributions:
0

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\templates\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/index.php?main_page=disclaimer

Thanks,

Derek

17 Sep 2007, 10:12 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Disclaimer Page +++++

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

That message is suggesting you don't.

17 Sep 2007, 10:17 PM
#3
derekhorne avatar

derekhorne

New Zenner

Join Date:
Sep 2007
Posts:
9
Plugin Contributions:
0

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

17 Sep 2007, 10:23 PM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,627
Plugin Contributions:
0

Re: Disclaimer Page +++++

Do you also have a copy in the english/html_includes/ ? ( can't override something that isn't there)

17 Sep 2007, 10:25 PM
#5
derekhorne avatar

derekhorne

New Zenner

Join Date:
Sep 2007
Posts:
9
Plugin Contributions:
0

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

17 Sep 2007, 10:43 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Disclaimer Page +++++

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

17 Sep 2007, 10:56 PM
#7
derekhorne avatar

derekhorne

New Zenner

Join Date:
Sep 2007
Posts:
9
Plugin Contributions:
0

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

17 Sep 2007, 11:21 PM
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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.

17 Sep 2007, 11:29 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Disclaimer Page +++++

derekhorne:

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.

18 Sep 2007, 6:38 PM
#10
derekhorne avatar

derekhorne

New Zenner

Join Date:
Sep 2007
Posts:
9
Plugin Contributions:
0

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_default\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_default\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

18 Sep 2007, 7:51 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Disclaimer Page +++++

derekhorne:

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

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);

derekhorne:

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_default\templates\tpl_disclaimer_default.php on line 24

line 24 is:
require($define_page);

I'm guessing that your FILENAME_DEFINE_DISCLAIMER definition that you posted above isn't actually what's in the file on your server.
It's looking for "disclaimer.php" instead of "define_disclaimer.php".

18 Sep 2007, 8:00 PM
#12
derekhorne avatar

derekhorne

New Zenner

Join Date:
Sep 2007
Posts:
9
Plugin Contributions:
0

Re: Disclaimer Page +++++

DrByte,

Thanks so much for your help!

In the end it was actually multiple extra page filename defines that were confusing each other. These were legacy from earlier attempts at new pages...

Thanks again for helping em with this!!

Derek