Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Hello new to all this and need help.


6 replies to this topic

#1 nath69uk

  • Community Member
  • 18 posts
  • Real Name:Nathan

Posted 10 October 2006, 03:57

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

#2 jpweber

  • Community Member
  • 1,259 posts
  • Real Name:Jason Weber
  • Gender:Male
  • Location:Detroit, Michigan

Posted 10 October 2006, 06:36

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: PHP Designer 2007 - Winmerge - phpMyAdmin - WS_FTP - Photoshop - Paint Shop Pro - Crimson Editor

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 ...

#3 nath69uk

  • Community Member
  • 18 posts
  • Real Name:Nathan

Posted 10 October 2006, 14:08

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.

#4 skylla

  • Community Member
  • 274 posts
  • Real Name:Sjaak
  • Location:Edinburgh, Scotland

Posted 10 October 2006, 16:02

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.

#5 nath69uk

  • Community Member
  • 18 posts
  • Real Name:Nathan

Posted 10 October 2006, 23:56

Cheers guys I think I'll start my own thread because this is turning into tech questions in general chat. Cheers.

#6 VN44

  • Community Member
  • 8 posts
  • Real Name:Fred J.

Posted 12 October 2006, 23:51

View Postskylla, on Oct 10 2006, 04:02 PM, said:

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,

#7 nath69uk

  • Community Member
  • 18 posts
  • Real Name:Nathan

Posted 12 October 2006, 23:55

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