Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

parse error, unexpected T_STRING


qiang

Recommended Posts

After successful installation, I was on the Administration Tool . When editing

page text with it, I followed the instruction as the following:

 

-----------------------------

 

The text shown here can be modified in the following file, on each language

basis:

 

[path to catalog]/includes/languages/english/index.php

 

That file can be edited manually, or via the Administration Tool with the

Languages->English->Define or Tools->File Manager modules.

 

The text is set in the following manner:

 

define('TEXT_MAIN', 'This is a default setup of the osCommerce project...');

 

The text highlighted in green may be modified - it is important to keep the

define() of the TEXT_MAIN keyword. To remove the text for TEXT_MAIN

completely, the following example is used where only two single quote

characters exist:

 

define('TEXT_MAIN', '')

 

-----------------------------

 

I only made a minimal change of the text via the Administration Tool to see if

it works, that is, I added "test" before "This is a default setup...."

nothing else is changed. Then I try to locate my online store again, it did

not work any more, the following error text appears:

 

Parse error: parse error, unexpected T_STRING in

/mnt/ja1/08/834/00000011/htdocs/shop/includes/languages/english/index.php on

line 13

 

Before I did the change, I made a backup of "index.php". I replaced the

changed index.php with the backuped index.php. But the error is still there, I

could open my online store anymore.

 

Any comment or help information would be highly appreciated.

 

By the way, during the installation, I have used the Register Globals Patch

Files unter:

 

http://www.oscommerce.com/community/contri...,all/search,reg

ister

 

Qiang

Link to comment
Share on other sites

Don't use the file manager in admin. It's buggy.

 

Download the file with FTP and edit with an text-editor like notepad

Forum search

Contributions search

Documentation search (note: docs being adapted for MS3, may be different for MS2)

3 tips for better forum searching

 

Want to post? Read this first:

osCommerce for dummies

Topic name etiquette

 

Basics:

Basics for design

Right syntax to use near '-20, 20'

Cannot re-assign $this

Parse error

Link to comment
Share on other sites

you will need to download it, edit it, finding all occurences of the 'n' and replace with '\n' however be careful, dont overwrite the wrong one.

else replace with a clean copy and start it over (the index.php).

as it is the includes/languages/english/index.php i think anyway) erase what you had written and redo it.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...