olleicua Posted June 8, 2010 Posted June 8, 2010 I'll start by saying I'm not terribly familiar with OsCommerce. A client's site was suddenly showing the error FATAL ERROR: register_globals is disabled in php.ini, please enable it! I did a little research and found a patch here: http://www.oscommerce.com/community/contributions,2097 . I used the one marked: V 1.5 - TAR Archive 5 Sep 2006. The Fatal error is gone now. I then got a PHP error saying that a method of a non-object was being called. I found the block of code where the object was being created in my backup in one of the files that I had patched and was able to fix it. But now I'm getting the error: "Error! Unable to determine the page link!". You can see it here: http://handleithardware.com/index_problem.php . It is clearly being generated by the OsCommerce App, which, as I mentioned, I'm not terribly familiar with. I think what I really need is to find out how I can reinstall OsCommerce and get it to recognize the clients's data (I assume this is in a database). What else will I need to restore? Templates? Alternately if someone can tell me what a page link is an why OsCommerce might not be able to determine it I might be able to fix this. Thanks, Peace ~Sam Auciello
Guest Posted June 8, 2010 Posted June 8, 2010 Sam, The problem sounds like the server upgraded from PHP4 to PHP5 and the site is more than likely version MS2. If that is the case, you will need to update the site to RC2a (which is the latest stable version). I have to warn you though, manually upgrading the site is time consuming and not really for the inexperienced. Chris
FIMBLE Posted June 8, 2010 Posted June 8, 2010 It would be easier to start with a new install of osC and them import the DB tables you need, Customers, orders, products etc... it will save you a lot of time and effort Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
olleicua Posted June 8, 2010 Author Posted June 8, 2010 Sam, The problem sounds like the server upgraded from PHP4 to PHP5 and the site is more than likely version MS2. If that is the case, you will need to update the site to RC2a (which is the latest stable version). I have to warn you though, manually upgrading the site is time consuming and not really for the inexperienced. Chris Thanks Chris, Where can I find RC2a and are there any online guides/instructions for upgrading? I have a lot of experience with PHP just not with OsCommerce. Also, you say upgrading manually is difficult, is there another option? Peace ~Sam
NodsDorf Posted June 9, 2010 Posted June 9, 2010 Thanks Chris, Where can I find RC2a and are there any online guides/instructions for upgrading? I have a lot of experience with PHP just not with OsCommerce. Also, you say upgrading manually is difficult, is there another option? Peace ~Sam You can download RC2 here. Most host I've seen have Oscommerce as a free install in their cpanel which would be the easiest way to do it. The upgrade process is deemed difficult because Osc is an open source program. In your case you are put in the position of trying to know every modification that your client is using. There are quite literally thousands of add-on (contributions) modifications that can be done to Oscommerce, not to mention any custom mods they have done. Installing a fresh version of the newest Osc would be the easiest solution then manually go through each one of the add-ons the client has, and implement them into the new install. Add-ons generally come with installation instructions and some even have auto installers. Some can take just a few minutes with absolutely no understanding of Oscommerce, php or html. Others, can take hours with extensive knowledge. What's more, is some contributions modify code that other contributions need to modify. You have to manually review the code to understand what each is trying to do and make them work together. The last thing to mention is that there are template providers that spew out various templates that many people are drawn to for their ease of install. The problem however, is that the providers usually offer little support and can modify functions which makes installing any basic add-on more difficult. Since you have PHP experience, look at the vanilla version of OSC here. Then look at what your clients site to see how different they are.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.