Guest Posted October 12, 2007 Share Posted October 12, 2007 Can anyone help?:blush: When I view my online catalogue and click onto my terms and conditions its come up with a blank page with this error message! Parse error: syntax error, unexpected T_STRING in /home/fusionl/public_html/includes/languages/english/conditions.php on line 16 But i can't seem to find an error! Please help, I have recently edited my terms page but I've double checked and can't see anything wrong many thanks Link to comment Share on other sites More sharing options...
Guest Posted October 12, 2007 Share Posted October 12, 2007 Can anyone help?:blush: When I view my online catalogue and click onto my terms and conditions its come up with a blank page with this error message! Parse error: syntax error, unexpected T_STRING in /home/fusionl/public_html/includes/languages/english/conditions.php on line 16 But i can't seem to find an error! Please help, I have recently edited my terms page but I've double checked and can't see anything wrong many thanks It might just be a common programming error. Make sure that the end of all of your lines have a ';' to it, and that all of your define statements are like this define('TEXT_STUFF', 'My text info'); Making sure that all of your apostrophes are there. Happens to me all of the time when I'm adjusting stuff. Link to comment Share on other sites More sharing options...
Nullachtfuffzehn Posted October 12, 2007 Share Posted October 12, 2007 The T_STRING error is definitly bacause you added some text with either single or double quotes which are not escaped. Since the entry you've made is recognized as one complete string variable any of the qoutes interrupts the string and forces this error. Link to comment Share on other sites More sharing options...
Guest Posted October 12, 2007 Share Posted October 12, 2007 It might just be a common programming error. Make sure that the end of all of your lines have a ';' to it, and that all of your define statements are like this define('TEXT_STUFF', 'My text info'); Making sure that all of your apostrophes are there. Happens to me all of the time when I'm adjusting stuff. Thanks..i'll give it a ago!! Link to comment Share on other sites More sharing options...
Guest Posted October 12, 2007 Share Posted October 12, 2007 The T_STRING error is definitly bacause you added some text with either single or double quotes which are not escaped. Since the entry you've made is recognized as one complete string variable any of the qoutes interrupts the string and forces this error. I'm pretty new to all this stuff so would you be able to explain in a way that an idiot like myself can understand...What do you mean by single or double quotes are not escaped and one string variable... I really don't have a clue. many many thanks Anna Link to comment Share on other sites More sharing options...
Guest Posted October 12, 2007 Share Posted October 12, 2007 I'm pretty new to all this stuff so would you be able to explain in a way that an idiot like myself can understand...What do you mean by single or double quotes are not escaped and one string variable... I really don't have a clue. many many thanks Anna He's just talking about how php programming handles strings, or a sentence that is displayed on the web page. When you create a variable, which you are doing with the define('TEXT_STUFF', 'My sentence goes here');, it's basically creating a shortcut to grab the sentence you created and use it. What he's talking about with single vs. double quotes is that php programming expects certain things when you use either ' or ". If you start with a single ', the you need to end with a single ', otherwise the programming will think that everything is a sentence and the rest of your program will fail. The same theory applies with double ". If you think that it's stupid for it to see one thing and expect another when the are pretty much the same thing, then you're not far off. I know I thought that when I was learning it. ;-) However, it is important when you are doing things like getting or inserting data from the database. There are time when you need to put almost a whole paragraph of information into the table, like the comments in osCommerce. In that case, you need to tell the programming where the sentence stops and starts. There will also be times that someone might want to put a quote into that paragraph. So, what osCommerce has done is started off the sentence that tells the programming to insert into the database with a single ', and any other quotes that are done inside of the comments are done with double". It's a crude example, but I hope that it helps you understand things a little better. If you have any other questions, you know where to post them. Good Luck! Link to comment Share on other sites More sharing options...
Nullachtfuffzehn Posted October 12, 2007 Share Posted October 12, 2007 Quick example: define('TEXT_STUFF', 'My sentence goes here'); is valid and will bring no error. But define('TEXT_STUFF', 'That's where my sentence goes.'); Will bring up the mentioned T_STRING error, since there is a single quote in the word What's. This needs to be escaped, which means masked, so thet PHP doesn't interpret it as a single quote rather than just a sign. So the correct version would be: define('TEXT_STUFF', 'That\'s where my sentence goes.'); Just put a backslash in front of the single quote to be escaped and you're good to go. Search your text for them and add the backslash. Let me know. Link to comment Share on other sites More sharing options...
Guest Posted October 12, 2007 Share Posted October 12, 2007 Quick example: define('TEXT_STUFF', 'My sentence goes here'); is valid and will bring no error. But define('TEXT_STUFF', 'That's where my sentence goes.'); Will bring up the mentioned T_STRING error, since there is a single quote in the word What's. This needs to be escaped, which means masked, so thet PHP doesn't interpret it as a single quote rather than just a sign. So the correct version would be: define('TEXT_STUFF', 'That\'s where my sentence goes.'); Just put a backslash in front of the single quote to be escaped and you're good to go. Search your text for them and add the backslash. Let me know. Thanks for your advice, I can not see any ofthose errors, but now the error has changed.... Parse error: syntax error, unexpected '<' in /home/fusionl/public_html/includes/languages/english/conditions.php on line 16 What have i done. please help Link to comment Share on other sites More sharing options...
Nullachtfuffzehn Posted October 12, 2007 Share Posted October 12, 2007 Just post the file here and I'll look into it. Link to comment Share on other sites More sharing options...
Guest Posted October 12, 2007 Share Posted October 12, 2007 Just post the file here and I'll look into it. <?php /* $Id: conditions.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ define('NAVBAR_TITLE', 'Conditions of Use'); define('HEADING_TITLE', 'Conditions of Use'); define('TEXT_INFORMATION');;(<br>You must be at least 18 years of age or have the legal right to possess adult products in your area or community and are not offended by adult merchandise including such things as Sex Toys, Bondage Equipment, Vibrators and other adult related products. By entering this website you have released and discharged the providers/owners and creators of fusionlingerie.co.uk from any and all liability which might arise from using this website. Shipping only within the United Kingdom. <br><br> All goods sold through fusionlingerie.co.uk are sold as "Novelty Goods". The vendor cannot be held responsible for any injury caused by improper use.<br><br> fusionlingerie.co.uk trades in accordance with recent EU directives for online trading which states that:<br><br> We provide a secure checkout for the encrypted delivery of sensitive customer information such as contact and credit card details.<br><br> All goods come with a 14 day satisfaction guarantee. If for any reason you are not happy with your purchase simply return it to us within 14 days of receiving your order and we will exchange it for an alternative product of the same value as the item purchased, postage cost WILL NOT be included in the value of your exchange.<br><br><b>Returns conditions:</b><br><br>1. Goods MUST BE unused (we adhere to strict health and hygiene conditions).<br><br>2. Goods must be in their original condition & packaging.<br><br>3. Goods must be received back at our office within 14 days from the day you receive your order.<br><br>4. Lingerie and items of clothing are non refundable and only exchangeable if we are satisfied that the goods meet the above conditions.<br><br>If we suspect that the goods have been used or any of the above conditions are not met we reserve the right to return the goods without notice. Items supplied in sealed packaging that have been opened are non refundable and non exchangeable.<br><br>Notice is given that free offers and our postage and packaging costs will be accounted for if returned goods take the order value below the free offer level. The value of free offer goods will be deducted from any refund that may be due. Only on faulty goods that meet inspection. To avoid refund deductions please return any free offer goods with your returns if your order value will drop below the free offer level. <br><br>All Packages returned to us unclaimed via the Royal Mail will be subject to reshipping charges as defined on our delivery policy.<br><br>All claims for delivery shortages and damages must be reported to fusionlingerie.co.uk within 3 days of the delivery date. All goods are supplied with a 30 day fault warranty (faulty goods can only be returned for exchange not refund once outside of our 14 day satisfaction guarantee).<br><br>Some of the products featured on fusionlingerie.co.uk may vary slightly from the images displayed.<br><br>fusionlingerie.co.uk can not be held responsible for orders delayed by incorrect address information supplied during the checkout process.<br><br>Material on fusionlingerie.co.uk may not be copied, reproduced, republished, downloaded, posted, broadcast or transmitted in any way.<br><br>Use of fusionlingerie.co.uk constitutes your acceptance of these terms and conditions which take effect on the date which you first use the site. These Terms and Conditions do not affect your statutory rights. <br><br><b>Shipping:</b><br><br>We process your orders usually the same working day within working ours (8am -8pm monday - Saturday & orders placed on Sunday are processed the next day) We ship it on the same day where possible, however, on certain products delivery can take up to 10-15 business days (Monday - Friday). All Leg Avenue products may take upto 4 weeks for delivery.<br><br> (Due to Halloween being a big event in the United States Items purchased from the Halloween and Fantasy Wear sections of our site may take longer to arrive due to popular demand of many of our Costumes).<br><br> We will notify you by email and you can track your order on our website when you login to your account. We will notify you within 3 days of your order if items are not in stock. We charge a flat shipping rate of £5.99 for orders less than £30.00 <br><br><b>Privacy Notice:</b><br><br>fusionlingerie.co.uk operate a SAFE, SECURE and DISCREET delivery service.<br><br>All orders are shipped discreetly in plain wrappings. The only markings on the package are your address on the front and our return address on the reverse. Royal Mail or Parcel Force handles the majority of our packages.<br><br>However if you have any questions or queries with our packaging or any other aspect or your order please Contact Us where we will be happy to assure you.'); ?> Thanks :blush: Link to comment Share on other sites More sharing options...
Nullachtfuffzehn Posted October 12, 2007 Share Posted October 12, 2007 This should do the trick. You had a syntax error at the define command (define('TEXT_INFORMATION');;(... should be ('TEXT_INFORMATION', '...text here'); <?php /* $Id: conditions.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2002 osCommerce Released under the GNU General Public License */ define('NAVBAR_TITLE', 'Conditions of Use'); define('HEADING_TITLE', 'Conditions of Use'); define('TEXT_INFORMATION', '<br>You must be at least 18 years of age or have the legal right to possess adult products in your area or community and are not offended by adult merchandise including such things as Sex Toys, Bondage Equipment, Vibrators and other adult related products. By entering this website you have released and discharged the providers/owners and creators of fusionlingerie.co.uk from any and all liability which might arise from using this website. Shipping only within the United Kingdom. <br><br> All goods sold through fusionlingerie.co.uk are sold as "Novelty Goods". The vendor cannot be held responsible for any injury caused by improper use.<br><br> fusionlingerie.co.uk trades in accordance with recent EU directives for online trading which states that:<br><br> We provide a secure checkout for the encrypted delivery of sensitive customer information such as contact and credit card details.<br><br> All goods come with a 14 day satisfaction guarantee. If for any reason you are not happy with your purchase simply return it to us within 14 days of receiving your order and we will exchange it for an alternative product of the same value as the item purchased, postage cost WILL NOT be included in the value of your exchange.<br><br><b>Returns conditions:</b><br><br>1. Goods MUST BE unused (we adhere to strict health and hygiene conditions).<br><br>2. Goods must be in their original condition & packaging.<br><br>3. Goods must be received back at our office within 14 days from the day you receive your order.<br><br>4. Lingerie and items of clothing are non refundable and only exchangeable if we are satisfied that the goods meet the above conditions.<br><br>If we suspect that the goods have been used or any of the above conditions are not met we reserve the right to return the goods without notice. Items supplied in sealed packaging that have been opened are non refundable and non exchangeable.<br><br>Notice is given that free offers and our postage and packaging costs will be accounted for if returned goods take the order value below the free offer level. The value of free offer goods will be deducted from any refund that may be due. Only on faulty goods that meet inspection. To avoid refund deductions please return any free offer goods with your returns if your order value will drop below the free offer level. <br><br>All Packages returned to us unclaimed via the Royal Mail will be subject to reshipping charges as defined on our delivery policy.<br><br>All claims for delivery shortages and damages must be reported to fusionlingerie.co.uk within 3 days of the delivery date. All goods are supplied with a 30 day fault warranty (faulty goods can only be returned for exchange not refund once outside of our 14 day satisfaction guarantee).<br><br>Some of the products featured on fusionlingerie.co.uk may vary slightly from the images displayed.<br><br>fusionlingerie.co.uk can not be held responsible for orders delayed by incorrect address information supplied during the checkout process.<br><br>Material on fusionlingerie.co.uk may not be copied, reproduced, republished, downloaded, posted, broadcast or transmitted in any way.<br><br>Use of fusionlingerie.co.uk constitutes your acceptance of these terms and conditions which take effect on the date which you first use the site. These Terms and Conditions do not affect your statutory rights. <br><br><b>Shipping:</b><br><br>We process your orders usually the same working day within working ours (8am -8pm monday - Saturday & orders placed on Sunday are processed the next day) We ship it on the same day where possible, however, on certain products delivery can take up to 10-15 business days (Monday - Friday). All Leg Avenue products may take upto 4 weeks for delivery.<br><br> (Due to Halloween being a big event in the United States Items purchased from the Halloween and Fantasy Wear sections of our site may take longer to arrive due to popular demand of many of our Costumes).<br><br> We will notify you by email and you can track your order on our website when you login to your account. We will notify you within 3 days of your order if items are not in stock. We charge a flat shipping rate of £5.99 for orders less than £30.00 <br><br><b>Privacy Notice:</b><br><br>fusionlingerie.co.uk operate a SAFE, SECURE and DISCREET delivery service.<br><br>All orders are shipped discreetly in plain wrappings. The only markings on the package are your address on the front and our return address on the reverse. Royal Mail or Parcel Force handles the majority of our packages.<br><br>However if you have any questions or queries with our packaging or any other aspect or your order please Contact Us where we will be happy to assure you.'); ?> Link to comment Share on other sites More sharing options...
Guest Posted October 12, 2007 Share Posted October 12, 2007 i've removed pne of the ':'after (text information) and also added a single(') before..(<br>you must be...) which now all looks like this ...('TEXT INFORMATION');('<br> you must be... This is now showing my page on my site but the only text on that page is TEXT INFORMATION and a warning message at the top of the page Warning: Wrong parameter count for define() in /home/fusionl/public_html/includes/languages/english/conditions.php on line 16 this is the link to myterms page... http://www.fusionlingerie.co.uk/conditions.php Anna Link to comment Share on other sites More sharing options...
Guest Posted October 12, 2007 Share Posted October 12, 2007 THANKYOU THANKYOU THANKYOU!!!!! YOUR A LIFE SAVER!!!!!!!!!!!!!!! :thumbsup: :thumbsup: :thumbsup: :thumbsup: ANNA XXXX Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.