Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Hello new to all this and need help.


nath69uk

Recommended Posts

Posted

Hello,

 

Im new to the whole website/OSC scene so go easy on me :P .

 

Just tried installing OSCommerce, hopefully to have a go at running an online shop. However upon first steps I get the error. (FATAL ERROR: register_globals is disabled in php.ini, please enable it!) Now I have had a look around at this error and find a fix to get arround this with no joy.

 

I dont want to start a thread off in the relevent forum section because I dont want aload of replies that I dont understand.

 

Just wondering if anyone may be able to point me in the right direction.

 

I am using Fasthosts to host my webpage.

 

Any help or pointers would be appreciated very much.

 

Thanks

 

Nathan

Posted

Are you on a Windows or Linux server, with Fasthosts? Regardless, the ultimate goal is to find your php.ini file and find this line (or something very similar):

register_globals = Off

 

and change to:

register_globals = On

 

1) To find out where your php.ini file is located, create a file called: temp.php. To do this, open up notepad (start/all programs/accessories/notepad).

 

2) Put this in as the code:

<?php

phpinfo();

?>

 

3) Save the file as temp.php, and then upload this to your main directory (like in the public_html folder, or whatever).

 

4) Open a web browser, and type in www.yourwebsite.com/temp.php

 

5) Look at see where php.ini is located.

 

6) Download php.ini once you find out where it's located.

 

7) Alter php.ini as I instructed above (change the register globals to on).

 

8) Save php and reupload it.

 

9) DELETE temp.php from your server.

 

That should do it. If you run into any more snags, let us know.

Jason

 

Simple 1-2-3 Intructions on how to get, install and configure SSL

 

The Google Sandbox explained

 

Simple to follow instructions on how to change the look of your OSC

 

How To Make A Horrible OSC Website

 

my toolbox: All things WordPress-related - All things Adobe-related - PHP Designer 2007 - Codecanyon Junkie - Crimson Editor - Winmerge - phpMyAdmin - WS_FTP

 

my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ...

Posted

Thanks for your help, so far. I have done what you said and found the following line.

 

" Configuration File (php.ini) Path C:\WINDOWS\php.ini "

 

Thats the only line that mentions php.ini.

 

Im running on a windows based server.

 

I'll be ok once I have a little understanding of how things work. Just stuck at the minute.

 

Thanks again.

Posted

before you go down the route of switching register globals to 'on' on your server you might want to read up about the (dis)advantages of doing so. Every now and then the discussion is renewed on the osc forum, e.g. <here>. You should not forget that there is a good reason your host has these disabled by default.

 

imho and if starting from scratch, leave them switched 'off' and use a contribution such as CMOTD's to adapt osC to the r.g. off environment.

 

That's my $0.02.

Posted
before you go down the route of switching register globals to 'on' on your server you might want to read up about the (dis)advantages of doing so. Every now and then the discussion is renewed on the osc forum, e.g. <here>. You should not forget that there is a good reason your host has these disabled by default.

 

imho and if starting from scratch, leave them switched 'off' and use a contribution such as CMOTD's to adapt osC to the r.g. off environment.

 

That's my $0.02.

 

Hi,

I'm new at this and trying follow you instructions. First, I can't find the file that you are refering to "session.php" so I can make proper adjustments as you'd sugested to somehow over come this error that I've been getting:

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

I've uploaded all files to a hosting company and I don't think that I have a root access (I could be wrong).

 

Can you please help me.

 

Thanks,

Posted

Mines sorted now and the way I did it was going to the contribution pages and swapping the files with the ones supplid in the Register Globals Fix.

 

Works now.

 

Who says evryone just takes and never gives???

 

:P

Archived

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

×
×
  • Create New...