[osCommerce] Register Globals MOD

Discussions about MODs and Tips published on our web site.
GriJo
Posts: 3
Joined: Wed Feb 13, 2008 7:46 am

[osCommerce] Register Globals MOD

Postby GriJo » Thu Feb 14, 2008 2:35 am

Hi,

This link http://www.magic-seo-url.com/oscommerce ... s-off.html

Can it be used for osCommerce RC1?

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [osCommerce RC1] Register Globals

Postby inveo » Thu Feb 14, 2008 6:43 am

Yes, it can be used also with osCommerce 2.2rc1.

englishchrissy
Posts: 5
Joined: Fri Feb 22, 2008 5:04 am

Re: [osCommerce] Register Globals MOD

Postby englishchrissy » Fri Feb 22, 2008 5:12 am

Hi just installed this on my test server. All looked good until I tried to buy something. We use protx 3d secure contribution in an iframe. When I submit the payment it says your card is being processed but the status line at the bottom of the browser is flickering very fast and nothing happens. Strangely, when I tried to follow the code through with my debugger it worked. Any ideas as everything else seems ok. Thanks

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [osCommerce] Register Globals MOD

Postby inveo » Fri Feb 22, 2008 8:24 am

What is the exact URL of store?

englishchrissy
Posts: 5
Joined: Fri Feb 22, 2008 5:04 am

Re: [osCommerce] Register Globals MOD

Postby englishchrissy » Fri Feb 22, 2008 10:15 am

Hi, its running on my localhost test machine. It gets in some sort of loop when the action is 'process' I think. I have not promoted changes to live. The 1st line of code after

} elseif ($_GET['action'] == 'process') {

is

global $_POST, $order, $cart, $currency, $currencies;

Could it be this causing the problem with register_globals off?

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [osCommerce] Register Globals MOD

Postby inveo » Fri Feb 22, 2008 2:31 pm

englishchrissy wrote:Hi, its running on my localhost test machine.

I was asking you, because you have contact me previously by email and you have specified your web site URL as one store of our real customer. I was little confused...
englishchrissy wrote:Could it be this causing the problem with register_globals off?

Does this problem also occur when you enabled Register Globals in php.ini? It looks like an error in PHP. If you are using PHP5 series please upgrade to the latest version.

englishchrissy
Posts: 5
Joined: Fri Feb 22, 2008 5:04 am

Re: [osCommerce] Register Globals MOD

Postby englishchrissy » Fri Feb 22, 2008 3:35 pm

Hi, yes we do use magic seo urls on the live store and yes we are a real customer. On my test localhost, although I use the same files as live, ie. with the magic seo urls code in. They do not work, which is ok for testing as I can see the real url.
With the 'register globals easy' changes the problem occurred when register_globals was on or off. It made no difference.
On my localhost test machine I am using PHP Version 5.1.2. I think we use a later version on live but I have not put the register_globals changes live so I do not know what effect that might have.
Would upgrading my localhost machine to the latest version resolve the problem?

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [osCommerce] Register Globals MOD

Postby inveo » Fri Feb 22, 2008 4:02 pm

englishchrissy wrote:Would upgrading my localhost machine to the latest version resolve the problem?

Since this MOD is using

Code: Select all

if (!ini_get("register_globals")) {
everywhere there is high probability it is caused by used PHP version.

englishchrissy
Posts: 5
Joined: Fri Feb 22, 2008 5:04 am

Re: [osCommerce] Register Globals MOD

Postby englishchrissy » Fri Feb 22, 2008 4:14 pm

Hi, thanks for the advice. We use PHP 5.2.3 on the live site. I will try the register globals mod on live and see if it works. I will probably have to try just the code changes with register globals on as it is the weekend and we need the host admin to change php.ini. Also I have my son over from Holland tomorrow so can't spend to much time on the computer. Also, off snowboarding in Verbier, Switzerland next week so may have to wait a bit. I will try to get this working as it is a great mod and we want to use it. Just looks like protx is the problem at the moment. Thanks for your help. I will let you know what happens. Cheers.

englishchrissy
Posts: 5
Joined: Fri Feb 22, 2008 5:04 am

Re: [osCommerce] Register Globals MOD

Postby englishchrissy » Sat Feb 23, 2008 6:23 am

Hi, just copied all the Register Globals Easy files upto Live (PHP 5.2.3). Left register_globals on in php.ini. Tried to buy something and the same thing happens as on test localhost. It seems to be in a loop as protx_process.php is flickering in the status line of the browser. So, it does not have anything to do with PHP 5.1.2 (localhost) and PHP 5.2.3 (LIve). Hope these clues help. If I find out anything more, I will let you know. Cheers.