Results 1 to 2 of 2

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 ...

      
  1. #1
    Lurker
    Join Date
    Apr 2004
    Posts
    1
    Rep Power
    0


    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?

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,688
    Rep Power
    22


    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

Similar Threads

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

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
  •