mom2amor Posted June 30, 2009 Share Posted June 30, 2009 Hi! I have been doing some work for a client - and I have never used OsCommerce before. We decided to go ahead and keep the shopping cart set up as she had it, and just add a blog into a new directory on the site. Anyway - tonight I was trying to add the text for the home page to link to the blog - here is what I have done: Here is the message I get now when I type in the site address: (which is www.craftyscrapper.ca) Fatal error: Call to a member function add_current_page() on a non-object in /home/jordanag/public_html/includes/application_top.php on line 312 And - here is the only code I changed in the index.php file ("Tools">"define languages") - so I just don't know what I have done!: /* $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', '<center>. !</ . Welcome to Crafty Scrapper located in Rivers, Manitoba We are open Tue-Fri 2pm to 6pm and Sat 10am to 6pm COME SEE US. Check out our new blog at www.craftyscrapper.ca/blog >'); 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', 'We are busy updating our web site with new products daily if you do not see it email us, we probably have it, .'); 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', 'Coming Soon.'); define('TEXT_NO_PRODUCTS2', 'Coming Soon.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', 'Show:'); 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? Welcome to Crafty Scrapper - Your Online Scrapbooking Store. We are located in Rivers, Manitoba Canada.'); *(I had put the blog address in here - and this was where I messed up originally...) } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> Does anyone know what exactly I have messed up? I had added the blog's website address - at least I wanted to! - which is http://www.craftyscrapper.ca/blog but then when everything went wonky, I deleted it. But the damage was already done! I am working on my laptop, which sometimes sets my cursor down in weird places - which I don't notice until I have started typing, so the damage might even have been somewhere else. Can anyone help me? Thanks! Marie Link to comment Share on other sites More sharing options...
mom2amor Posted June 30, 2009 Author Share Posted June 30, 2009 OK - now I have messed it up even worse! I noticed that there were spaces that maybe should have been left at the end of the lines - so I went to add them. I had been too long without doing anything, so it logged me out and I didn't think it had saved it. I checked and could see the site now, but the headings and everything were messed up - so I went back and looked in the index.php file - there was nothing there! So, I just copy and pasted from this post into Notepad and put it back into the index.php file and made the changes again. Now - if you go to www.craftyscrapper.ca - you can see what has happened! I think I need a drink.... :blink: Link to comment Share on other sites More sharing options...
multimixer Posted June 30, 2009 Share Posted June 30, 2009 Can you put back the original files and then explain again what you want to do? My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted June 30, 2009 Share Posted June 30, 2009 Download another copy of the software use the new language file. Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
mom2amor Posted June 30, 2009 Author Share Posted June 30, 2009 OK - I would hug you if you were here! I think I have done it now. I downloaded the software and uploaded the new file. Then, after a bit of trial and error, everything seems to be good now! Thank you so much - I was in a bit of a panic! :rolleyes: Marie Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.