Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

english.php problem


Guest

Recommended Posts

Posted

Hopefully someone can help me with this.

 

I edited my english.php file (changed FOOTER_TEXT_BODY) and now when I view my site I get placeholders instead of any text.

 

So, instead of seeing the guest greeting text on the home page, I see "TEXT_GREETING_GUEST". This is the same for all text on all pages. In other words, all the variables set by english.php are not being set.

 

I've tried searching the archives for any reference to this but come up blank. I have checked that there are no trailing spaces after the '>' in english.php, so that is not the problem.

 

File permissions on the file are just as they were before (755).

 

Any help on this would be greatly appreciated.

Posted

What did you use to edit the file with? If it was the osCommerce File Manager, then restore that file from an untouched backup. If you didn't take a backup before you started, then download the osCommerce MS2.2 zip from www.oscommerce.com, restore that file and start again. But this time edit the file by downloading it and editing with a plain text editor like Notepad (not Wordpad or Word)

 

Vger

Posted
Hopefully someone can help me with this.

 

I edited my english.php file (changed FOOTER_TEXT_BODY) and now when I view my site I get placeholders instead of any text.

 

So, instead of seeing the guest greeting text on the home page, I see "TEXT_GREETING_GUEST".  This is the same for all text on all pages.  In other words, all the variables set by english.php are not being set.

 

I've tried searching the archives for any reference to this but come up blank.  I have checked that there are no trailing spaces after the '>' in english.php, so that is not the problem.

 

File permissions on the file are just as they were before (755).

 

Any help on this would be greatly appreciated.

Let us see your revised code from english.php.

Posted
What did you use to edit the file with?  If it was the osCommerce File Manager, then restore that file from an untouched backup.  If you didn't take  a backup before you started, then download the osCommerce MS2.2 zip from www.oscommerce.com, restore that file and start again.  But this time edit the file by downloading it and editing with a plain text editor like Notepad (not Wordpad or Word)

 

I had indeed used the File Manager to edit the file, which seems to have been my problem.

 

Restored from the original now and all is working well.

 

I assume that that means that the File Manager is broken somehow and shouldn't be used for editing any documents? Or is it an intermittent problem as I have edited other files (including one of the configure.php's) with no noticable problems.

 

Is it still ok to edit the other language files through the 'Define Languages' editor?

Posted

Avoid File Manager. There are some nasty bugs in there.

Archived

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

×
×
  • Create New...