osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Parse Error?

This is a discussion on Parse Error? within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; ok, when i installed it, the main page had those 4 things there listing how to edit text and what ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Installation Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 04-03-2004, 10:57 AM
Lurker
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
JJH35
Default Parse Error?

ok, when i installed it, the main page had those 4 things there listing how to edit text and what not, i went in and change a few words on there to make the catalog/languages/english/index.php look like this

define('TEXT_Main', '' Welcome');
define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

now when i go to the main page i get this error "Parse error: parse error in /homepages/33/d94199407/htdocs/catalog/includes/languages/english/index.php on line 18"

line 18 has this on it

['manufacturers_id'])) ) {

and on the page ive got stuff like Text_Main showing up on there randomly and stuff like that, what i do wrong?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 04-06-2004, 01:14 PM
jpf's Avatar
jpf jpf is online now
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,684
Thanks: 2
Thanked 94 Times in 80 Posts
Rep Power: 12
jpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of light
Default

First of all
define('TEXT_Main', '' Welcome');
(cause this mean it is 'TEXT_Main' = '' - nul/zipo/zilch/nada/nothing)
Also "Main" should be all caps.

S/B:
define('TEXT_MAIN', 'Welcome');

Also you should check a backup or orgianl copy of that file... you would see that your line had be shorten - alot...(maybe even missing a line or two....)

(lines 16-23
....
define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');
define('TABLE_HEADING_DEFAULT_SPECIALS', 'Specials For %s');

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {
define('HEADING_TITLE', 'Let\'s See What We Have Here');
define('TABLE_HEADING_IMAGE', '');
....


Use a REAL TEXT editor - not MS-WORD/Notepad/EDIT.COM etc... They tend not to handle/format Unix files well and may ADD extra spaces/lines - which PHP does not like - often getting PARSE errors...

Use something like NoteTab (freeware) or Ultraedit or what I have been using lately - Code Builder's HTML Builder XP - It is quite good...


Good Luck
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Parse error: parse error, unexpected T_NEW, expecting ')' oscnoob osCMax v1.7 Discussion 0 04-02-2005 01:27 PM
Parse error help brt osCommerce 2.2 Installation Help 3 12-31-2004 01:47 PM
New Installation Parse error: parse error, unexpected T_STRI Anonymous osCMax v1.7 Installation 5 07-09-2004 06:06 AM
Parse error: parse error for product_listing.php midwestwebsites osCMax v1.7 Discussion 1 09-16-2003 01:21 PM
Parse error: parse error, unexpected T_STRING? HELP... hanool osCommerce 2.2 Modification Help 1 09-10-2003 10:38 AM


All times are GMT -8. The time now is 10:01 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax