Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

can someone help a new guy


unclecurt

Recommended Posts

:blush: I was trying to change the text on my catalog front page and not only did I not get what I wanted there I got this error message; Parse error: parse error in /home/u/n/unclecurtscloset.com/html/catalog/includes/languages/english/index.php on line 13, can someone help me fix this mess?

Link to comment
Share on other sites

:blush: I was trying to change the text on my catalog front page and not only did I not get what I wanted there I got this error message; Parse error: parse error in /home/u/n/unclecurtscloset.com/html/catalog/includes/languages/english/index.php on line 13, can someone help me fix this mess?

 

 

Copy and paste line 13 and 5 lines or so on each side

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

:blush: I was trying to change the text on my catalog front page and not only did I not get what I wanted there I got this error message; Parse error: parse error in /home/u/n/unclecurtscloset.com/html/catalog/includes/languages/english/index.php on line 13, can someone help me fix this mess?

 

You didn't use the integrated editor that comes with OSC did you? There are many posts on the forum that warn you never to use this, as it messes up the text.

 

Use notepad or some other text editor and remove all blank spaces before the first character and after the last character. You probably left some white space in there when you updated it.

Link to comment
Share on other sites

You didn't use the integrated editor that comes with OSC did you? There are many posts on the forum that warn you never to use this, as it messes up the text.

 

Use notepad or some other text editor and remove all blank spaces before the first character and after the last character. You probably left some white space in there when you updated it.

 

 

Actually whitespace will give a headers already sent error.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

Copy and paste line 13 and 5 lines or so on each side

 

 

 

What does that mean where do I copy that from? Or paste it to. I did it like the little hi-lited in green instructions said but I ended up with it like it is. www.unclecurtscloset.com/catalog is the site if you need to see what I mean.

Link to comment
Share on other sites

What does that mean where do I copy that from? Or paste it to. I did it like the little hi-lited in green instructions said but I ended up with it like it is. www.unclecurtscloset.com/catalog is the site if you need to see what I mean.

 

 

You edited the file so you can take another look at it and copy and paste the lines that you edited plus a few on each side. The error message said line 13 which is the 13th line of the file so go ahead and copy and paste the first 20 lines or so and then we can look at the lines and maybe see what your problem is.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

You edited the file so you can take another look at it and copy and paste the lines that you edited plus a few on each side. The error message said line 13 which is the 13th line of the file so go ahead and copy and paste the first 20 lines or so and then we can look at the lines and maybe see what your problem is.

 

 

 

 

Oh OK, here they are then.

