mym0527 Posted June 25, 2010 Posted June 25, 2010 hi, I am new to oscommerce. I have sucessfully install my template and activate my information box.Everything was working fine until I try to add text to my custom page ( which by the way I still don't understand how to add heading or any formatted text!!!). Now I am getting this message; Fatal error: Call to a member function add_current_page() on a non-object in /home/ekxcukqb/public_html/shop/includes/application_top.php on line 312 HELP!!!! please I have search the forum for an answer but no result! :'(
Jan Zonjee Posted June 25, 2010 Posted June 25, 2010 I have search the forum for an answer but no result! :'( Use Google to search this site. Works better your search phrase here site:forums.commerce.com Regarding your question. Change catalog/includes/application_top.php according to the instructions on Github (simple change). However, this error is a symptom. There must be an another one causing this one.
chadcloman Posted June 26, 2010 Posted June 26, 2010 To build on what Jan wrote, the following will often work as a short-term fix: Delete your internet browser's cookies (or if you're technically inclined, just delete the one named "osCsid"). Exit and restart your browser. Check out Chad's News.
mym0527 Posted June 28, 2010 Author Posted June 28, 2010 Use Google to search this site. Works better your search phrase here site:forums.commerce.com Regarding your question. Change catalog/includes/application_top.php according to the instructions on Github (simple change). However, this error is a symptom. There must be an another one causing this one. Thank you so much for your reply!!! Have I sort out the problem, but I am now stuck with the text that I want to put in my About us page. This is what I have done so far!!!! <?php /* $Id: shipping.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ define('NAVBAR_TITLE', 'About Us'); define('HEADING_TITLE', 'About Us'); define('TEXT_INFORMATION', <H1><FONT color=#5e222e size=2 face="Tahoma, Arial, Helvetica, sans-serif">Welcome to Douceur Uk - French Carribean handmade preserves</FONT></H1> <P>Only the whole fruit cooked in a syrup - for pure enjoyment with 100% natural ingredients ! <BR><BR>This is the secret of <FONT color=#5e222e><STRONG>Douceur Uk</STRONG></FONT> jams and Marmalades. During the production of our products, We reveal all the secrets of the tropical fruits.Our preserves are inspired and made using traditional recipes and preserving methods from Martinique and Guadeloupe.</P> <P>Martinique is truly A little bit of France and one of the most romantic island in the Caribbean. The city of Saint-Pierre (destroyed by a volcanic eruption of Mount Pelée), was often referred to as the "Paris of the Lesser Antilles".Martinique\’s culture blends French and Caribbean influences. His hybrid cuisine mix elements of African, French, and South Asian traditions.</P> <P>The Guadeloupe Archipelago located in the eastern Caribbean Sea includes the large islands of Basse-Terre and Grande-Terre, the nearby islands of Marie-Galante and La Desirade and numerous smaller islands. <BR>It also includes the island of Saint Barthelemy, and the French controlled part of the island of Saint Martin.</P> <P>Our jams and marmalades contain no added salt, preservative and are free of gelatine, synthetic thickening agents, colourants and flavour additives. Enjoy the pure taste of fruit imported or sourced from local market gardeners or farm shops for the biggest pleasure of the gastronomes and gourmands. </P> <P>Who doesn\’t love jam toast in the morning? It\’s quick and easy. The type of breakfast many of us here, prefer on a weekday morning for that rush hour energy boost. Discover the authentic taste and flavour of our grandma\’s caribbean recipes.</P> <P></P><FONT color=#5e222e> <HR> </FONT> <P></P> <P><STRONG><FONT color=#5e222e>Douceur Uk</FONT></STRONG> traditional or unusual preserves like to accompany you throughout the day. From your breakfast up to the last tea of evening,. Remembering the tea time snack for little one as for grown up. And what better than a nice crepe or toast with a traditional handmade quality preserve. In the secure online shop you will find our broad range of classical and original perfumes of <A href="http://douceur-uk.co.uk/shop/index.php?cPath=21"><U><FONT color=#ff0066>jams</FONT></U></A> and <A href="http://douceur-uk.co.uk/shop/index.php?cPath=24"><FONT color=#ff0066><U>marmalades</U></FONT></A> available separately or in food <A href="http://douceur-uk.co.uk/shop/index.php?cPath=22"><FONT color=#ff0066><U>gift boxes</U></FONT></A><U>. <BR></U></P> ); ?> But now I am get a Parse error: Parse error: syntax error, unexpected '<' in /home/ekxcukqb/public_html/shop/includes/languages/english/about_us.php on line 16 What have I done wrong this time? Please help me again!!!! mym
germ Posted June 28, 2010 Posted June 28, 2010 define('TEXT_INFORMATION', <H1><FONT color=#5e222e size=2 Needs to be: define('TEXT_INFORMATION', '<H1><FONT color=#5e222e size=2 ); Needs to be: '); You must encapsulate the text within apostrophe's. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
MrPhil Posted June 28, 2010 Posted June 28, 2010 define('TEXT_INFORMATION', '<H1><FONT.... '); and if you use any single quotes or apostrophes ' within the text, you need to "escape" them: \' e.g., define('TEXT_INFORMATION', '<H1><FONT.... Martinique\'s... '); I see you were using an acute accent mark ’ which probably doesn't need to be escaped (but it shouldn't hurt). So long as your page encoding (charset) includes that character, it can be used.
mym0527 Posted June 28, 2010 Author Posted June 28, 2010 Thank you very much guys for your help :thumbsup: I have sorted the problem! thx, thx, thx!!!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.