Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help! Register_global error and PHP config


tommnorm

Recommended Posts

Posted

I'm trying to use the plugins "Virtual Mall" and "Multi Store" and when I try run them I get this:

 

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.

 

 

I can't this to work. Any suggestions?

I'm trying to get multiple store fronts in one location. If these plugins don't work are there any other solutions?

 

Thanks!!

 

Tom

Posted

Those addons are very old and will probably not run on any modern server. There is a commercial addon that does the same thing, but nothing that I am aware of for free.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Posted

I would not try to get register global variables enabled on your server. If that is the only problem with those two add-ons, it shouldn't be hard to modify the code to use $_REQUEST[varname] to set a local $varname variable. You would have to be thorough in going through the code and finding all the uses, but it's not conceptually difficult. And you would have to disable whatever is checking for register globals to be enabled. I'm assuming that you were able to install them, and it's just the runtime that's being a problem.

 

For example, say you find variable $store_name being passed via a URL Query String (...&store_name=my%20store...) or as a POST field in a form. In each function or file that uses $store_name, you would add at the top $store_name = $_REQUEST['store_name']; and now it should be defined. That's the basic idea. And yes, you have to have some notion of PHP coding.

Posted

You can try opencart - open cart has a multi-store feature

 

better still, why now wordpress multisite with either woocommerce or wp ecommerce :)

"The doorstep to the temple of wisdom is a knowledge of our own ignorance."

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...