mikehipp Posted February 11, 2009 Posted February 11, 2009 Hi all I was following the help that netfirms provides for oscommerce and it resulted in a fatal error. I msg'd the netfirms help desk and they're telling me that I need to restore the application to it's original settings, losing all my work! Arrrgh. I'm pissed because I followed their literature to the letter and now they can't help with the resulting error. These were the instructions that were supposed to remove the "new products" listing from the main page: To remove the new products section from displaying on the Welcome page of your Netfirms Commerce Pro store, follow these steps: 1. Connect to your Netfirms account using an FTP client (ie. Filezilla) or Netfirms File Manager. 2. Open ../catalog/index.php 4. Make the following changes to the file:FROM: <tr> <td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS);?></td> </tr>TO: <tr> <td></td> </tr> 5. Save the changes on the server When I did that, I immediately got this error, calling to a totally different file? Fatal error: Cannot redeclare tep_db_connect() (previously declared in /mnt/w0305/d11/s02/b024950b/www/SoyCandlesbyPhebes/catalog/includes/functions/database.php:13) in /mnt/w0305/d11/s02/b024950b/www/SoyCandlesbyPhebes/catalog/includes/functions/database.php on line 13 Can anybody give me a clue as to what to do? If I don't get this fixed I lose all my work from the last couple of days. Thank you!
spooks Posted February 11, 2009 Posted February 11, 2009 what did you use to edit the file? Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al.
mikehipp Posted February 11, 2009 Author Posted February 11, 2009 what did you use to edit the file? I used Notepad
spooks Posted February 11, 2009 Posted February 11, 2009 some editors damage files (like file manager) but u should be ok with notepad. The best method is to keep a local copy of all files & dbase, edit localy (keeping backups) then upload changed files, saves many problems, & if site is hacked you can wipe it & upload anew. I suspect u changed more than u think. post code of index.php here use ftp to check file dates, see if u changed others by mistake Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al.
mikehipp Posted February 11, 2009 Author Posted February 11, 2009 I got it figured out Sam. I had uploded the catalog/index.php to catalog../english/index.php and that was what caused the error. Thank you so much for your help, your last post prompted me to go looking around at the indexs
Recommended Posts
Archived
This topic is now archived and is closed to further replies.