Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Feb 2004
    Location
    PA
    Posts
    97
    Plugin Contributions
    0

    Default 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.
    peace
    jronis

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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 ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default 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 ...
    Zen cart PCI compliant Hosting

  4. #4
    Join Date
    Feb 2004
    Location
    PA
    Posts
    97
    Plugin Contributions
    0

    Default 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.
    peace
    jronis

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

    Default 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.
    .

    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.

  6. #6
    Join Date
    Feb 2004
    Location
    PA
    Posts
    97
    Plugin Contributions
    0

    Default 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.
    peace
    jronis

  7. #7
    Join Date
    Feb 2004
    Location
    PA
    Posts
    97
    Plugin Contributions
    0

    Default 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?
    peace
    jronis

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

    Default 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?
    .

    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.

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

    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 Code:
        <td class="plainBox"><?php require($define_checkout_success); ?></td>
    In v1.3, this was changed to the following for consistency across templates:
    PHP Code:
      require($define_page); 
    You need to complete the upgrade of your template files :)
    .

    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
    Feb 2004
    Location
    PA
    Posts
    97
    Plugin Contributions
    0

    Default Re: Where is '$define_checkout_success' defined??

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

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Where is 'products_options_type' defined?
    By The_Mech in forum General Questions
    Replies: 1
    Last Post: 27 Feb 2014, 06:21 PM
  2. Where do I find proper files where constants are defined?
    By joshuwaj in forum General Questions
    Replies: 17
    Last Post: 18 Jan 2008, 05:28 AM

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