Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Deleted a file that I shouldn't have


InNeedOfSeriousHelp

Recommended Posts

 

most probably though, you would just have to fix a quote error, that you have forgotten to add the escape slash to

 

like

 

what\'s new?

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

This was my first thought, however, I don't know what's wrong.

 

If you could run your eye over it, I would be forever in your debt!!!

 

Here is my index.php file

 

<?php

/*

$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {

define('HEADING_TITLE', 'Great Range at a Great Price');

define('TABLE_HEADING_IMAGE', '');

define('TABLE_HEADING_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Product Name');

define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

define('TABLE_HEADING_QUANTITY', 'Quantity');

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_WEIGHT', 'Weight');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');

define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');

define('TEXT_SHOW', '<b>Show:</b>');

define('TEXT_BUY', 'Buy 1 '');

define('TEXT_NOW', '' now');

define('TEXT_ALL_CATEGORIES', 'All Categories');

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'QUEENSLAND BEAD COMPANY');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

?>

 

 

 

most probably though, you would just have to fix a quote error, that you have forgotten to add the escape slash to

 

like

 

what\'s new?

Link to comment
Share on other sites

these 2 are incorrect:

 

define('TEXT_BUY', 'Buy 1 '');
define('TEXT_NOW', '' now');

 

should be

 

define('TEXT_BUY', 'Buy 1 ');
define('TEXT_NOW', ' now');

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Thanks Monica,

 

I have changed these lines, so it now reads:

 

define('TEXT_BUY', 'Buy 1 '');

define('TEXT_NOW', ' now');

 

 

However, the error still exists. The only difference now is that the error is on line 28, not 32 as before.

 

Any other suggestions?

 

 

these 2 are incorrect:

 

define('TEXT_BUY', 'Buy 1 '');
define('TEXT_NOW', '' now');

 

should be

 

define('TEXT_BUY', 'Buy 1 ');
define('TEXT_NOW', ' now');

Link to comment
Share on other sites

Thanks Monica,

 

I have changed these lines, so it now reads:

 

define('TEXT_BUY', 'Buy 1 '');

  define('TEXT_NOW', ' now');

However, the error still exists.  The only difference now is that the error is on line 28, not 32 as before.

 

Any other suggestions?

 

why didn't you change both lines, but only 1?

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Okay, I don't know what happened, but I'm sure I changed both lines.  Anyway, it is now definitely in as:

 

define('TEXT_BUY', 'Buy 1 ');

  define('TEXT_NOW',  ' now');

 

But the error still exists on line 28.

 

post the error please ... the file looks fine now in my php editor which changes the color for syntax check :-)

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Parse error: parse error in /var/www/html/oscommerce/includes/languages/english/index.php on line 28

 

sorry, no clue then. I'd double check the file got uploaded into the correct folder ...

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...