WordPress.org

Support

Parsing error

  • According to the error message, I have a parsing error in the kses.php file on line 21, which is in bold: hammar
    # *** CONTACT INFORMATION ***
    #
    # E-mail: metaur at users dot sourceforge dot net
    # Web page: http://sourceforge.net/projects/kses
    # Paper mail: (not at the moment)
    #
    # [kses strips evil scripts!]
    if (!defined(‘CUSTOM_TAGS’))
    define(‘CUSTOM_TAGS’, false);

    // You can override this in your my-hacks.php file
    if (!CUSTOM_TAGS) {
    $allowedtags = array(
    ‘a’ => array(
    ‘href’ => array(),
    ‘title’ => array()
    ),
    ‘abbr’ => array(‘title’ => array()),
    ‘acronym’ => array(‘title’ => array()),
    ‘b’ => array(),
    ‘blockquote’ => array(‘cite’ => array()),
    // ‘br’ => array(),
    ‘code’ => array(),
    // ‘del’ => array(‘datetime’ => array()),
    // ‘dd’ => array(),
    // ‘dl’ => array(),
    // ‘dt’ => array(),
    ’em’ => array(),
    ‘i’ => array(),
    // ‘ins’ => array(‘datetime’ => array(), ‘cite’ => array()),
    // ‘li’ => array(),
    // ‘ol’ => array(),
    // ‘p’ => array(),

    ————————————–

    Can anyone tell me what the error is?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Edit: is that linebreak there in the code ? Does that matter ?

    Perhaps that’s the problem. I don’t don’t know if there is a line break. I have two versions on the kses saved on my hard drive, and they both have the linebreak. I may have introduced it, though. Should I remove the line break?

    Now I can’t even get into the admin to edit. I get the error message
    Parse error: parse error, unexpected ‘,’ in /home/lashawnb/public_html/wp-includes/kses.php on line 21

    I got it, Podz. The break was causing the error. Thanks.

    Download a new wp if needed, and upload by ftp a new php file.

    Now I’m getting these in the admin, although I now have access to the blog:

    Warning: Cannot modify header information – headers already sent by (output started at /home/lashawnb/public_html/wp-includes/kses.php:564) in /home/lashawnb/public_html/wp-admin/admin.php on line 6

    Warning: Cannot modify header information – headers already sent by (output started at /home/lashawnb/public_html/wp-includes/kses.php:564) in /home/lashawnb/public_html/wp-admin/admin.php on line 7

    Warning: Cannot modify header information – headers already sent by (output started at /home/lashawnb/public_html/wp-includes/kses.php:564) in /home/lashawnb/public_html/wp-admin/admin.php on line 8

    Warning: Cannot modify header information – headers already sent by (output started at /home/lashawnb/public_html/wp-includes/kses.php:564) in /home/lashawnb/public_html/wp-admin/admin.php on line 9

    thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Parsing error’ is closed to new replies.
Skip to toolbar