|
Feeds
- Downloads
- FAQ
- News
- Tutorials
|
|
|
View previous topic :: View next topic |
Author |
Message |
Dauthus Newbie
Joined: Feb 19, 2006 Posts: 2
|
Posted: Fri Jul 21, 2006 11:52 pm Post subject: Fatal error: Call to undefined function: kses_no_null() in.. |
|
|
Fatal error: Call to undefined function: kses_no_null() in /xxx/xxxxxx/xxxxxxx.xxx/xxxxx/mainfile.php on line 1038
Ok, this has me a little perplexed. That exact same mainfile.php works fine on an Apache2Triad installation on my home computer. Any ideas what would cause this?
I actually set this up on my server at home and tried it before I moved it to the online server. |
|
Back to top |
|
|
kguske Site Admin
Joined: May 12, 2005 Posts: 876
|
Posted: Mon Jul 24, 2006 9:59 pm Post subject: Re: Fatal error: Call to undefined function: kses_no_null() |
|
|
I haven't see that issue...but I'll investigate. _________________ |
|
Back to top |
|
|
Jolanta Newbie
Joined: Nov 11, 2006 Posts: 1
|
Posted: Sat Nov 11, 2006 2:02 am Post subject: Re: Fatal error: Call to undefined function: kses_no_null() |
|
|
Hi
I have the same issue... using Nuke 7.8
Any ideas anyone... ?
Thanks
Jolanta |
|
Back to top |
|
|
kguske
|
Posted: Sat Nov 11, 2006 2:34 am Post subject: Re: Fatal error: Call to undefined function: kses_no_null() |
|
|
There should be code in the mainfile check_html function:
Code: if(!function_exists(kses_no_null))
{
@include_once(INCLUDE_PATH."includes/kses/kses.php");
}
|
This loads the kses HTML filter. If that code isn't there or the kses.php file isn't in the includes/kses directory, the referenced errors could occur. |
|
Back to top |
|
|
mrparanormal Newbie
Joined: May 18, 2007 Posts: 2
|
Posted: Fri May 18, 2007 1:01 pm Post subject: Re: Fatal error: Call to undefined function: kses_no_null() |
|
|
I got the same error while installing it in nuke 7.6 and I put the kes.php in includes/kses/kses.php, and the code you mentioned I added it to and still got the error heres the code I replaced the function check_html with
function check_html ($string, $allowed_html = "", $allowed_protocols = array('http', 'https', 'ftp', 'news', 'nntp', 'gopher', 'mailto'))
{
$stop = FALSE;
if(!function_exists(kses_no_null))
{
@include_once(INCLUDE_PATH."includes/kses/kses.php");
}
if (get_magic_quotes_gpc() == 1 )
{
$string = stripslashes($string );
}
$hotHtml = "nohtml";
$Zstrip = stripos_clone($allowed_html, $hotHtml);
if ($Zstrip === false)
{
global $AllowableHTML;
$allowed_html = $AllowableHTML;
} else {
$allowed_html = array('<null>');
}
$string = kses_no_null($string);
$string = kses_js_entities($string);
$string = kses_normalize_entities($string);
$string = kses_hook($string);
$allowed_html_fixed = kses_array_lc($allowed_html);
return kses_split($string, $allowed_html_fixed, $allowed_protocols);
}
function wysiwyg_textarea($name, $value, $config = "NukeUser", $cols = 50, $rows = 10)
{
global $advanced_editor;
# Don't waste bandwidth by loading WYSIWYG editor for crawlers
if ($advanced_editor == 0 or !isset($_COOKIE))
{
echo "<textarea name=\"$name\" cols=\"$cols\" rows=\"$rows\">$value</textarea>";
} else {
@include_once(INCLUDE_PATH."includes/FCKeditor/fckeditor.php");
$oFCKeditor = new FCKeditor($name) ;
$oFCKheight = $rows * 20;
$oFCKeditor->Height = "$oFCKheight";
$oFCKeditor->ToolbarSet = "$config" ;
$oFCKeditor->InstanceName = "$name" ;
$oFCKeditor->Value = "$value" ;
$oFCKeditor->Create() ;
}
}
function wysiwyg_textarea_html($name, $value, $config = "NukeUser", $cols = 50, $rows = 10)
{
global $advanced_editor;
# Don't waste bandwidth by loading WYSIWYG editor for crawlers
if ($advanced_editor == 0 or !isset($_COOKIE))
{
echo "<textarea name=\"$name\" cols=\"$cols\" rows=\"$rows\">$value</textarea>";
} else {
@include_once(INCLUDE_PATH."includes/FCKeditor/fckeditor.php");
$oFCKeditor = new FCKeditor($name) ;
$oFCKheight = $rows * 20;
$oFCKeditor->Height = "$oFCKheight";
$oFCKeditor->ToolbarSet = "$config" ;
$oFCKeditor->InstanceName = "$name" ;
$oFCKeditor->Value = "$value" ;
$wysiwygHTML = $oFCKeditor->CreateHtml() ;
return $wysiwygHTML;
}
}
and still get the error, Help! lol |
|
Back to top |
|
|
Guardian webmaster
Joined: Dec 25, 2005 Posts: 364 Location: Vsetin, Czech Republic
|
Posted: Sat May 19, 2007 10:26 am Post subject: Re: Fatal error: Call to undefined function: kses_no_null() |
|
|
Remove the ampersand - & from this line
Code:
@include_once(INCLUDE_PATH."includes/kses/kses.php");
|
then turn on error reporting in your config.php file, let me know if you get any error messages. |
|
Back to top |
|
|
mrparanormal
|
Posted: Sat May 19, 2007 3:09 pm Post subject: Re: Fatal error: Call to undefined function: kses_no_null() |
|
|
I'll have to do it later this week my main site crashed and I'm in the middle of repairs. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|