akronmarbles Posted March 10, 2006 Posted March 10, 2006 I get the following message error message: "Parse error: parse error in D:\hosting\akronmarbles.com\httpdocs\catalog\includes\languages\english\conditions.php on line 54" I have looked at my conditions.php file and can find nothing wrong with the code on line 54 - am I looking at the correct place? Here is my conditions.php file: <?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', ''); define('TEXT_INFORMATION', '<p><font face="Arial"><strong>Entire Agreement<o:p> </o:p> </strong></font></p> <p><span style="font-size: 8.5pt;color: black"><font face="Arial">Other than as specifically provided in any separate formal purchase agreement between you and Akron Marbles, these terms and conditions (this ?Agreement?) apply to all of your on-line purchases from the web site at <a href="http://www.akronmarbles.com">www.akronmarbles.com</a> (the ?Site?) and may NOT be altered, supplemented, or amended by you through the use of any other document(s). Any attempt to alter, supplement or amend this document or to enter an order for product(s) which is subject to additional or altered terms and conditions will be null and void, unless otherwise agreed to in a written agreement signed by both you and Akron Marbles.<o:p> </o:p> </span></font></p> <p><span style="font-size: 8.5pt;color: black"><font face="Arial">Acceptance</span></strong><span style="font-size: 8.5pt;color: black"><o:p> </o:p> <p><font face="Arial"><span style="font-size: 8.5pt;color: black"> By purchasing products and/or services from the Site, you agree to be bound by and accept this Agreement. Orders are not binding until accepted by Akron Marbles. Akron Marbles will indicate its acceptance of an order by acknowledging your order by reply email or by shipping to you the ordered items.<o:p> </span></font></p> <p><span style="font-size: 8.5pt;color: black"><font face="Arial">Pricing</span></strong><span style="font-size: 8.5pt;color: black"><o:p> </o:p> <p><font face="Arial"><span style="font-size: 8.5pt;color: black"> Because prices, product descriptions and availability can change quickly, Akron Marbles does not warrant the accuracy or completeness of the information provided on the Site.<o:p> </o:p> </span></font></p> <p><span style="font-size: 8.5pt;color: black"><font face="Arial">Payment Terms; Orders</span></strong><span style="font-size: 8.5pt;color: black"><o:p> </o:p> <p><font face="Arial"><span style="font-size: 8.5pt;color: black"> Payment methods accepted at this time for internet orders include credit card and Paypal. You can sign up for paypal service by going to www.paypal.com. In addition to Paypal you may pay by money orders, cashier's checks, and personal checks by mail. Just email us at [email protected] to place your order. Additional processing time is required for allmail orders. Cash is not a payment option that we accept at this time.<o:p> </o:p> </span></font></p> <p><span style="font-size: 8.5pt;color: black"><font face="Arial">Applicable Law; Resale or Export</span></strong><span style="font-size: 8.5pt;color: black"><o:p> </o:p> <p><font face="Arial"><span style="font-size: 8.5pt;color: black"> You agree to comply with all applicable laws and regulations of the various states and of the United States. You agree and represent that you are buying for your own personal use only, and not for resale or export.<o:p> </o:p> </span></font></p> <p><span style="font-size: 8.5pt;color: black"><font face="Arial">Governing Law</span></strong><span style="font-size: 8.5pt;color: black"><o:p> </o:p> <p><font face="Arial"><span style="font-size: 8.5pt;color: black"> These terms and conditions shall for all purposes be governed by and interpreted in accordance with the laws of the State of Ohio as those laws are applied to contracts entered into and to be performed entirely in Ohio, without regard to conflicts of law provisions. Any suit or proceeding arising out of or relating to this Agreement shall be commenced exclusively in state or federal court in Wayne County, Ohio, and you irrevocably submit to the exclusive jurisdiction and venue of such courts.<o:p> </o:p> </span></font></p> '); ?>
akronmarbles Posted March 10, 2006 Author Posted March 10, 2006 Here is the correct code: <?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 (c) 2002 osCommerce Released under the GNU General Public License */ define('NAVBAR_TITLE', 'Conditions of Use'); define('HEADING_TITLE', ''); define('TEXT_INFORMATION', '<p><font face="Arial"><strong>Entire Agreement<o:p> </o:p> </strong></font></p> <p><span style="font-size: 8.5pt;color: black"><font face="Arial">Other than as specifically provided in any separate formal purchase agreement between you and Akron Marbles, these terms and conditions (this “Agreement”) apply to all of your on-line purchases from the web site at <a href="http://www.akronmarbles.com">www.akronmarbles.com</a> (the “Site”) and may NOT be altered, supplemented, or amended by you through the use of any other document(s). Any attempt to alter, supplement or amend this document or to enter an order for product(s) which is subject to additional or altered terms and conditions will be null and void, unless otherwise agreed to in a written agreement signed by both you and Akron Marbles.<o:p> </o:p> </span></font></p> <p><span style="font-size: 8.5pt;color: black"><font face="Arial">Acceptance</span></strong><span style="font-size: 8.5pt;color: black"><o:p> </o:p> <p><font face="Arial"><span style="font-size: 8.5pt;color: black"> By purchasing products and/or services from the Site, you agree to be bound by and accept this Agreement. Orders are not binding until accepted by Akron Marbles. Akron Marbles will indicate its acceptance of an order by acknowledging your order by reply email or by shipping to you the ordered items.<o:p> </span></font></p> <p><span style="font-size: 8.5pt;color: black"><font face="Arial">Pricing</span></strong><span style="font-size: 8.5pt;color: black"><o:p> </o:p> <p><font face="Arial"><span style="font-size: 8.5pt;color: black"> Because prices, product descriptions and availability can change quickly, Akron Marbles does not warrant the accuracy or completeness of the information provided on the Site.<o:p> </o:p> </span></font></p> <p><span style="font-size: 8.5pt;color: black"><font face="Arial">Payment Terms; Orders</span></strong><span style="font-size: 8.5pt;color: black"><o:p> </o:p> <p><font face="Arial"><span style="font-size: 8.5pt;color: black"> Payment methods accepted at this time for internet orders include credit card and Paypal. You can sign up for paypal service by going to www.paypal.com. In addition to Paypal you may pay by money orders, cashier's checks, and personal checks by mail. Just email us at [email protected] to place your order. Additional processing time is required for allmail orders. Cash is not a payment option that we accept at this time.<o:p> </o:p> </span></font></p> <p><span style="font-size: 8.5pt;color: black"><font face="Arial">Applicable Law; Resale or Export</span></strong><span style="font-size: 8.5pt;color: black"><o:p> </o:p> <p><font face="Arial"><span style="font-size: 8.5pt;color: black"> You agree to comply with all applicable laws and regulations of the various states and of the United States. You agree and represent that you are buying for your own personal use only, and not for resale or export.<o:p> </o:p> </span></font></p> <p><span style="font-size: 8.5pt;color: black"><font face="Arial">Governing Law</span></strong><span style="font-size: 8.5pt;color: black"><o:p> </o:p> <p><font face="Arial"><span style="font-size: 8.5pt;color: black"> These terms and conditions shall for all purposes be governed by and interpreted in accordance with the laws of the State of Ohio as those laws are applied to contracts entered into and to be performed entirely in Ohio, without regard to conflicts of law provisions. Any suit or proceeding arising out of or relating to this Agreement shall be commenced exclusively in state or federal court in Wayne County, Ohio, and you irrevocably submit to the exclusive jurisdiction and venue of such courts.<o:p> </o:p> </span></font></p> '); ?>
OceanRanch Posted March 10, 2006 Posted March 10, 2006 ALL single quotes in the define must be escaped. The one I see is cashier's should be cashier\'s HTH Tom
akronmarbles Posted March 10, 2006 Author Posted March 10, 2006 Damn...the devil is in the details! That did it..... I have been working on this file all day - now I'll definately remember to do this in the future. So if I understand correctly - the single quote that I had in my text was acting like the single quote that is part of the php code at the end of the script? '); ?> Except my single quote wasn't followed by the rest of the closing tag and was causing the error message?
OceanRanch Posted March 10, 2006 Posted March 10, 2006 The first single quote (not escaped) parsed by PHP was the cashier's single quote. All the remaining text was expected to be valid PHP etc. but it wasn't so you got the parse error. A good color PHP editor would have shown this to you. Lots of free ones on the net - try google. HTH Tom
Recommended Posts
Archived
This topic is now archived and is closed to further replies.