Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse Errors


Nanci

Recommended Posts

Posted

This is the error message and I don't know how to find the "<" that is in the message....

 

Parse error: parse error, unexpected '<' in /mnt/web_l/d11/s24/b027c9a0/www/lamps/nfoscomm/catalog/includes/languages/english/index.php on line 13

 

Does that mean that there is a < on line 13 that is wrong???

Posted

yes, look in your index.php on line 13 or around that line for a < that doesn't belong or that's extra.

Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

Posted
yes, look in your index.php on line 13 or around that line for a < that doesn't belong or that's extra.

 

But there isn't one! I will get the code and post for you to see. But I can't figure it out.

I did however, make the grevious error of editing in a file manager...and not even the

file manager located within Net Commerce....I realize I'm a dope. But don't know how

to undo it. I asked my hosting company to reset that page...but hasn't happened yet.

 

I don't have a stand alone FTP thing. I have one that comes with GoLive and one that comes with

Dreamweaver....but everyone says not to use those programs. So how do I get a FTP thing to

be on its own...or stand alone???

 

I'll post the code in a minute....

Posted
But there isn't one! I will get the code and post for you to see. But I can't figure it out.

I did however, make the grevious error of editing in a file manager...and not even the

file manager located within Net Commerce....I realize I'm a dope. But don't know how

to undo it. I asked my hosting company to reset that page...but hasn't happened yet.

 

I don't have a stand alone FTP thing. I have one that comes with GoLive and one that comes with

Dreamweaver....but everyone says not to use those programs. So how do I get a FTP thing to

be on its own...or stand alone???

 

I'll post the code in a minute....

 

i use Dreamweaver its fine if you know how to use it and are aware its oddities

or download cuteFTP and use notepad or any other editor

AND BACK UP files offline always!

 

ps your error might be caused by spaces after the last ?> in a page

or a ' in the wrong place

 

post your code and a link to site though, it will be something simple

Posted
i use Dreamweaver its fine if you know how to use it and are aware its oddities

or download cuteFTP and use notepad or any other editor

AND BACK UP files offline always!

 

ps your error might be caused by spaces after the last ?> in a page

or a ' in the wrong place

 

post your code and a link to site though, it will be something simple

 

Here is the code and THANKS both of you!!!!!

 

<?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', 'change this text');<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Error Messages</b><br><br>If there are any error or warning messages shown above, please correct them first before proceeding.<br><br>Error messages are displayed at the very top of the page with a complete <span class="messageStackError">background</span> color.<br><br>Several checks are performed to ensure a healthy setup of your online store - these checks can be disabled by editing the appropriate parameters at the bottom of the includes/application_top.php file.</td></tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top"><b>Editing Page Texts</b><br><br>The text shown here can be modified in the following file, on each language basis:<br><br><nobr class="messageStackSuccess">[path to catalog]/includes/languages/' . $language . '/' . FILENAME_DEFAULT . '</nobr><br><br>That file can be edited manually, or via the Administration Tool with the <nobr class="messageStackSuccess">Languages->' . ucfirst($language) . '->Define</nobr> or <nobr class="messageStackSuccess">Tools->File Manager</nobr> modules.<br><br>The text is set in the following manner:<br><br><nobr>define('TEXT_MAIN', '<span class="messageStackSuccess">This is a default setup of the osCommerce project...</span>');</nobr><br><br>The text highlighted in green may be modified - it is important to keep the define() of the TEXT_MAIN keyword. To remove the text for TEXT_MAIN completely, the following example is used where only two single quote characters exist:<br><br><nobr>define('TEXT_MAIN', '');</nobr><br><br>More information concerning the PHP define() function can be read <a href="http://www.php.net/define" target="_blank"><u>here</u></a>.</td></tr>

<tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/3.gif') . '</td><td class="main" valign="top"><b>Online Documentation</b><br><br>Online documentation can be read at the <a href="http://wiki.oscommerce.com" target="_blank"><u>osCommerce Wiki Documentation Effort</u></a> site.<br><br>Community support is available at the <a href="http://www.oscommerce.com/forums" target="_blank"><u>osCommerce Community Support Forums</u></a> site.</td></tr></table><br>If you wish to download the solution powering this shop, or if you wish to contribute to the osCommerce project, please visit the <a href="http://www.oscommerce.com" target="_blank"><u>support site of osCommerce</u></a>. This shop is running on osCommerce version <font color="#f0000"><b>' . PROJECT_VERSION . '</b></font>.');

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

}

?>

Posted
i use Dreamweaver its fine if you know how to use it and are aware its oddities

or download cuteFTP and use notepad or any other editor

AND BACK UP files offline always!

 

ps your error might be caused by spaces after the last ?> in a page

or a ' in the wrong place

 

post your code and a link to site though, it will be something simple

 

Problem is I'm new to Dreamweaver too. I'm trying to learn everything and too much at once. And not doing a very good job on any of it.

 

I think...or I've been told, by my hosting company, that I can use their file manager within their Net Commerce module to do my editing....so once I get this fixed, can I really do that??

Posted

Where do I get cuteFTP? And how does it work?

 

Or, could you tell me the oddities of Dreamweaver and maybe I could use that.

 

I have used the FTP in GoLive before...are they all the same?

Posted

change the code you posted for this:

 

<?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', 'change this text');
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');
}
?>

 

that should fix that problem

Posted

Use PHP Designer. Its free and made by Micromedia (or Adobe now as thats who owns them) It will help you a little better with PHP coding and other languages. It's a condensed verison of DW but really good for editing code without needing a lot of other functions.

Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

Posted

Use PHP Designer. Its free and made by Micromedia (or Adobe now as thats who owns them) It will help you a little better with PHP coding and other languages. It's a condensed verison of DW but really good for editing code without needing a lot of other functions.

 

BTW when I said you had a extra < and you did.

 

define('TEXT_MAIN', 'change this text');<br>

 

The first <br> was outside the string. You need to put all that code in place of 'change this text' You had it outside of the ); which states the end of the line or function. So therfore the first thing your PHP engine was trying to parse after the end of the line was a statement that was untrue in this case being <. So yes you had it in the wrong place.

Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

Posted
Use PHP Designer. Its free and made by Micromedia (or Adobe now as thats who owns them) It will help you a little better with PHP coding and other languages. It's a condensed verison of DW but really good for editing code without needing a lot of other functions.

 

BTW when I said you had a extra < and you did.

 

define('TEXT_MAIN', 'change this text');<br>

 

The first <br> was outside the string. You need to put all that code in place of 'change this text' You had it outside of the ); which states the end of the line or function. So therfore the first thing your PHP engine was trying to parse after the end of the line was a statement that was untrue in this case being <. So yes you had it in the wrong place.

 

I'd like to thank you both so very much!!! But it turns out, as this was the very beginning shell of a store site, that the set-up or download or whatever from my hosting service was wrong to begin with. That is why why when, through my frustration, I would change one word and one word only to see if I was doing this correctly...that I got a parse error right from the start. I deleted and re-installed the store 4 times. Thinking it must be something I was doing. Now they have fixed it, given me a new beginning shell to play with and I'm off an running....maybe :blink:

 

They did say that the File Manager they supply, within the Net Commerce module, will work as an FTP thing.

Is there a reason to not use a file manager?? And if I wanted this PHP Designer would I be able to download from Adobe?? I'll go check. But I don't quite get why I need that...???

Archived

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

×
×
  • Create New...