Zen Cart Logo
Forums / General Questions / parse error on index page after editing language file

parse error on index page after editing language file

Locked

Views: 959

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
9 Jun 2009, 2:21 AM
#1
tomintulsa avatar

tomintulsa

New Zenner

Join Date:
Jun 2009
Location:
Tulsa OK
Posts:
11
Plugin Contributions:
0

parse error on index page after editing language file

HELP A NEWBE

I installed zencart and all was well but when I edited the index to remove the congratulations line now i get the error:

Parse error: syntax error, unexpected '/'

I have tried all kinds of editing and still get the same error.

here is the code:

// This section deals with the "home" page at the top level with no options/products selected
'Welcome to My SHOP!'*/
define('HEADING_TITLE', 'Congratulations! .');
} elseif ($category_depth == 'nested') {
// This section deals with displaying a subcategory
define('HEADING_TITLE', 'Congratulations! .');
}

can anyone help? can i just get a copy of the original file somewhere??

9 Jun 2009, 3:28 AM
#2
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,290
Plugin Contributions:
39

Re: parse error on index page after editing language file

// This section deals with the "home" page at the top level with no options/products selected
'Welcome to My SHOP!'[B]*/[/B]
define('HEADING_TITLE', 'Congratulations! .');
} elseif ($category_depth == 'nested') {
// This section deals with displaying a subcategory
define('HEADING_TITLE', 'Congratulations! .');
}

Remove the red slash & *

~Melanie

9 Jun 2009, 3:30 AM
#3
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,290
Plugin Contributions:
39

Re: parse error on index page after editing language file

// This section deals with the "home" page at the top level with no options/products selected
'Welcome to My SHOP!'*/
define('HEADING_TITLE', '[B]Congratulations! .[/B]');
} elseif ($category_depth == 'nested') {
// This section deals with displaying a subcategory
define('HEADING_TITLE', '[B]Congratulations![/B] .');
}

Matter of fact, you seem to have edited the wrong line.. the editable section is now bold... replace the original file and start over =-)

~Melanie

9 Jun 2009, 3:38 AM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,808
Plugin Contributions:
15

Re: parse error on index page after editing language file

:huh::dontgetit:blink:
Should look like> // This section deals with the "home" page at the top level with no options/products selected

/Replace this text with the headline you would like for your shop. For example: 'Welcome to My SHOP!'/
define('HEADING_TITLE', 'Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution.');
} elseif ($category_depth == 'nested') {
// This section deals with displaying a subcategory
/Replace this line with the headline you would like for your shop. For example: 'Welcome to My SHOP!'/
define('HEADING_TITLE', 'Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution.');
}The text in red (and only the text in red) is changed to match your preference.

You appear to have a really messed up languages/english/index.php file. If using a custom template, it would be in the languages/english/custom/index.php file.

9 Jun 2009, 3:09 PM
#5
tomintulsa avatar

tomintulsa

New Zenner

Join Date:
Jun 2009
Location:
Tulsa OK
Posts:
11
Plugin Contributions:
0

Re: parse error on index page after editing language file

Thanks so much, I don't know what happened but I copied your original code and it fixed it. Do I edit both Congrats lines to get the one to be right on my site?
What if I want it to just go away?
I appreciate the help.