Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2008
    Location
    London, UK
    Posts
    44
    Plugin Contributions
    0

    Default Newbie Question syntax error

    please help, I have added a page using the 'about us'download. My screen went white so I ran the debug download. My error is


    PHP Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\store\includes\extra_datafiles\refund_filenames.php on line 12

    My code is

    <?php
    /**
    * @package Pages
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: about_us.php v1.3 $
    */

    // About Us Filename Defines
    define('FILENAME_REFUND', 'refund');
    define('FILENAME_DEFINE_REFUND, 'define_refund');
    ?>


    Can someone explain what my error is??

    Many many thanks.

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Newbie Question syntax error

    Quote Originally Posted by karen View Post
    please help, I have added a page using the 'about us'download. My screen went white so I ran the debug download. My error is


    PHP Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\store\includes\extra_datafiles\refund_filenames.php on line 12

    My code is

    <?php
    /**
    * @package Pages
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: about_us.php v1.3 $
    */

    // About Us Filename Defines
    define('FILENAME_REFUND', 'refund');
    define('FILENAME_DEFINE_REFUND, 'define_refund');
    ?>


    Can someone explain what my error is??

    Many many thanks.
    try changing this line:

    // About Us Filename Defines

    to read as follows:

    <!-- About Us Filename Defines -->

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

    Default Re: Newbie Question syntax error

    No, that's not where the error is:

    define('FILENAME_DEFINE_REFUND, 'define_refund');
    --> missing the closing quote

    Change it to:
    define('FILENAME_DEFINE_REFUND', 'define_refund');
    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

 

 

Similar Threads

  1. Replies: 1
    Last Post: 25 Aug 2011, 05:58 AM
  2. Replies: 4
    Last Post: 30 Aug 2009, 09:26 PM
  3. 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
  4. Syntax error question
    By AmandaM in forum General Questions
    Replies: 2
    Last Post: 28 Jul 2006, 03:23 AM

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