Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

"Parse Error: Syntax Error" etc etc.


4 replies to this topic

#1 dominicmelton

  • Community Member
  • 3 posts
  • Real Name:Dominic Melton

Posted 31 January 2012, 20:25

Hi guys.
Firstly I'll set the picture, I initially installed os commerce version 2.3.1. This went well, I had it up and running.
I attempted to edit some text on a page by editing includes/lang/english/index.php. I used basic text, and put it in the appropriate area. However, I used 'Textedit' on the mac for this. I uploaded it. When attempting to visit my site I was met with

"Parse Error: syntax error, unexpected T-STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /websites/123reg/linuxpackage21/pr/in/ts/printstones.co.uk/public_html/oscommerce/index.php on line 9"

I decided it would be easier to delete the whole directory and database and start again. I downloaded oscommerce 3.0.2, uploaded it to my hosting, and when attempting to access it, I was met again with the above error message!

I am completely confused! Any help would be greatly appreciated.
Thanks.
Dominic.

#2 DunWeb

  • Community Sponsor
  • 10,466 posts
  • Real Name:Chris Dunn
  • Gender:Male
  • Location:Tecumseh, Ontario, Canada N8N 1X8

Posted 31 January 2012, 20:50

@dominicmelton,

Quote

I decided it would be easier to delete the whole directory and database and start again. I downloaded oscommerce 3.0.2, uploaded it to my hosting, and when attempting to access it, I was met again with the above error message!

OOPS, MISTAKE !

v3.0.2 is a developers release and NOT production ready. Delete it !



Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:

:|: Click Here to learn how I can help you with custom coding, add ons, security and templates :|:

:|: Need an Area Calculator, Pre-Paid Account, Virtual Pin, Auction or Layaway Add on ? Click Here :|:

#3 dominicmelton

  • Community Member
  • 3 posts
  • Real Name:Dominic Melton

Posted 31 January 2012, 20:58

okey dokey I shall do that!

#4 dominicmelton

  • Community Member
  • 3 posts
  • Real Name:Dominic Melton

Posted 01 February 2012, 06:37

All up and running again with version 2.3.1. Thanks!

#5 Xpajun

  • Community Member
  • 1,272 posts
  • Real Name:Julian
  • Gender:Male
  • Location:UK

Posted 01 February 2012, 08:54

Dominic,

Your original problem was caused by you either deleting the ' at the beginning or end of your text or not escaping ' within the text e.g. it's should be it\'s your's should be your\'s

define('TEXT_MAIN', 'This is how everyone\'s text should look like within a define');