Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2007
    Posts
    11
    Plugin Contributions
    0

    Default PLEASE HELP, I did something DUMB -- Parse error: syntax error, unexpected ')'

    I know I did something DUMB!!! by working a live site but I dont know how to do it anyother way, anyway, I have 2 sites operating with zen cart. I was trying to change the header of www.amazingawards.com and duplicated how my other site www.awards4golf.com was set up. Now I get this message:
    Parse error: syntax error, unexpected ')' in /home/acrylicr/public_html/amazingawards/catalog/includes/languages/english/classic/header.php on line 21

    I have tried everything from searching posts to going to my other site (which is a duplicate) and checking the header.php but I cannot find the mistake. Here is header.php info
    PHP Code:
    // header text in includes/header.php
      
    define('HEADER_TITLE_CREATE_ACCOUNT''Create Account');
      
    define('HEADER_TITLE_MY_ACCOUNT''My Account');
      
    define('HEADER_TITLE_CART_CONTENTS''Shopping Cart');
      
    define('HEADER_TITLE_CHECKOUT''Checkout');
      
    define('HEADER_TITLE_TOP''Top');
      
    define('HEADER_TITLE_CATALOG''Home');
      
    define('HEADER_TITLE_LOGOFF''Log Out');
      
    define('HEADER_TITLE_LOGIN''Log In');
    // added defines for header alt and text
      
    define('HEADER_ALT_TEXT''' );
      
    define('HEADER_SALES_TEXT''' );
      
    define('HEADER_LOGO_WIDTH''150px');
      
    define('HEADER_LOGO_HEIGHT''75px');
      
    define('HEADER_LOGO_IMAGE''amazing_header3.jpg'); 
    Your Help is GREATLY APPRECIATED

  2. #2
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: PLEASE HELP, I did something DUMB -- Parse error: syntax error, unexpected ')'

    In this file of an uncustomized new install:
    catalog/includes/languages/english/classic/header.php on line 21

    we see this line:
    define('HEADER_ALT_TEXT', 'Powered by Zen Cart :: The Art of E-Commerce [home link]');

    I'll bet you tried to remove the Powered by... but missed something with those single quote marks.


    If that is the case, line 21 should look like this:
    define('HEADER_ALT_TEXT', '');

  3. #3
    Join Date
    Jun 2007
    Posts
    11
    Plugin Contributions
    0

    Default Re: PLEASE HELP, I did something DUMB -- Parse error: syntax error, unexpected ')'

    Thank You SOOOOO much. I kept comparing one of my sites to the other with the code side by side and thought I had corrected that but I guess I was just getting foggy with frustration.

    I noticed that header.php appears in a few different files, is it the same file in multiple locations or are they different files?

    Thanks again

 

 

Similar Threads

  1. Replies: 5
    Last Post: 27 Sep 2014, 10:53 AM
  2. Parse error: syntax error, unexpected '{' in my custom php code
    By claudiapsp in forum General Questions
    Replies: 2
    Last Post: 27 Mar 2014, 03:53 PM
  3. Install: Parse error: syntax error, unexpected '/' in /includes/application_top.php
    By dlucarelli in forum Installing on a Linux/Unix Server
    Replies: 8
    Last Post: 26 Aug 2010, 02:08 PM
  4. Replies: 4
    Last Post: 30 Aug 2009, 09:26 PM
  5. Replies: 3
    Last Post: 15 Apr 2009, 03:23 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