cron error: URL include

I keep getting this email from cron:

<font color="red">allow_url_include 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.

Quote · 17 Nov 2009

If you have a php.ini file in the root of your Dolphin, add this to it:

allow_url_include=Off

If you are on a shared host, you may have to ask them to turn it off for you.

Nothing to see here
Quote · 17 Nov 2009

this is what i have found in the php file:


;;;;;;;;;;;;;;;;;;
; Fopen wrappers ;
;;;;;;;;;;;;;;;;;;

; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
allow_url_fopen = Off
allow_url_include = Off

around line 493

Quote · 17 Nov 2009

line 493? Wow, thats a big php.ini file.

Nothing to see here
Quote · 17 Nov 2009

i will be glad to let you see it. I am a noob at this, it could explain a lot of errors.

Quote · 17 Nov 2009

1143 lines of code

Quote · 17 Nov 2009

in the root of your dolphin, there should be a .htaccess file, you can try putting this in there if it doesn't already exist

<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
allow_url_include Off
</IfModule>

Nothing to see here
Quote · 17 Nov 2009

no luck there. it is set up correctly in the php.ini file.

Quote · 17 Nov 2009

I have this same problem and so do a couple others iv noticed, with this error im guessing you cant upload videos ether.

Quote · 18 Nov 2009

..

Quote · 18 Nov 2009

Oops that solution is no good i posted its actully.



you open inc/header.inc.php and comment mentioned line

change:

$aErrors[] = (ini_get('allow_url_include') == 0) ? '' : '<font color="red">allow_url_include is On (warning, you should have this param in Off state, or your site will unsafe)</font>';

to:

//    $aErrors[] = (ini_get('allow_url_include') == 0) ? '' : '<font color="red">allow_url_include is On (warning, you should have this param in Off state, or your site will unsafe)</font>';

Quote · 18 Nov 2009

.htaccess php settings do not work for php binary, try to set all settings using php.ini file.

Also sometimes php binary is not using the same php.ini file as php which open your web pages.

To force php binary to use particular php.ini file use the following cron job:

* * * * * cd /your-path-to-dolphin/periodic; /your-path-to-php-binary/php -q -c /your-path-to-php-ini-file/php.ini cron.php

Do not forget to change these with your real values:

your-path-to-dolphin

your-path-to-php-binary

your-path-to-php-ini-file

Rules → http://www.boonex.com/terms
Quote · 19 Nov 2009

did you my fix work for you?

Quote · 19 Nov 2009

Commenting out the line by adding // is not a "solution". We need to determine why this is still happening. Videojme, if you are still getting this error, please let us know.

Chris

Nothing to see here
Quote · 19 Nov 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.