Member
Member
DiFFeReNT   02-10-2007, 01:01
#1

My cPanel event log is flooded with the following error when I visit (I think) index.php, themes : index.php/album.php/image.php.

[error] PHP Warning: Invalid argument supplied for foreach() in /home/acct/public_html/domain/gallery/zen/kses.php on line 429

I just setup zenphoto, however I'm using a template I modified several months ago - and I don't remember everything I changed or if I could have messed something up way back then..

Member
Member
DiFFeReNT   04-10-2007, 05:55
#2

According to comments in kses.php,
"This function goes through an array, and changes the keys to all lower case."

Is this used for the purpose of writing filenames to MySQL?

Member
Member
sbillard   04-10-2007, 15:51
#3

This error means that an invalid parameter was passed to the function kses_array_lc($inarray). It is called from the functiion kses($string, $allowed_html, $allowed_protocols = array('http', 'https', 'ftp', 'news', 'nntp', 'telnet', 'gopher', 'mailto'))
and passed the $allowed_html parameter.

I think you will have to figure out what you changed in the template. I suggest you use a 'diff' program to compare your current code to what you based in on.

Member
Member
DiFFeReNT   05-10-2007, 21:11
#4

Maybe it's what I did here - don't allow tags in comments (zp-config.php):
`

////////////////////////////////////////////////////////////////////////////////

// Comment cleaning configuration

////////////////////////////////////////////////////////////////////////////////

// Tags and attributes allowed in comments

// Follow the array form array('tag' => array('attribute' => array()))

$conf['allowed_tags'] = "";

/*

$conf['allowed_tags'] = array (

'a'          => array ('href' => array (), 'title' => array ()),

'abbr'       => array ('title' => array ()),

'acronym'    => array ('title' => array ()),

'b'          => array (),

'blockquote' => array ('cite' => array ()),

'code'       => array (),

'em'         => array (),

'i'          => array (),

'strike'     => array (),

'strong'     => array (),

'ul'         => array (),

'ol'         => array (),

'li'         => array (),

);

*/

`

Member
Member
sbillard   05-10-2007, 23:55
#5

Yes, that did it. Change it to $conf['allowed_tage'] = array();

Member
Member
DiFFeReNT   10-10-2007, 01:49
#6

Oh. Oops. Thanks for confirming that.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.