cPanel event log Errors

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

Comments

  • 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?
  • 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.
  • 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 (),

    );

    */

    `
  • Yes, that did it. Change it to `$conf['allowed_tage'] = array();`
  • Oh. Oops. Thanks for confirming that.
Sign In or Register to comment.