Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Aug 2007
    Posts
    13
    Plugin Contributions
    0

    help question Parse error: syntax error, unexpected $end

    Hi everyone,

    Kinda of new to Zen-Cart...when I go to Modules-->Order Total or when I click on my PayPal checkout button in the store I get the following error message:

    Parse error: syntax error, unexpected $end in /*path_to_my_store*/includes/languages/english/modules/order_total/ot_subtotal.php on line 24

    I have not edited this file, so I'm not sure why this error would occur.

    Anyone know why this would happen?

  2. #2
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Parse error: syntax error, unexpected $end

    Post that file here so we can check what's going on.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  3. #3
    Join Date
    Aug 2007
    Posts
    13
    Plugin Contributions
    0

    Default Re: Parse error: syntax error, unexpected $end

    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers |
    // | |
    // | http://www.zen-cart.com/index.php |
    // | |
    // | Portions Copyright (c) 2003 osCommerce |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license, |
    // | that is bundled with this package in the file LICENSE, and is |
    // | available through the world-wide-web at the following url: |
    // | http://www.zen-cart.com/license/2_0.txt. |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to |
    // | [email protected] so we can mail you a copy immediately. |
    // +----------------------------------------------------------------------+
    // $Id: ot_subtotal.php 1969 2005-09-13 06:57:21Z drbyte $
    //

    define('MODULE_ORDER_TOTAL_SUBTOTAL_TITLE', 'Sub-Total');
    define('MODULE_ORDER_TOTAL_SUBTOTAL_DESCRIPTION', 'Order Sub-Total');
    ?>

  4. #4
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Parse error: syntax error, unexpected $end

    The file content is correct. Make sure you do not have any blank space/line after ?>
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  5. #5
    Join Date
    Aug 2007
    Posts
    13
    Plugin Contributions
    0

    Default Re: Parse error: syntax error, unexpected $end

    There are no blank spaces or lines after ?> I hadn't even opened the file before today when I saw that error message.

  6. #6
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Parse error: syntax error, unexpected $end

    Did you, by any chance, install a new mod or make any modification on any file recently? (right before you have this error?)
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

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

    Default Re: Parse error: syntax error, unexpected $end

    Sometimes FTP programs encounter timeouts, leaving files incomplete or at 0 bytes, or skipped altogether.
    I suggest re-uploading your files, or at least checking to be sure that *all* files were uploaded completely.
    .

    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.

  8. #8
    Join Date
    Aug 2007
    Posts
    13
    Plugin Contributions
    0

    Default Re: Parse error: syntax error, unexpected $end

    I did start using the UPS shipping thing...and I changed the store from live to sandbox.

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

    Default Re: Parse error: syntax error, unexpected $end

    If your last post means you're still having problems, start with this:

    http://www.zen-cart.com/wiki/index.p...Obscure_Issues
    .

    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
    Aug 2007
    Posts
    13
    Plugin Contributions
    0

    Default Re: Parse error: syntax error, unexpected $end

    I am still getting the message when I try and go through the checkout process.

    How do I check to see if all the files were uploaded correctly? Or, if I re-upload all the files will I lose all the customization I've done?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Parse error: syntax error, unexpected $end in
    By holster1 in forum General Questions
    Replies: 1
    Last Post: 23 Aug 2012, 05:19 AM
  2. Replies: 10
    Last Post: 4 Nov 2010, 09:40 PM
  3. Replies: 4
    Last Post: 30 Aug 2009, 09:26 PM
  4. Parse error: syntax error, unexpected $end
    By Jameslawrence in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 24 Aug 2008, 02:30 PM
  5. Parse error: syntax error, unexpected $end in
    By joaopmz in forum General Questions
    Replies: 1
    Last Post: 16 Jul 2007, 01:09 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