Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2006
    Posts
    6
    Plugin Contributions
    0

    Default Syntax error question

    When my customers check out they receive this error:


    Parse error: syntax error, unexpected T_STRING in /home/diaperpa/public_html/includes/languages/english/modules/shipping/freeshipper.php on line 25

    I've checked the line in question, but honestly I don't know what I am looking at. I compared it to the other files in that directory and can't see any noticeable differences. Here's what it says in that file:

    <?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 |
    // | license AT zen-cart DOT com so we can mail you a copy immediately. |
    // +----------------------------------------------------------------------+
    // $Id: freeshipper.php 290 2004-09-15 19:48:26Z wilt $
    //

    define('MODULE_SHIPPING_FREESHIPPER_TEXT_TITLE', 'FREE SHIPPING!');
    define('MODULE_SHIPPING_FREESHIPPER_TEXT_DESCRIPTION', 'FREE SHIPPING');
    define('MODULE_SHIPPING_FREESHIPPER_TEXT_WAY', 'It's Free');
    ?>


    Can anyone help me?

    Thanks!

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

    Default Re: Syntax error question

    PHP Code:
    define('MODULE_SHIPPING_FREESHIPPER_TEXT_WAY''It's Free'); 
    Is missing the escape on the single quote mark:
    PHP Code:
    define('MODULE_SHIPPING_FREESHIPPER_TEXT_WAY''It\'s Free'); 
    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!]
    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
    Jul 2006
    Posts
    6
    Plugin Contributions
    0

    Default Re: Syntax error question

    Thank you so much!

 

 

Similar Threads

  1. Replies: 1
    Last Post: 25 Aug 2011, 05:58 AM
  2. Login error and Parse error: Syntax error...
    By TzuLady in forum Basic Configuration
    Replies: 1
    Last Post: 15 Apr 2010, 07:32 AM
  3. Replies: 4
    Last Post: 30 Aug 2009, 09:26 PM
  4. Newbie Question syntax error
    By karen in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 15 Feb 2008, 04:44 PM
  5. SQL Syntax error: check for right syntax to use near '000000
    By gabyone in forum General Questions
    Replies: 2
    Last Post: 9 Feb 2008, 08:23 PM

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