I'm part of a not-for-profit organization called Janaagraha based in Bangalore, India. We've just recently developed our website www.janaagraha.org using Drupal and hosted it on Siteground. We had outsourced the development of our Volunteer Management System to another company which developed it using core PHP. The Volunteer Management System used to work on our old website hosted on Yahoo! but has stopped working since we moved it to Siteground. One suspicion we've is that the variable register_globals is "off" in the php.ini file on Siteground and that needs to be "on". Is it possible for me to set it? If so, how?
Thanks,
Indira
Comments
Database is MySQL in both
Both the Volunteer Management System and our Janaagraha website are using MySQL as the database.
Thanks,
Indira
register_globals should be off
Register globals should be off (for security reasons, I'm told). If, for some reason, you need them on, put the following in your .htaccess file: php_flag register_globals on or register_globals = true in your php.ini file.
Thanks
Couldn't find php.ini in my Drupal directory, so created one & added this single line:
register_globals = false
(in my case register_globals was on & I needed it off for 5.6 upgrade)
Pay attention!! This man is a genius!
Kirikoo is a genius.
It is so simple it is brilliant.
It works, and for those of you on web hosts... so am I!
Woo Hoo!
You're Welcome!
LoL thanks :D Happy that's solved your probs :)
Just an addition, I had some mysql problems because of the file I added & after doing some research on the error message I was getting I added a 2nd line to it so now php.ini contains this:
register_globals = false
memory_limit = 40M
seems 40M is the max my host allow, it maybe different with other hosts, I precise also that my drupal is installed in a subdirectory under public_html, good luck.
register_globals
Awesome ... so simple I had forgotten all about it!
seconded!
sorted my D5.6 upgrade problem!
- Connecting Language Learners
www.huitalk.com
--
Neil Cameron
where to create directroy
I am not getting where i have to create directory and what would be the name of it.
Thanks
Worked for me when option 2 here didn't.
Fixed?
Hi Indira - did the solution fix your problem?
I checked the site - which browser is it best viewed on?
Thanks!
If you can not change the PHP setting...
then you can still disable the check for register_globals = off.
Its in modules/system/system.install. Just give the if branche the same code the else branch has and comment the 3 'old' statements.
BUT this is surely not recommended and makes your drupal installation vulnarable.
php.ini in CGI bin
This work as well for me, but I needed to place the file in my CGI bin. Thanks all!
Thanks :-)
I know this is quite an old thread, but I had a permission denied on a client's 1&1 hosting, so made a php.ini and dumped it into the root directory
And that worked a treat. :-) Thanks!
Martin Oxby
Summit Web Solutions