Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error:


Shanti

Recommended Posts

Hi,

I'm very new to os and don't know anything about php.

 

I did all the easy things like adding categories, shipping and products. :rolleyes:

 

Than I went to the includes/languages/english/index.php to change the text for the welcome page as suggested when you open the /shop.

 

I copied the: define('TEXT_MAIN', 'This is a default setup of the osCommerce project, etc etc

into wordpad in case I stuff something up so I can put it back.

 

Of course after the change it gave me the following error: :'(

 

"Parse error: parse error, unexpected T_STRING in shanti/shop/includes/languages/english/index.php on line 13"

 

And when I tried to copy the original text back, it still gives me the same error.

 

How can I repair it so I can see my shop again. And how can I change the index.php without stuffing it up? :blink:

 

Thanks heaps.

Link to comment
Share on other sites

Hi,

I'm very new to os and don't know anything about php.

 

I did all the easy things like adding categories, shipping and products. :rolleyes:

 

Than I went to the includes/languages/english/index.php to change the text for the welcome page as suggested when you open the /shop.

 

I copied the:    define('TEXT_MAIN', 'This is a default setup of the osCommerce project, etc etc   

into wordpad in case I stuff something up so I can put it back.

 

Of course after the change it gave me the following error: :'(

 

"Parse error: parse error, unexpected T_STRING in shanti/shop/includes/languages/english/index.php on line 13"

 

And when I tried to copy the original text back, it still gives me the same error.

 

How can I repair it so I can see my shop again. And how can I change the index.php without stuffing it up? :blink:

 

Thanks heaps.

]

 

Fastest way to fix an error that you can't find, is to replace the original file. Just replace languages/English/index.php with the one from the installation directory. if you don't have a copy of the original files, just download them from the oscommerce site.

 

Sounds like you missed an apostrophe ' in your define (text main).

 

Best way to copy your stuff into the index.php. is to edit the material separately, then copy it between the '' in define(textmain).

 

e.g. define('text_main',' COPY YOUR TEXT/HTML HERE').

 

That way, there is no way you can stuff up the php script.

 

Hope this helps,

 

Peter

 

www.greekandromancoins.com

CE PHOENIX SUPPORTER

Support the Project, go PRO and get access to certified add ons

Full-time I am a C-suite executive of a large retail company in Australia. In my spare time, I enjoying learning about web-design.

Download the latest version of CE Phoenix from gitHub here

Link to comment
Share on other sites

When editing text

1. Do not use the file manager. Download the file to your computer, edit it, then reupload it.

2. if your word has an apostrophe in it you need to add a \

we're should be we\'re and so on

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

When editing text

1. Do not use the file manager. Download the file to your computer, edit it, then reupload it.

2. if your word has an apostrophe in it you need to add a \

we're should be we\'re and so on

 

 

I have been trying to do the editing for some of our pages...footer.php, privacy.php, shipping and returns (shipping.php). I do use bbedit or texedit (whichever one behaves) by downloading the document then uploading the edited version.

 

My problem is like the shipping.php---the previous version is still showing, regardless of how many times I upload a new one or even delete the one on the file manager or through Fetch proggie.

 

What do I need to do to get it to show the corrected version?

 

And how do I get my banners to show on the bottom of the pages, the footer.php file is in the proper place in the includes folder?

 

Thank you for the tip of using the backward slash in front of the apostrophe, now I won't need to fully use the words like "don't" won't need to be "do not". I am very new at php so this is a great learning experience.

 

Any help is greatly appreciated.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...