Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can't Make Any Chanes to Any Text


djreason

Recommended Posts

Posted

Hey all,

 

I just loaded oscommerce and I am trying to make changes to the text in several of my files, especially the index.php file. Everytime I make ANY changes, i get parse errors and I have to revert back to the generic files that came with the original download.

 

For example, define('TEXT_MAIN', 'Edit anything between these single quotes');

 

If I put define('TEXT_MAIN', 'I just made a change'); I get a parse error.

 

an example of one of my errors is

 

Parse error: parse error, unexpected T_STRING in /home/mesamoto/public_html/store/includes/languages/english.php on line 79.

 

Can someone please let me know why i keep getting errors like this and what I can do to remedy it?

 

Thanks

Posted
Hey all,

 

I just loaded oscommerce and I am trying to make changes to the text in several of my files, especially the index.php file. Everytime I make ANY changes, i get parse errors and I have to revert back to the generic files that came with the original download.

 

For example, define('TEXT_MAIN', 'Edit anything between these single quotes');

 

If I put define('TEXT_MAIN', 'I just made a change'); I get a parse error.

 

an example of one of my errors is

 

Parse error: parse error, unexpected T_STRING in /home/mesamoto/public_html/store/includes/languages/english.php on line 79.

 

Can someone please let me know why i keep getting errors like this and what I can do to remedy it?

 

Thanks

 

 

In your /includes/languages/english.php what does line 79 say?

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Posted

First, do not edit the files using the file manager. Download the file you want to edit to your hard drive, edit it, then reupload it. There are known bugs with the file manager and it will mess up lines that you are not even editing.

 

Second, be sure that if you have a word like we're you type it like we\'re

Words with apostrophes will mess up the code.

Wendy James

 

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

Posted
In your /includes/languages/english.php what does line 79 say?

 

this is lines 78-84

 

// whats_new box text in includes/boxes/whats_new.php

define('BOX_HEADING_WHATS_NEW', 'What\'s New?');

 

// quick_find box text in includes/boxes/quick_find.php

define('BOX_HEADING_SEARCH', 'Quick Find');

define('BOX_SEARCH_TEXT', 'Use keywords to find the product you are looking for.');

define('BOX_SEARCH_ADVANCED_SEARCH', 'Advanced Search');

Posted
this is lines 78-84

 

// whats_new box text in includes/boxes/whats_new.php

define('BOX_HEADING_WHATS_NEW', 'What\'s New?');

 

// quick_find box text in includes/boxes/quick_find.php

define('BOX_HEADING_SEARCH', 'Quick Find');

define('BOX_SEARCH_TEXT', 'Use keywords to find the product you are looking for.');

define('BOX_SEARCH_ADVANCED_SEARCH', 'Advanced Search');

 

 

I am still needing some help on this. Can someone shed some light on my troubles please?

Posted

Is this the error that you are getting, currently?

 

Parse error: parse error, unexpected T_STRING in /home/mesamoto/public_html/store/includes/languages/english.php on line 79.

 

If so, post a few more lines from english.php...at least 10 lines before and after the line specified in the error.

 

What\'s new looks fine to me.

 

Wendy is right...you really need to use something other than the file manager. What are you using to edit the files?

Posted

okay...i am retarded. It was a simple missing "\" before one of the apostrophes. Thanks for the help anyway people. I am sure I will be back with other questions some other time.

 

 

Thanks again,

 

Brad

Archived

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

×
×
  • Create New...