Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

FATAL ERROR


Guest

Recommended Posts

Posted

I have uploaded the catalog folder. and set the access om the config file to 777.

 

But when i go to www.sharkline.org/ i get the message:

 

FATAL ERROR: register_globals is disabled in php.ini, please enable it!

 

 

I don`t know what this means...

 

 

Help anyone, please

 

 

Thanks

Webmaster

sharkline.org

Posted

Morten,

 

You need to create a file called php.ini, and upload it to your site.

 

osC requires register_globals and register_long_arrays set to "On".

 

So, create a text file and put in two lines of code:

register_globals = On
register_long_arrays = On

and see what happens.

 

Rob

Rob Bell - Inspired Graphix

Customising osCommerce in Australia, and the world!

View my profile for web and email links.

 

I'm sorry, but i cannot offer Free support via PM etc, and osCommerce forums prohibit me from putting any reference to paid support in my signauture.

However viewing my profile may provide links to my website or something like that which you may find useful.

Posted

Sorry, this post http://www.oscommerce.com/forums/index.php?showtopic=182915 should help in a little more detail.

 

Alternatively, contact your web host and see if they will turn it on for you.

 

Rob

Rob Bell - Inspired Graphix

Customising osCommerce in Australia, and the world!

View my profile for web and email links.

 

I'm sorry, but i cannot offer Free support via PM etc, and osCommerce forums prohibit me from putting any reference to paid support in my signauture.

However viewing my profile may provide links to my website or something like that which you may find useful.

Posted
I have uploaded the catalog folder. and set the access om the config file to 777.

 

But when i go to www.sharkline.org/ i get the message:

 

FATAL ERROR: register_globals is disabled in php.ini, please enable it!

I don`t know what this means...

Help anyone, please

Thanks

Webmaster

sharkline.org

 

Hi - It's likley you'll need to do this :

 

If the host uses suPHP to parse php files, you have the option of using a custom php.ini file.

 

Your hosting account can have multiple php.ini files on your account in different

folders so you can customize the php processing in different folders should

your script require it. A php.ini file will not inherit down into subfolders,

however, you can create a .htaccess file in the same folder as the php.ini file

and place the following code into it:

 

suPHP_ConfigPath /home/yourusername/public_html/path/to/php.ini

 

This will cause the php.ini file to affect all subfolders, unless a php.ini file is in a subfolder, at which point

the php.ini in the subfolder takes precendence.

 

In php.ini, you will need to use the actual php.ini syntax instead of the

php_value or php_flag syntax you would normally use in .htaccess (Which should

not be used at all):

 

setting_name = setting_value

 

So, this means if you move the settings from .htaccess to php.ini, you must

convert the format. Let's say you have the following line in your .htaccess

file:

 

php_value register_globals 0

 

the corresponding php.ini format is as follows:

 

register_globals = Off

 

Notice how the value 0 becomes Off and 1 becomes On. Now if your php_value has

quotes like the following, for example:

 

php_value include_path ".:/home/user/lib"

 

The corresponding php.ini format is:

 

include_path = ".:/home/user/lib"

 

and so on. You can see a list of entries you can use in your php.ini file at

http://us2.php.net/manual/en/ini.php . You should only use the settings you

need to change in your php.ini.

 

For the PHP settings you do not have in your php.ini file, PHP will use our

default configurations.

  • 3 weeks later...
Posted

There is no longer any problem whit my Joomla :)

 

Thanx for the help :)

Archived

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

×
×
  • Create New...