pfaustino Posted September 4, 2006 Posted September 4, 2006 First of all, this is a great contribution and I can't wait to see EdgeIO pick up my feed. Also, I already have a Google Base feed so I'm a little worried that this will overwrite that feed. Also, I want to stress that my version of OSCommerce is a highly modified version of MS2.2 with tons of contributions installed. But since there is only one file to install and NO oscommerce files to modify, there should be no problems right. So if you are having problems, you might want to try my solution below. The bad stuff. It didn't work as installed. I was getting database errors. Then when I fixed the code (more on this later), It completely screwed up my oscommerce administration page. I couldn't get into ANY of my /admin pages!!! because it kept looking for /admin/includes/languages/en-us.php. The good news. I got it to work. So Here's the Solution: 1. To get rid of the database not found errors, I replaced the stock oscommerce classes code from line 25 with: /*INCLUDE NEEDED OS COMMERCE CLASSES*/ require('includes/application_top.php'); /*END STOCK OS COMMERCE INCLUDE*/ 2. To not get it to break my admin (my God, this put me in panic mode when I couldn't check out my admin pages). I had to shut down Firefox completely and restart. After that, I changed two lines: search for : $language='en-us'; replace with : $languagerss='en-us'; AND search for : $output.='<language>'.$language.'</language>'."\n"; replace with : $output.='<language>'.$languagerss.'</language>'."\n"; Apparently, this was setting a global session variable $languages so that my oscommerce language which was "english" was changed to "en-us". So whenever the admin pages wanted to access language files it would look for them in /admin/languages/en-us.php instead of /admin/languages/english which caused a fatal error in my browser. Weird huh? Any way, it seems to work now. Thanks again for a great contribution. Patrick Faustino Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.