/*

$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(TEXT_MAIN'The reason there are no prices on the items you see is because the site won't actually go live until January 15th 2006 come back then and see what we have for you...Don't miss the grand opening specials.');

 

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

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

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

 

but now I think it says line 12.

Link to comment
Share on other sites

yes the coma is necessary, there is also the single quotes within the string like the

 

won't -> won\'t

don't -> don\'t

 

so all quotes within the string should be escaped with \

Not the starting and ending quotes. Take a look in the default index.php of osc. How it process them.

Link to comment
Share on other sites

yes the coma is necessary, there is also the single quotes within the string like the

 

won't -> won\'t

don't -> don\'t

 

so all quotes within the string should be escaped with \

Not the starting and ending quotes. Take a look in the default index.php of osc. How it process them.

 

 

 

Ok now the problem it says is in line 20

<?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('TEXT_MAIN','The reason there are no prices on the items you see is because the site will not actually go live until January 15th 2006 come back then and see what we have for you...Do not miss the grand opening specials.');

 

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', 'Let's See What We Have Here');

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

Link to comment
Share on other sites

here is the whole code ...

 

<?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('TEXT_MAIN','The reason there are no prices on the items you see is because the site will not actually go live until January 15th 2006 come back then and see what we have for you...Do not miss the grand opening specials.');

 

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', 'Let's See What We Have Here');

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', 'What's New Here?');

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

define('HEADING_TITLE', 'Categories');

}

?>

Link to comment
Share on other sites

Ok now the problem it says is in line 20

<?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('TEXT_MAIN','The reason there are no prices on the items you see is because the site will not actually go live until January 15th 2006 come back then and see what we have for you...Do not miss the grand opening specials.');

 

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', 'Let's See What We Have Here');

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('HEADING_TITLE', 'Let\'s See What We Have Here');

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

how did you manage to strip all the backslashes? Did that happened just like that? or you were using an editor or something?

 

 

 

all I did was follow the instructions on the frontpage of the catalog and I got what you see now.

Link to comment
Share on other sites

if you d/l the original osc files (without installing) and examine the language files the backslashes must be present. Is there something special you did during installation?

Link to comment
Share on other sites

all I did was follow the instructions on the frontpage of the catalog and I got what you see now.

 

What program are you using to edit the files?

 

Do a google search for php editor and you will find plenty of choices for free ones. Try a couple of them to see what works best for you.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

What program are you using to edit the files?

 

Do a google search for php editor and you will find plenty of choices for free ones. Try a couple of them to see what works best for you.

 

 

 

What would happen if I just erased everthing in that file? I'm useing the file editor that came with the oscomerce upload. Is there somewhere I can find that text that was originally there and cut and paste over what is there now and start over? <_<

Link to comment
Share on other sites

What would happen if I just erased everthing in that file? I'm useing the file editor that came with the oscomerce upload. Is there somewhere I can find that text that was originally there and cut and paste over what is there now and start over? <_<

 

 

You really should be editing your files locally and then uploading them.

 

Delete the file and then just upload the copy you have on your local computer to replace it.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

You really should be editing your files locally and then uploading them.

 

Delete the file and then just upload the copy you have on your local computer to replace it.

 

 

 

 

I don't even know what that means, it sounds scary :(

Link to comment
Share on other sites

I don't even know what that means, it sounds scary :(

 

If you trashed the file then all you need to do is replace it with the copy you have on your local computer. I am assuming that you had to have all the osC files in the first place to install them on your server.

 

If you installed osC from fantasitco or similiar program from your hosting control panel then you probably do not have these files and should download them from this site so you do have them.

 

To work with osC you really need to have a few things.

1) a copy of your site locally so if you have any problems like the one above you can replace any files as needed.

2) a php editor to edit your files ( there are plenty of them out there and most have a free version or are free.

3) a ftp program to transfer files from your local computer to your server and chmod files as needed.

 

If you were planning on making all your file changes using the online editor in the admin I would very strongly reccomend you change your plan and start editing your files locally and then ftping them up to your server. This allows you to backup your files before you make any changes and the tools that a decent php editor will give you will make you life easier. Using the online editor is just asking for trouble.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

If you trashed the file then all you need to do is replace it with the copy you have on your local computer. I am assuming that you had to have all the osC files in the first place to install them on your server.

 

If you installed osC from fantasitco or similiar program from your hosting control panel then you probably do not have these files and should download them from this site so you do have them.

 

To work with osC you really need to have a few things.

1) a copy of your site locally so if you have any problems like the one above you can replace any files as needed.

2) a php editor to edit your files ( there are plenty of them out there and most have a free version or are free.

3) a ftp program to transfer files from your local computer to your server and chmod files as needed.

 

If you were planning on making all your file changes using the online editor in the admin I would very strongly reccomend you change your plan and start editing your files locally and then ftping them up to your server. This allows you to backup your files before you make any changes and the tools that a decent php editor will give you will make you life easier. Using the online editor is just asking for trouble.

 

 

I never had to download the osc files, my hosting company did that all I had to do was click on install osc but that button is gone from my hosting company FTP file manager now.

Link to comment
Share on other sites

:blush: can you look at my site at www.unclecurtscloset/catalog and then look at this code and tell me what's wrong and why I have TEXT_NAME at the top of my page none of the other pages I changed messed up, here is the index code that is messed up,

 

<?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('Main_TEXT', 'Welcome to my catalog, I hope you find what you need here.')

define('NEW PRODUCTS', 'New Products For %s');

define('UPCOMING PRODUCTS', 'Upcoming Products');

define('DATE EXPECTED', 'Date Expected');

 

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

define('HEADING_TITLE', 'Let us See What We Have Here');

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', 'What is New Here?');

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

define('HEADING_TITLE', 'Categories');

}

?>

Link to comment
Share on other sites

define('TEXT_MAIN' not define('Main_TEXT'

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...