osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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


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

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 01-08-2007, 08:28 PM
Lurker
 
Join Date: Jan 2007
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
tamers is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 01-08-2007, 08:53 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,329
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 01-08-2007, 08:57 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,329
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: parse error...please help!?>?

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


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 01-08-2007, 09:41 PM
Lurker
 
Join Date: Jan 2007
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
tamers is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 01-08-2007, 09:58 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,329
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
The Following User Says Thank You to michael_s For This Useful Post:
tamers (01-08-2007)
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 02:27 PM
New Installation Parse error: parse error, unexpected T_STRI Anonymous osCMax v1.7 Installation 5 07-09-2004 06:06 AM
Parse error... heni04 osCMax v1.7 Discussion 0 01-04-2004 06:07 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:58 AM.


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