Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Ok, I messed up my admin headers


Guest

Recommended Posts

Posted

Ok, I tried to change the page title header in the admin file and I apparently I screwed something up.

 

This is the error

 

Parse error: parse error in /mnt/web_g/d47/s36/b01f2394/www/store/nfoscomm/catalog/admin/includes/languages/english.php on line 139

 

This is the code that is in question.

 

define('JS_PRODUCTS_QUANTITY', '* The new product needs a quantity valuen');
define('JS_PRODUCTS_MODEL', '* The new product needs a model valuen');
define('JS_PRODUCTS_IMAGE', '* The new product needs an image valuen');

define('JS_SPECIALS_PRODUCTS_PRICE', '* A new price for this product needs to be setn');

Line 139 - define('JS_GENDER', '* The 'Gender' value must be chosen.n');
define('JS_FIRST_NAME', '* The 'First Name' entry must have at least ' . ENTRY_FIRST_NAME_MIN_LENGTH . ' characters.n');
define('JS_LAST_NAME', '* The 'Last Name' entry must have at least ' . ENTRY_LAST_NAME_MIN_LENGTH . ' characters.n');
define('JS_DOB', '* The 'Date of Birth' entry must be in the format: xx/xx/xxxx (month/date/year).n');
define('JS_EMAIL_ADDRESS', '* The 'E-Mail Address' entry must have at least ' . ENTRY_EMAIL_ADDRESS_MIN_LENGTH . ' characters.n');

 

Now, again, I have no idea what I changed to screw up all the header names....

 

here is what my admin page looks like right now...

 

admin.jpg

Posted

Your editor took out some essential backslashes. Don't use an online editor; download the files and edit locally. The code should look like this:

define('JS_PRODUCTS_QUANTITY', '* The new product needs a quantity value\n');
define('JS_PRODUCTS_MODEL', '* The new product needs a model value\n');
define('JS_PRODUCTS_IMAGE', '* The new product needs an image value\n');

define('JS_SPECIALS_PRODUCTS_PRICE', '* A new price for this product needs to be set\n');

Line 139 - define('JS_GENDER', '* The \'Gender\' value must be chosen.\n');
define('JS_FIRST_NAME', '* The \'First Name\ entry must have at least ' . ENTRY_FIRST_NAME_MIN_LENGTH . ' characters.\n');
define('JS_LAST_NAME', '* The \Last Name\' entry must have at least ' . ENTRY_LAST_NAME_MIN_LENGTH . ' characters.\n');
define('JS_DOB', '* The \'Date of Birth\' entry must be in the format: xx/xx/xxxx (month/date/year).\n');
define('JS_EMAIL_ADDRESS', '* The \'E-Mail Address\' entry must have at least ' . ENTRY_EMAIL_ADDRESS_MIN_LENGTH . ' characters.\n');

And I may have missed one or two. Likely there are more messed up lines than these. I suggest that you replace this file with an unmodified original and start over. Just remember that any single quotes in the text must be escaped (' replaced with \').

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Posted

Thanks a lot for that! it's all fixed now!

Posted

The best thing is not to use the online file manager to edit files as there are known issues with using it such as the removal of backslashes from the code which will give a parse error. It is better to use an ftp program such as ws_ftp to download the file edit offline and ftp upload to the server.

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Archived

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

×
×
  • Create New...