I get the below error message when periodic/notifies.php runs -
but register_globals is OFF =) i've check php.ini and also admin/phpinfo.php
is this an issue?
<font color="red">register_globals is On (warning, you should
have this param in Off state, or your site will unsafe)</font>
<br /> Please go to the <br /> <a href="http://www.boonex.com/trac/dolphin/wiki/GenDolTShooter">Dolphin Troubleshooter</a> <br /> and solve the problem.
|
Deleted dreaded double post |
Deleted dreaded triple post :P |
AndreyP (a Boonex administrator) has said
"Sometimes hosts split PHP to 2. One for sites and second for crons.
you should check both PHP binary."
You may have to contact your host to figure this out
kosmic has also suggested the following:
Try this, change the following in the htaccess so your commenting out the php_flag with a # like so:
<IfModule mod_php4.c>
php_flag register_globals Off
</IfModule>
<IfModule mod_php5.c>
php_flag allow_url_include Off
php_flag register_globals Off
</IfModule>
to read
<IfModule mod_php4.c>
#php_flag register_globals Off
</IfModule>
<IfModule mod_php5.c>
#php_flag allow_url_include Off
#php_flag register_globals Off
</IfModule>
----------------
then open up text editor and paste the below inside, save it as php.ini then upload to the root of your install:
safe_mode = Off
get_magic_quotes_gpc = On
allow_url_include = Off
register_globals = Off
---------------------
There may be other answers available via the search function, but I think these are your best bet. ; )
Hope this helps! Good luck =D
|
I tried everything mentioned to no prevail.
Opened ticket with host and here is what they say
"Dear Kurt Thank you for using our services.
I deem your code says that register globals parameter is enabled on the
whole server by default. But as you can see from php info mentioned
parameter is disabled for your domain name folder. As for the php.ini
and php5-custom-ini.cgi. On your server php configuration works in this
way only. Do not hesitate to contact us for further details. One of our
support representatives will be happy to answer your questions seven
days a week, twenty-four hours a day.
Sincerely yours, Alex Nadtoka (Mr.) CR Department.
Ixwebhosting"
So I guess it's okay.. if cron reports an error that isn't vaild we are okay.. correct? no need to worry about it.. right?
|
How I solved the problem with
'register_globals is On (warning, you should have this param in Off
state, or your site will unsafe'.
By the way, I've already had RG Off in php.ini. That was done by my hoster.
This solution was given to me by Hostgator's tech. support guys. They are really so supportive and helpful :)
Here is their solution (in the text following ==== change MY_ACCOUNT and MY_SITE to your data):
=============================================== we're explicitly telling /usr/local/bin/php to use the php.ini file /home/MY_ACCOUNT/php.ini in the crontab.
I changed the crontab for user MY_ACCOUNT to:
*/15 */1 * * * /usr/local/bin/php -c /home/MY_ACCOUNT/php.ini -q /home/MY_ACCOUNT/public_html/MY_SITE/periodic/cupid.php */15 * * * * /usr/local/bin/php -c /home/MY_ACCOUNT/php.ini -q /home/MY_ACCOUNT/public_html/MY_SITE/periodic/notifies.php 0 0 * * * /usr/local/bin/php -c /home/MY_ACCOUNT/php.ini -q /home/MY_ACCOUNT/public_html/MY_SITE/periodic/cmd.php
This should eliminate the errors you are seeing. I've also changed
the cron frequency to once every 15 minutes as that is the minimum
frequency as stated in our TOS Section 7a - h
(http://www.hostgator.com/tos.shtml)
Jazzery "Jazz" J Linux Administrator - HostGator.com Support Team Toll Free : 1-866-96-GATOR (42867) Local: 1-713-574-5287 ===============================================
By the way, before this problem was solved I got about 1500 of such messages. So you understand, how I'm happy :)
I'm
new to Dolphin and Boonex, but very excited about it's abilities, free
of charge politics and that I had no any problems while installing it.
I have to say, that before I found it, I was frouded twice :(
I was trying to create a site with about 5% of Dolphin's functionality, hired one freelancer, then another, and I lost the money. Anyway, I see this as if I got two paid lessons.
As
I am new to this scripts and have to learn on my mistakes, would you be
glad to help me in some questions that may occure in the future? I'd be
happy to communicate with you!
Be lucky and take care,
ED
|
Thanks ED5 - I had got up to 15,000 'error' emails and was wondering how to solve it. I'm with Hostgator too, but didn't think to ask their support.
To summarize for anyone else coming here, what they did was added -c /home/MY_ACCOUNT/php.ini (where MY_ACCOUNT = your account's name) to the middle of the standard Dolphin cron job sytax in order to point the cron job generating flies to the php.ini file in the root directory. Providing the settings are correct there, the error emails are not generated. See ED5's post above.
Hostgator also changed the time setting as their TOS say that cron jobs should not happen more frequently than every 15 mins.
|
How I solved the problem with 'register_globals is On (warning, you should have this param in Off state, or your site will unsafe'.
By the way, I've already had RG Off in php.ini. That was done by my hoster.
This solution was given to me by Hostgator's tech. support guys. They are really so supportive and helpful :)
Here is their solution (in the text following ==== change MY_ACCOUNT and MY_SITE to your data):
=============================================== we're explicitly telling /usr/local/bin/php to use the php.ini file /home/MY_ACCOUNT/php.ini in the crontab.
I changed the crontab for user MY_ACCOUNT to:
*/15 */1 * * * /usr/local/bin/php -c /home/MY_ACCOUNT/php.ini -q /home/MY_ACCOUNT/public_html/MY_SITE/periodic/cupid.php */15 * * * * /usr/local/bin/php -c /home/MY_ACCOUNT/php.ini -q /home/MY_ACCOUNT/public_html/MY_SITE/periodic/notifies.php 0 0 * * * /usr/local/bin/php -c /home/MY_ACCOUNT/php.ini -q /home/MY_ACCOUNT/public_html/MY_SITE/periodic/cmd.php
This should eliminate the errors you are seeing. I've also changed the cron frequency to once every 15 minutes as that is the minimum frequency as stated in our TOS Section 7a - h (http://www.hostgator.com/tos.shtml)
Jazzery "Jazz" J Linux Administrator - HostGator.com Support Team Toll Free : 1-866-96-GATOR (42867) Local: 1-713-574-5287 ===============================================
By the way, before this problem was solved I got about 1500 of such messages. So you understand, how I'm happy :)
I'm new to Dolphin and Boonex, but very excited about it's abilities, free of charge politics and that I had no any problems while installing it.
I have to say, that before I found it, I was frouded twice :(
I was trying to create a site with about 5% of Dolphin's functionality, hired one freelancer, then another, and I lost the money. Anyway, I see this as if I got two paid lessons.
As I am new to this scripts and have to learn on my mistakes, would you be glad to help me in some questions that may occure in the future? I'd be happy to communicate with you!
Be lucky and take care,
ED
I too am with Hostgator & this solved my problems completely.
Thank you thank you thank you
|