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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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? |
| Sponsored Links | ||
| ||
| |
|
#2
| ||||
| ||||
| 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 |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| 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 |