osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Register Globals Easy

This is a discussion on Register Globals Easy within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Correction of the error: FATAL ERROR: register_globals is disabled in php.ini, please enable it! In one way easy; Modifications ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 02-07-2008, 09:31 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 9,628
Thanks: 65
Thanked 281 Times in 267 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Register Globals Easy

Correction of the error:
FATAL ERROR: register_globals is disabled in php.ini, please enable it!
In one way easy;

Modifications made by:
www.magic-seo-url.com

There are several tutorials and contributions on how to run osCommerce with register_globals Off. However, all are very complicated, break compatibility with other contributions such as payments or delivery modules and are not compatible with both PHP4 and PHP5.

We made a very simple MOD, which allows you to run osCommerce on any PHP powered server with disabled Register Globals including PHP4 and PHP5. This MOD also work with register_globals = On, so if your provider changes the configuration of the web server without your knowledge, osCommerce powered shopping cart will remain untouched.

Please read the README.TXT

More...
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to michael_s For This Useful Post:
cameroti (02-13-2008)
  #2  
Old 02-28-2008, 01:50 PM
Member
 
Join Date: Sep 2003
Posts: 90
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
warrenthewindmill
Default Re: Register Globals Easy

My hosting company have set globals off today without any notice at all. My site is down and has been all day and I cannot get this mod to work. The last section says changes need to be made to :

catalog/install/includes/application.php

which doesn't exist!

In the zip file it has only application_top and sessions (in both catalog and admin)

When I upload the new files I get the following error message:

"Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory."

Does this contribution work or am I missing something? Help would be much appreciated
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 02-28-2008, 02:12 PM
Member
 
Join Date: Sep 2003
Posts: 90
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
warrenthewindmill
Default Re: Register Globals Easy

I now have the shop working but the admin is failing with the following error:

Fatal error: Cannot re-assign $this in mysite/admin/includes/classes/upload.php on line 31

Help please
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 02-28-2008, 02:35 PM
Member
 
Join Date: Sep 2003
Posts: 90
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
warrenthewindmill
Default Re: Register Globals Easy

and the relevant line referred to is commented out:

if ( ($this->parse() == true) && ($this->save() == true) ) {
return true;
} else {

// LINE REMOVED: MS2 update 501112 //****This is line 31
// self destruct
// $this = null;

return false;
}
}
}

function parse() {
global $messageStack;
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 03-06-2008, 06:43 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 9,628
Thanks: 65
Thanked 281 Times in 267 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Register Globals Easy

There is another thread in regards to this:
Testers needed for register_globals/register_long_arrays=off
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 03-27-2008, 07:32 AM
Lurker
 
Join Date: Mar 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Djam is on a distinguished road
Default Re: Register Globals Easy

hi, i have no idea about html or .php, can someone tell me a step by step process on how to do this

i've read
Quote:
Here is change in read me file for this package. Who are facing problem in this module to run. They can make change in configure.php files in front end and admin area.

includes->configure.php
define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

admin->includes->configure.php
define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

Note: Full Package
but exactly where & what should copy and put in the .php files, thanx

Last edited by Djam; 03-27-2008 at 07:37 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Register Globals michael_s New osCommerce Contributions 0 09-25-2007 06:41 AM
Register Globals michael_s New osCommerce Contributions 0 08-25-2007 06:14 AM
Register Globals michael_s New osCommerce Contributions 0 08-23-2007 12:50 AM
Register Globals michael_s New osCommerce Contributions 0 04-09-2007 06:52 AM
Register Globals michael_s New osCommerce Contributions 0 04-05-2007 07:00 AM


All times are GMT -8. The time now is 04:29 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax