Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / PLEASE HELP, I did something DUMB -- Parse error: syntax error, unexpected ')'

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

Locked

Views: 1,022

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
29 Aug 2008, 12:00 AM
#1
mfsuchta avatar

mfsuchta

New Zenner

Join Date:
Jun 2007
Posts:
11
Plugin Contributions:
0

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

 
// 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
29 Aug 2008, 12:27 AM
#2
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

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', '');

29 Aug 2008, 1:16 AM
#3
mfsuchta avatar

mfsuchta

New Zenner

Join Date:
Jun 2007
Posts:
11
Plugin Contributions:
0

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