Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Where is '$define_checkout_success' defined??

Where is '$define_checkout_success' defined??

Locked

Views: 17,377

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
6 Jun 2006, 3:35 AM
#1
jronis avatar

jronis

New Zenner

Join Date:
Feb 2004
Location:
PA
Posts:
96
Plugin Contributions:
0

Where is '$define_checkout_success' defined??

Anyone know where:

$define_checkout_success

is defined?

It's from tpl_checkout_success_default.php, line 74:

<td class="plainBox"><?php require($define_checkout_success); ?></td>

And it's giving me a fatal error:
Fatal error: main(): Failed opening required '' (include_path='.:/usr/local/lib/php') in....

I've upgraded from ZC1.2 and must be missing a file or something.

6 Jun 2006, 3:41 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Where is '$define_checkout_success' defined??

Just go to the /includes/languages/english/html_includes and set that directory and all subdirectories and files to 777

This is a newer Define Page and you most likely have the permissions incorrect on it ...

6 Jun 2006, 3:42 AM
#3
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Where is '$define_checkout_success' defined??

the $define_checkout_success is the WYSIWYG from define page editor....

its in includes/languages/english/html_includes/

EDITED: to help the nice wizard who is shy a cup of coffee ... :cool:

6 Jun 2006, 4:07 AM
#4
jronis avatar

jronis

New Zenner

Join Date:
Feb 2004
Location:
PA
Posts:
96
Plugin Contributions:
0

Re: Where is '$define_checkout_success' defined??

Hmmm. Apparently that's not it, the other items in that folder are available (for example define_contact_us.php) and I still get the error....

More info: this is for a custom_template, when I switch back to the default, I dont get the error.

6 Jun 2006, 4:42 AM
#5
drbyte avatar

drbyte

Sensei

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

Re: Where is '$define_checkout_success' defined??

It's looking for this:
includes/languages/english/html_includes/YOURTEMPLATE/define_checkout_success.php

Since you mention that it's fine when you switch templates, I suspect you've missed duplicating the YOURTEMPLATE/define*.php files for your new template...

... and be sure to CHMOD all of those to 777 (read/write) after copying.

6 Jun 2006, 2:04 PM
#6
jronis avatar

jronis

New Zenner

Join Date:
Feb 2004
Location:
PA
Posts:
96
Plugin Contributions:
0

Re: Where is '$define_checkout_success' defined??

thanks for the responses but i am 100% sure that the file is there and has the correct permissions and i still get the error. any other suggestions? could it be something else?

ps. i even replaced my version of the file with a copy of the default version and still no luck.

7 Jun 2006, 3:31 AM
#7
jronis avatar

jronis

New Zenner

Join Date:
Feb 2004
Location:
PA
Posts:
96
Plugin Contributions:
0

Re: Where is '$define_checkout_success' defined??

What's really weird is that the actual text from my:

/includes/languages/english/html_includes/template_custom/define_checkout_success.php

Is actually on the page! Is that clue helpful at all?

7 Jun 2006, 3:38 AM
#8
drbyte avatar

drbyte

Sensei

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

Re: Where is '$define_checkout_success' defined??

Um, when you upgraded, did you have any customizations already made to your template_custom/templates/tpl_checkout_success_default.php ? .... and if so, did you upgrade that file by comparing it to the new version in template_default, to merge the changes?

7 Jun 2006, 3:43 AM
#9
drbyte avatar

drbyte

Sensei

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

Re: Where is '$define_checkout_success' defined??

Okay ... the problem is in your template file.

You're getting the error because the $define_checkout_success variable is blank.... because it's not set anywhere anymore.

In v1.2.x, the template said:```php
<td class="plainBox"><?php require($define_checkout_success); ?></td>

In v1.3, this was changed to the following for consistency across templates:```php
  require($define_page);

You need to complete the upgrade of your template files :)

7 Jun 2006, 3:53 AM
#10
jronis avatar

jronis

New Zenner

Join Date:
Feb 2004
Location:
PA
Posts:
96
Plugin Contributions:
0

Re: Where is '$define_checkout_success' defined??

hmmm.... i thought i fixed that... you were right, thanks for the extra eyes.

23 Jul 2006, 6:02 PM
#11
gunvig avatar

gunvig

New Zenner

Join Date:
Jul 2006
Posts:
8
Plugin Contributions:
0

Re: Where is '$define_checkout_success' defined??

Hello I have a similar problem. This is the message when i click on the privacy notice link:
Fatal error: main() [function.require]: Failed opening required '' (include_path='.:/usr/local/nf/php5/lib/php') in ...........................aavran.net/catalog/includes/templates/template_default/templates/tpl_privacy_default.php on line 21
I have not installed any template yet. All the other pages work fine. I tried all the steps above including reloading these files and CHMOD 777 of all the files, dirs and subdirs
I even changes PHP5 to PHP4x
Please help

24 Jul 2006, 3:39 AM
#12
drbyte avatar

drbyte

Sensei

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

Re: Where is '$define_checkout_success' defined??

You have the same problem.

These two files work in sync. One of them is not upgraded to work with the other:
/includes/templates/template_default/templates/tpl_privacy_default.php
/includes/modules/pages/privacy/header_php.php

24 Jul 2006, 10:20 AM
#13
gunvig avatar

gunvig

New Zenner

Join Date:
Jul 2006
Posts:
8
Plugin Contributions:
0

Re: Where is '$define_checkout_success' defined??

Thanks, it works now!