osCmax v2.5 User Manual
Results 1 to 5 of 5

parse error...please help!?>?

This is a discussion on parse error...please help!?>? within the osCommerce 2.2 Discussion forums, part of the osCommerce 2.2 Forums category; I'm trying to figure this out myself but i'm stuck. This is the message i'm gettting:::following that is the text ...

      
  1. #1
    Lurker
    Join Date
    Jan 2007
    Posts
    2
    Rep Power
    0


    Default parse error...please help!?>?

    I'm trying to figure this out myself but i'm stuck.
    This is the message i'm gettting:::following that is the text of the area that i was working on...what have i done wrong. my site won't even come up!!Please help
    Parse error: parse error, unexpected ',' in /home/wlimagin/public_html/index.php on line 13


    define('TEXT_MAIN', "This is a default setup of the osCommerce project, products shown are for demonstrational purposes,<b>any products purchased will not be delivered nor will the customer be billed</b>.Any information seen on these products is to be treated as fictional.<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Error Messages</b><br><br>If there are any error messages are displayed at the very top of the page with a complete.<br><br>Error messages are displayed at the very top of the page

    All times are GMT -8. The time now is 08:24 PM.

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: parse error...please help!?>?

    The problem is that you have unescaped single and double quotes, as well as you are trying to add php to the statement, which you cannot do.

    Straight text and html only...
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: parse error...please help!?>?

    You should just restore the original file and start over.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  4. #4
    Lurker
    Join Date
    Jan 2007
    Posts
    2
    Rep Power
    0


    Default Re: parse error...please help!?>?

    Thanks for the information. but i'm totally winging this and if you could simplify the instructions for me that would be great....totally computer illieterate?(SP?)thanks

  5. #5
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: parse error...please help!?>?

    You aren't totally computer illiterate... you managed to screw things up, and that counts for something.

    Ok,

    1. First, upload the original file (the original copy of the one you edited) to your site again so that your site comes back online.
    2. Then, when making edits to that file, be aware that all apostrophes must be preceded by a backslash \ so they will all look like this \' The reason for this is that it is a reserved character for php and the backslash tells php to not consider it as php code.
    3. Do the same thing for all quotation marks "
    4. Finally, make sure you do not put any php code in your edit. That will break the site again.
    5. Finally, and most importantly, get a beginners book on PHP so you don't end up going crazy over this stuff.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

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, 01:27 PM
  2. New Installation Parse error: parse error, unexpected T_STRI
    By Anonymous in forum osCMax v1.7 Installation
    Replies: 5
    Last Post: 07-09-2004, 06:06 AM
  3. Parse error...
    By heni04 in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 01-04-2004, 05:07 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, 01: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, 10: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
  •