ZenphotoCMS Forum
cPanel event log Errors - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: cPanel event log Errors (/thread-1679.html)



cPanel event log Errors - DiFFeReNT - 02-10-2007

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..




cPanel event log Errors - DiFFeReNT - 04-10-2007

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?




cPanel event log Errors - sbillard - 04-10-2007

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.




cPanel event log Errors - DiFFeReNT - 05-10-2007

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 (),

);

*/

`




cPanel event log Errors - sbillard - 05-10-2007

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




cPanel event log Errors - DiFFeReNT - 10-10-2007

Oh. Oops. Thanks for confirming that.