View Full Version : FATAL ERROR: register_globals is disabled
Hi all.
Can you please help me resolve this fatal error.
A lot of things goes well till i try to make same banner and swap same images in the header.Dreamweaver crashed and after that i can't access my stone and my admin.
Both give me same error
FATAL ERROR: register_globals is disabled in php.ini, please enable it!
Where i can found thise files and how i change them.
Ideleted the swaped images from header.php but the fatal error is still there.
Thank you in advance. Its terrible to not see mystore. :confused:
tbonekkt
5-29-05, 09:50 PM
Enable register_globals in php.ini: http://support.powweb.com/index.php?category=PHP/MySQL&topic_id=57
Thanks Tom .
I copy php.ini but i dont know what to do with.
I resolved my problem when i deleted a script in header.php created by dreamweaver when i swaped images.Now i'm back to normal and i'm glad to see my store again.
Thank you very much.
I resolved my problem? not sure.
Now i must refresh pages one time or more to go inside the store. I'm reading about register_global but not yet able to fix the problem.
Any help will be appreciated.
Thanks.
YvetteKuhns
5-30-05, 12:29 AM
kds, There are a few more threads in this forum with similar problems. We think that PowWeb may have updated php or something, because alot of websites using php are getting errors like yours and others.
http://forum.powweb.com/showthread.php?p=304782
I read in the general section that this got fixed by PowWeb. register_globals had been on by default, and it should not have been changed arbitrarily.
YvetteKuhns
5-30-05, 10:44 AM
Whatever the problem is with php, it is NOT fixed. We had header errors yesterday and today there are undefined variable errors that never appeared until now.
Well, it may be on some servers only. What I did was add register_globals=On to my php.ini edits.
YvetteKuhns
5-30-05, 05:43 PM
Only Judy had a problem and the php.ini file on Leona's site worked but it wouldn't work for Judy's. I went to the PowWeb site to copy the php.ini code there and uploaded it to Judy's htdocs and that fixed it.
Thanks Yvette Kuhns, Thanks Stevel, i'm sorry i was offline when you enswer me.
So if i anderstand Yvette i just wait Powweb fixing the problem.
Stevel, i want to try your suggestion. Where i can found php.ini, i'm sorry i looked for and dont found .
Thanks both and if you heard more about this error please let me know.
Mirzabah
5-30-05, 07:22 PM
As a general rule, register_globals should be OFF. I'm a bit disturbed that PowWeb seems to have it ON on some servers. If you are on a server where they have turned it off you should be thankful. register_globals=ON makes it much easier for hackers to probe and exploit security holes in scripts. Running something like phpNuke with register_globals on is like putting all your valuables out on your front lawn and then going off for a 6-week holiday.
Thanks Mirzabah. I dont know but i readed some where is more secure when register_globals is off.
But please help me to get my store running normal again.Imust refresh page 1,2,3,... times to get normal pages.Where i should start to resolve this.
Many thanks
osCommerce requires that RegisterGlobals be on unless you have installed a contribution which allows it to be off. It's not a simple change. A future version of osC won't require this.
Get a copy of the current PowWeb php.ini following Tom's link above. Find the line that sets RegisterGlobals and edit to say On. Upload this file to your htdocs folder.
YvetteKuhns
5-30-05, 08:54 PM
Get a copy of the current PowWeb php.ini file, upload it "as is" to htdocs and see if that works (as it did for me for Judy's site). If not, you may have to change register_globals=ON.
Thanks a lot Stevel. Now is clear what i must do.
Thanks Yvette i will try this too.
I will give you the news.
Waw thank you both Yvette and stevel, i uploaded php.ini as is and all is ok.
I dont know what this file contain exactly but i will try to learn it later.
Thanks again.
Waw thank you both Yvette and stevel, i uploaded php.ini as is and all is ok.
I dont know what this file contain exactly but i will try to learn it later.
Thanks again.
thank you both Yvette and stevel.
YvetteKuhns
5-31-05, 10:07 AM
Thanks for the update. It is strange that it works one way for some people and another way for others. That confused me, too. But as long as it works, we don't really need to know why. I used to want to know, but now I am too busy to worry why. I just want it to work. ;)
soonerash
5-31-05, 11:20 AM
I, too, am getting the FATAL ERROR: register_globals is disabled in php.ini, please enable it! error message.
Of course, this happens when I'm on vacation! My husband just ran back to where we are staying to get my laptop that has all of my development files on it while I'm sitting in Starbucks investigating the problem until he returns. So, I have no idea yet what my php.ini file is set to for register_globals value.
What is weird though, is that if I keep hitting the refresh button in iExplorer, the main site page will eventually load and the same is true when I'm trying to load the admin page. If I'm able to get the site to load at all, would it do that if the register_globals is turned off in the php.ini file??
I haven't touched the site in over month but to empty the Sessions table right before I left for our vacation.
Is Powweb changing the php.ini file each day?? Why is the error inconsistant???
YvetteKuhns
5-31-05, 12:14 PM
What is weird though, is that if I keep hitting the refresh button in iExplorer, the main site page will eventually load and the same is true when I'm trying to load the admin page.
I got mixed results and my client was upset, because she saw problems I didn't originally see. She did mess up something else on her site and didn't know if that caused the problems. No, PowWeb changed something with php and I had to upload the php.ini file as shown on the PowWeb site. That version worked for her.
http://support.powweb.com/index.php?category=PHP/MySQL&topic_id=57
Click here for a copy of our current php.ini file. Select-all within the box, copy, and paste it into a plain text file. You can then make your customizations with our version as your starting point.
Click where it says "Click here" and copy and paste into Notepad. Save as php.ini and upload into htdocs "as is". If that doesn't work, then edit if necessary.
soonerash
5-31-05, 12:17 PM
I just used the php.ini file in the link provided above, saved it into my htdocs folder, uploaded to server, and everything seems to be working okay now.
I have a question though: when loading a site, is the presence of the custom php.ini looked for first and used if available and if not, a default one on the server used? I looked through all my development files and couldn't locate a php.ini file. Any insight would be greatly appreciated.
Thanks for the custom php.ini file! I really appreciated it! :)
YvetteKuhns
5-31-05, 12:21 PM
I have a question though: when loading a site, is the presence of the custom php.ini looked for first and used if available and if not, a default one on the server used?
Yes. And you can put different ones in different directories. So, if you need one setting in one part of a website, you would use a different directory and customize a php.ini file for that directory. The file must be inside that directory. That would override the default and any in higher directories, but only work for the directory in which it resides.
vBulletin v3.6.0, Copyright ©2000-2010, Jelsoft Enterprises Ltd.