shortyguy Posted October 22, 2009 Posted October 22, 2009 using Oscommerce Online Merchant v2.2 RC2a hosted from a friends account..he usually sorts out the problems i have however editing the index page again and i've got an error up. now im no expert at php's so if someone could tell me whats up with this index.php and even correct it for me i would be grateful. www.monumentalpiercings.co.uk thats the site so you can see what error it is im getting and here is the index.php which i am accessing through the oscommerce admin panel <?php /* $Id: index.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2007 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', 'Welcome to Monumental Piercing Supplies. A new online store for flesh tunnels, plugs, stretchers and other body jewellery. We stock most types of flesh tunnels from acrylic to bone and horn. (Please not this is a new online store and as such stock is limited. If a certain size of tunnel or plug is not listed don't hesitate to get in contact as most sizes of tunnels and plugs ranging from 3mm to 50mm can be obtained on request. If there is a particular design of tunnel or plug you like get in contact and we will do our best to source the design you are after (Specially requested orders will take longer to be delivered and may cost slightly more if it is not one of the items shown on the site.)<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top"><b>About Us</b><br><br>Small independently run online store set up to provide flesh tunnels and plugs in a variety of sizes and materials.<br><br>Our main aims is to try to provide these products at affordable and competative prices.<br><br>Feedback is always welcomed and contact info can be found on the Contact Us page.</td></tr><td class="main" valign="top"><b>Contact Details</b><br><br>Email: [email protected]<br><br>Phone Number: 07944 127725<br><br></td></tr></table>'); 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'); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'Welcome to Monumental Piercing Supplies'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?>
FIMBLE Posted October 22, 2009 Posted October 22, 2009 Hello What is the error, i do not see one on your index.php Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
shortyguy Posted October 22, 2009 Author Posted October 22, 2009 it was one saying sytax error on line 13 or something also remember seeing it saying T_Strand. my mate has fixed it now hence why the site works. there are no problems in the index php :S any idea why i may have been getting an error?
FIMBLE Posted October 22, 2009 Posted October 22, 2009 You may have had an unescaped apostrophe which mean if you wrote our shop's etc.. it need to be presented as our shop'\s its called escaping the apostrophe as ' means something in php code, so for text you need to add \ before it to escape it Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
knifeman Posted October 22, 2009 Posted October 22, 2009 it was one saying sytax error on line 13 or something also remember seeing it saying T_Strand. my mate has fixed it now hence why the site works. there are no problems in the index php :S any idea why i may have been getting an error? Your previous errors may have been from index.php rather than the file you posted which is includes/languages/english/index.php You still have one define not defined: TABLE_HEADING_NEW_PRODUCTS Tim
shortyguy Posted October 22, 2009 Author Posted October 22, 2009 ah right. that could well have been it then. glad its sorted now though about the third time ive managed to cause the same error
shortyguy Posted October 22, 2009 Author Posted October 22, 2009 Your previous errors may have been from index.php rather than the file you posted which is includes/languages/english/index.php You still have one define not defined: TABLE_HEADING_NEW_PRODUCTS Tim Yeh i know about that..as i keep seeing it and it is annoying. how can i change it so it doesn't appear as that on the site..is it just a case of editing it?
knifeman Posted October 22, 2009 Posted October 22, 2009 Yeh i know about that..as i keep seeing it and it is annoying. how can i change it so it doesn't appear as that on the site..is it just a case of editing it? Add this: define('TABLE_HEADING_NEW_PRODUCTS', 'Featured Products For %s'); to includes/languages/english/index.php Tim
knifeman Posted October 23, 2009 Posted October 23, 2009 Your previous errors may have been from index.php rather than the file you posted which is includes/languages/english/index.php You still have one define not defined: TABLE_HEADING_NEW_PRODUCTS Tim I have no idea why I have received a negative one for the previous post. Can someone explain what I did wrong? Tim
MrPhil Posted October 23, 2009 Posted October 23, 2009 I have no idea why I have received a negative one for the previous post. Can someone explain what I did wrong?Tim Your post looks OK to me. My guess is that someone, shall we say, "uncoordinated", accidentally clicked on the "-" button rather than the "MultiQuote" button (before anyone asks, no it wasn't me). I clicked "+" on your post to bring it back to neutral.
knifeman Posted October 23, 2009 Posted October 23, 2009 Your post looks OK to me. My guess is that someone, shall we say, "uncoordinated", accidentally clicked on the "-" button rather than the "MultiQuote" button (before anyone asks, no it wasn't me). I clicked "+" on your post to bring it back to neutral. Thank you Phil, I was given quite a shock to see my reputation in the negative today. Wasn't really sure what the reputation was until then. I browsed until I found the post. Your explanation is highly likely as I cannot recall giving bad advice and hopefully I have never offended anyone here. Generally, I do not post unless I am sure of my answer. A couple times I may have answered with a disclaimer saying I was pretty sure. Tim
shortyguy Posted October 26, 2009 Author Posted October 26, 2009 Thank you Phil, I was given quite a shock to see my reputation in the negative today. Wasn't really sure what the reputation was until then. I browsed until I found the post. Your explanation is highly likely as I cannot recall giving bad advice and hopefully I have never offended anyone here. Generally, I do not post unless I am sure of my answer. A couple times I may have answered with a disclaimer saying I was pretty sure. Tim don't think it was me either as i was bit confused when i saw that appear on your post. cheers for the help and i will try that bit now edit: ok added that new bit of php into the php on the admin page that you said to but it didn't remove the TABLE_HEADING_NEW_PRODUCT bit..is there a specific place it needs to be placed or does part of the php need to be removed in order for this bit to take effect?
shortyguy Posted October 26, 2009 Author Posted October 26, 2009 edit: no i havent im still confused as why it did nothing when i put it in
knifeman Posted October 26, 2009 Posted October 26, 2009 edit: no i havent im still confused as why it did nothing when i put it in Place the define in includes/languages/english/index.php right after your main text, like this: define('TEXT_MAIN', 'Welcome to Monumental Piercing Supplies etc etc..'); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); My sites either have the text altered to say featured products rather than new products or I have completely removed the new products module and installed a featured products mod. Depends upon the site. Tim
Recommended Posts
Archived
This topic is now archived and is closed to further replies.