Forums

Broken Spellchecker IE7 (2 posts)

  1. theooze
    Member
    Posted 5 years ago #

    I'm using IE7 and WP2.1 on Apache 2.2, PHP5 (on FC6). When I try to run the included spell checker on a post I cannot select a replacement for a misspelled word, though i do have the dropdown selection.

    using firefox 2 the spellcheck does allow me to replace the word, however i still get errors in my apache error log.

    in my apache error log i see:

    [Wed Feb 14 10:07:06 2007] [error] [client <IPADDR>] PHP Notice: Undefined index: mode in <PATH>/wordpress/wp-includes/js/tinymce/plugins/spellchecker/tinyspell.php on line 36, referer: http://<SITE>/wp-admin/post.php?action=edit&post=283
    [Wed Feb 14 10:07:06 2007] [error] [client <IPADDR>] PHP Notice: Undefined index: spelling in <PATH>/wordpress/wp-includes/js/tinymce/plugins/spellchecker/tinyspell.php on line 37, referer: http://<SITE>/wp-admin/post.php?action=edit&post=283
    [Wed Feb 14 10:07:06 2007] [error] [client <IPADDR>] PHP Notice: Undefined index: jargon in <PATH>/wordpress/wp-includes/js/tinymce/plugins/spellchecker/tinyspell.php on line 38, referer: http://<SITE>/wp-admin/post.php?action=edit&post=283
    [Wed Feb 14 10:07:06 2007] [error] [client <IPADDR>] PHP Notice: Undefined index: encoding in <PATH>/wordpress/wp-includes/js/tinymce/plugins/spellchecker/tinyspell.php on line 39, referer: http://<SITE>/wp-admin/post.php?action=edit&post=283
    [Wed Feb 14 10:07:06 2007] [error] [client <IPADDR>] PHP Notice: Undefined index: sg in <PATH>/wordpress/wp-includes/js/tinymce/plugins/spellchecker/tinyspell.php on line 40, referer: http://<SITE>/wp-admin/post.php?action=edit&post=283
    [Wed Feb 14 10:07:16 2007] [error] [client <IPADDR>] PHP Notice: Undefined index: mode in <PATH>/wordpress/wp-includes/js/tinymce/plugins/spellchecker/tinyspell.php on line 36, referer: http://<SITE>/wp-admin/post.php?action=edit&post=283
    [Wed Feb 14 10:07:16 2007] [error] [client <IPADDR>] PHP Notice: Undefined index: spelling in <PATH>/wordpress/wp-includes/js/tinymce/plugins/spellchecker/tinyspell.php on line 37, referer: http://<SITE>/wp-admin/post.php?action=edit&post=283
    [Wed Feb 14 10:07:16 2007] [error] [client <IPADDR>] PHP Notice: Undefined index: jargon in <PATH>/wordpress/wp-includes/js/tinymce/plugins/spellchecker/tinyspell.php on line 38, referer: http://<SITE>/wp-admin/post.php?action=edit&post=283
    [Wed Feb 14 10:07:16 2007] [error] [client <IPADDR>] PHP Notice: Undefined index: encoding in <PATH>/wordpress/wp-includes/js/tinymce/plugins/spellchecker/tinyspell.php on line 39, referer: http://<SITE>/wp-admin/post.php?action=edit&post=283
    [Wed Feb 14 10:07:16 2007] [error] [client <IPADDR>] PHP Notice: Undefined index: sg in <PATH>/wordpress/wp-includes/js/tinymce/plugins/spellchecker/tinyspell.php on line 40, referer: http://<SITE>/wp-admin/post.php?action=edit&post=283

    any ideas?

  2. Otto
    Tech Ninja
    Posted 5 years ago #

    Open wp-includes/js/tinymce/plugins/spellchecker/tinyspell.php in a text editor.

    On lines 34-40 you'll find these:

    $cmd = sanitize($_POST['cmd']);
    $lang = sanitize($_POST['lang'], "strict");
    $mode = sanitize($_POST['mode'], "strict");
    $spelling = sanitize($_POST['spelling'], "strict");
    $jargon = sanitize($_POST['jargon'], "strict");
    $encoding = sanitize($_POST['encoding'], "strict");
    $sg = sanitize($_POST['sg'], "bool");

    Change them to these:

    $cmd = @sanitize($_POST['cmd']);
    $lang = @sanitize($_POST['lang'], "strict");
    $mode = @sanitize($_POST['mode'], "strict");
    $spelling = @sanitize($_POST['spelling'], "strict");
    $jargon = @sanitize($_POST['jargon'], "strict");
    $encoding = @sanitize($_POST['encoding'], "strict");
    $sg = @sanitize($_POST['sg'], "bool");

    That will make those error messages go away.

Topic Closed

This topic has been closed to new replies.

About this Topic