Guest Posted June 23, 2004 Posted June 23, 2004 I have applied the patch to the catalog and admin areas which allows me to keep register_globals = Off but, is there a way to have this Off even during instalation? The company I am hosting will not allow me to turn register_globals = On even for just the time it takes to do the installation. :( Any help here will be appreciated. Thanks!
soccercheese Posted June 23, 2004 Posted June 23, 2004 There is a file in the install\includes folder called application.php You need to comment out this: // Check if register_globals is enabled. // Since this is a temporary measure this message is hardcoded. The requirement will be removed before 2.2 is finalized. // if (function_exists('ini_get')) { // ini_get('register_globals') or exit('FATAL ERROR: register_globals is disabled in php.ini, please enable it!'); // } It worked for me on my local install. :)
posword Posted June 24, 2004 Posted June 24, 2004 I've looked everywhere on the site for this patch but can't find it. Anyone help? I'm using oscommerce-2.2ms2.tar.gz. Or has this release been patched? ------------------------------------------------------------------- Online since 1995! -- the home of inspiration and motivation for generic New Testament Christians. New books by Peter Wade now available from Amazon and others -- Our new book, Bunches of Blessings: Poems by Vivien Wade.
perallerup Posted June 24, 2004 Posted June 24, 2004 There is a file in the install\includes folder called application.php You need to comment out this: Do I still have to install the patch that shouls remove register_globals on?
Guest Posted June 24, 2004 Posted June 24, 2004 You can get the patch here: http://www.oscommerce.com/community/contri...egister_globals
Guest Posted June 24, 2004 Posted June 24, 2004 perallerup, I am using the latest version of osCommerce and had to 'install' the patch both for the install process as well as for catalog and admin.
perallerup Posted June 24, 2004 Posted June 24, 2004 perallerup, I am using the latest version of osCommerce and had to 'install' the patch both for the install process as well as for catalog and admin. Okay. I got the install process to work with the hint above, but still nothing in the admin and catalogpart after installation. I'll try and install the patch again, to see if I can get it to work <_<
soccercheese Posted June 24, 2004 Posted June 24, 2004 Yes. It's a contribution. http://www.oscommerce.com/community/contributions,2097 Then you comment out the application.php page in the install directory and you can install a new osCommerce.
perallerup Posted June 24, 2004 Posted June 24, 2004 Damned - Still not working. Could someone send me the files after the changes are made, so I know that it isnt my skills that affect the results?
soccercheese Posted June 24, 2004 Posted June 24, 2004 I would...but I already have made other modifications too. How do you know it's not working? What error messages are you getting?
perallerup Posted June 24, 2004 Posted June 24, 2004 How do you know it's not working? What error messages are you getting? It repeats the "plz put register_globals on". Then I removed the outcommenting of the .htaccess part that should enable register_globals but then things went seriously wrong - but thats another story ;) What changes have you made? something that affects another shop?
soccercheese Posted June 24, 2004 Posted June 24, 2004 I've added the option type contribution and easy options select contribution and am working on taking out the pricing. I've also changed the headings and text. The shop I'm working on I don't users to actually buy from, just request quotes.
perallerup Posted June 24, 2004 Posted June 24, 2004 Ill have to try once more with the latest patch. Could it be because of a too strict environment on the server?
soccercheese Posted June 24, 2004 Posted June 24, 2004 I don't think so. From what I understand, you either turn register_globals on or off. Somehow, osCommerce is still checking to see whether it is on or off. Maybe you didn't comment out the lines in application_top.php (which is in both admin/includes and catalog/includes). That's all I can think of.
perallerup Posted June 24, 2004 Posted June 24, 2004 :huh: :huh: :huh: Now its working, but I'm convinced that I remembered the Includes/application_top.php in the first run. I uploaded a total new package to the server, and all I did was to change the application_top files to the uncommented status. When I tested it, it worked- but I have not "installed" the entire patch, so I dont understand anything (but hey, it's working ;) )
perallerup Posted June 24, 2004 Posted June 24, 2004 :huh: :huh: :huh: Now its working, is not :blink: Fatal error: Call to undefined function: tep_session_name() in /customers/allerupdata.dk/allerupdata.dk/httpd.www/catalog/includes/application_top.php on line 145 ???
soccercheese Posted June 24, 2004 Posted June 24, 2004 That's probably because you haven't finished applying the patch. It's not checking to see if register_globals is on, but the way it's programmed it still requires it. I'm no PHP expert though.
perallerup Posted June 24, 2004 Posted June 24, 2004 I'm no PHP expert though. And Im certainly no PHP expert :o :unsure: Well, ive changed the four files in admin and in the catalog part, so I dont know what to do anymore... Ive read that thers no need for register_globals ON in the Milestone 3, so Ill just have to wait - I guess... <_<
soccercheese Posted June 24, 2004 Posted June 24, 2004 Bummer. Sorry I couldn't be more help. I've been working locally on WinXP with Apache, PHP, and MySQL installed and it's working fine. I hope it works ok when I upload it all.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.