djreason Posted June 25, 2006 Posted June 25, 2006 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
mtechama Posted June 25, 2006 Posted June 25, 2006 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!
Wendy James Posted June 25, 2006 Posted June 25, 2006 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.
djreason Posted June 26, 2006 Author Posted June 26, 2006 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');
djreason Posted June 29, 2006 Author Posted June 29, 2006 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?
choosealogin Posted June 29, 2006 Posted June 29, 2006 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?
djreason Posted June 29, 2006 Author Posted June 29, 2006 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.