Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error


Guest

Recommended Posts

Parse error: parse error in /usr/local/psa/home/vhosts/dizain.biz/httpdocs/iris/admin/includes/languages/english.php on line 108

 

Warning: Cannot add header information - headers already sent by (output started at /usr/local/psa/home/vhosts/dizain.biz/httpdocs/iris/admin/includes/languages/english.php:108) in /usr/local/psa/home/vhosts/dizain.biz/httpdocs/iris/admin/includes/functions/general.php on line 18

 

Hi,

 

I'm trying to add a contribution that needs me to add a line in english.php. Since I keep getting error messages no matter what, I've tried to just upload the file from my desktop backup. Everything works great. I then enter the File Manager, press edit - But do NOT change anything (I do NOTHING!) but click on save. I then get the error displayed on top of this message. I've tried it 5-6 times - and it happens very time. In the help section, I read I should make sure there is not a blank line at the very end - removing it does not help.

 

If it helps, this is line 108 (when counting from the top:)

define('BOX_TOOLS_WHOS_ONLINE', 'Who's Online');

 

and this is line 18:

define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime()

 

I really don't get the problem - but I'm not very familiar with php so maybe it is easy for someone else?

 

Appreciate ANY help!!

Karin

Link to comment
Share on other sites

Thanks,

 

I tried changing it into this:

 

define('BOX_TOOLS_WHOS_ONLINE', 'Who/'s Online');

 

But still get the:

 

Parse error: parse error in /usr/local/psa/home/vhosts/dizain.biz/httpdocs/iris/admin/includes/languages/english.php on line 108

 

AND the headings in the left menu (should say Catalog, Modules etc) changes into BOX_HEADING_CATALOG, BOX_HEADING_MODULES etc.

 

 

:wacko:

 

Karin

Link to comment
Share on other sites

Thanks,

 

I did that - instead got a

 

Parse error: parse error in /usr/local/psa/home/vhosts/dizain.biz/httpdocs/iris/admin/includes/languages/english.php on line 132

 

Line 132 is blank.

When I open the file again, I see it is changed back to the original Who's online. I tried to change it again, and now got the:

 

Parse error: parse error in /usr/local/psa/home/vhosts/dizain.biz/httpdocs/iris/admin/includes/languages/english.php on line 132

 

Warning: Cannot add header information - headers already sent by (output started at /usr/local/psa/home/vhosts/dizain.biz/httpdocs/iris/admin/includes/languages/english.php:132) in /usr/local/psa/home/vhosts/dizain.biz/httpdocs/iris/admin/includes/functions/general.php on line 18

 

 

 

The file is the original file that came with the OSCommerce download, so I don't think I've messed it up (yet). At least not other than this whole mess...

 

I really appreciate your help!!

Sorry for keeping bugging you .

 

Karin

Link to comment
Share on other sites

Sorry - forgot to say that when I remove the blank / empty line, I'm back at the original parse error 108. Which makes sense since the change I make isn't saved. Any way around THAT?

 

Thanks again, Karin

Link to comment
Share on other sites

are you sure the lines in this are the same?

 

// tell a friend box text in includes/boxes/tell_a_friend.php

define('BOX_HEADING_TELL_A_FRIEND', 'Tell A Friend');

define('BOX_TELL_A_FRIEND_TEXT', 'Tell someone you know about this product.');

Link to comment
Share on other sites

I'm sorry, I didn't quite get what you meant?

 

Those actual lines are not in there, no. Maybe becuase I have disabled the "tell a friend" feature? If you meant what lines around 108 etc looks like, here it is:

 

// tools text in includes/boxes/tools.php

define('BOX_HEADING_TOOLS', 'Tools');

define('BOX_TOOLS_BACKUP', 'Database Backup');

define('BOX_TOOLS_BANNER_MANAGER', 'Banner Manager');

define('BOX_TOOLS_CACHE', 'Cache Control');

define('BOX_TOOLS_DEFINE_LANGUAGE', 'Define Languages');

define('BOX_TOOLS_FILE_MANAGER', 'File Manager');

define('BOX_TOOLS_MAIL', 'Send Email');

define('BOX_TOOLS_NEWSLETTER_MANAGER', 'Newsletter Manager');

define('BOX_TOOLS_SERVER_INFO', 'Server Info');

define('BOX_TOOLS_WHOS_ONLINE', 'Who's Online');

 

Where the last line is 108 and causing problems. (Not accepting the change with the Who's apostreuf)

 

Line 132 is the empty line after the define... _PRODUCTS_PRICE

 

// javascript messages

define('JS_ERROR', 'Errors have occured during the process of your form!nPlease make the following corrections:nn');

 

define('JS_OPTIONS_VALUE_PRICE', '* The new product atribute needs a price valuen');

define('JS_OPTIONS_VALUE_PRICE_PREFIX', '* The new product atribute needs a price prefixn');

 

define('JS_PRODUCTS_NAME', '* The new product needs a namen');

define('JS_PRODUCTS_DESCRIPTION', '* The new product needs a descriptionn');

define('JS_PRODUCTS_PRICE', '* The new product needs a price valuen');

define('JS_PRODUCTS_WEIGHT', '* The new product needs a weight valuen');

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');

 

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');

define('JS_ADDRESS', '* The 'Street Address' entry must have at least ' . ENTRY_STREET_ADDRE

 

Sorry if I didn't even get your question right!

Link to comment
Share on other sites

I found this reply on a similar question at the general support:

 

"..Also, don't use the Filemanger edit tool. It may be the culprit that removed your \'s. Just edit locally and ftp to your site if you have to."

 

 

That was what I was using - the Filemanager tool in the Admin area.

I'm posting the recommendation here in case anyone else has experienced the same problem that I did, and is reading this thread!

 

Have a good Tuesday

 

Karin :D

Edited by karin
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...