Activating spellchecker brings up warning

Bug #1051529 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Son Nguyen

Bug Description

Mahara 1.6dev (latest code)

When I activate the spellchecker in the cover letter section and move on to "Education and employment" (or any other page), I get the following warnings:

--------
[WAR] 65 (js/tinymce/plugins/spellchecker/config.php:22) Use of undefined constant PSPELL_FAST - assumed 'PSPELL_FAST'
Call stack (most recent first):

    log_message("Use of undefined constant PSPELL_FAST - assumed 'P...", 8, true, true, "/home/kristina/code/16stable/htdocs/js/tinymce/plu...", 22) at /home/kristina/code/16stable/htdocs/lib/errors.php:446
    error(8, "Use of undefined constant PSPELL_FAST - assumed 'P...", "/home/kristina/code/16stable/htdocs/js/tinymce/plu...", 22, array(size 53)) at /home/kristina/code/16stable/htdocs/js/tinymce/plugins/spellchecker/config.php:22
    require_once("/home/kristina/code/16stable/htdocs/js/tinymce/plu...") at /home/kristina/code/16stable/htdocs/js/tinymce/plugins/spellchecker/includes/general.php:15
    require_once("/home/kristina/code/16stable/htdocs/js/tinymce/plu...") at /home/kristina/code/16stable/htdocs/js/tinymce/plugins/spellchecker/rpc.php:10

[WAR] 65 (js/tinymce/plugins/spellchecker/config.php:28) Use of undefined constant PSPELL_FAST - assumed 'PSPELL_FAST'
Call stack (most recent first):

    log_message("Use of undefined constant PSPELL_FAST - assumed 'P...", 8, true, true, "/home/kristina/code/16stable/htdocs/js/tinymce/plu...", 28) at /home/kristina/code/16stable/htdocs/lib/errors.php:446
    error(8, "Use of undefined constant PSPELL_FAST - assumed 'P...", "/home/kristina/code/16stable/htdocs/js/tinymce/plu...", 28, array(size 53)) at /home/kristina/code/16stable/htdocs/js/tinymce/plugins/spellchecker/config.php:28
    require_once("/home/kristina/code/16stable/htdocs/js/tinymce/plu...") at /home/kristina/code/16stable/htdocs/js/tinymce/plugins/spellchecker/includes/general.php:15
    require_once("/home/kristina/code/16stable/htdocs/js/tinymce/plu...") at /home/kristina/code/16stable/htdocs/js/tinymce/plugins/spellchecker/rpc.php:10

[WAR] 65 (js/tinymce/plugins/spellchecker/classes/utils/JSON.php:351) Uninitialized string offset: 60
Call stack (most recent first):

    log_message("Uninitialized string offset: 60", 8, true, true, "/home/kristina/code/16stable/htdocs/js/tinymce/plu...", 351) at /home/kristina/code/16stable/htdocs/lib/errors.php:446
    error(8, "Uninitialized string offset: 60", "/home/kristina/code/16stable/htdocs/js/tinymce/plu...", 351, array(size 0)) at /home/kristina/code/16stable/htdocs/js/tinymce/plugins/spellchecker/classes/utils/JSON.php:351
    Moxiecode_JSONReader->peek() at /home/kristina/code/16stable/htdocs/js/tinymce/plugins/spellchecker/classes/utils/JSON.php:323
    Moxiecode_JSONReader->readAway() at /home/kristina/code/16stable/htdocs/js/tinymce/plugins/spellchecker/classes/utils/JSON.php:126
    Moxiecode_JSONReader->readToken() at /home/kristina/code/16stable/htdocs/js/tinymce/plugins/spellchecker/classes/utils/JSON.php:379
    Moxiecode_JSON->readValue(object(Moxiecode_JSONReader)) at /home/kristina/code/16stable/htdocs/js/tinymce/plugins/spellchecker/classes/utils/JSON.php:369
    Moxiecode_JSON->decode("{"id":"c0","method":"checkWords","params":["en",["...") at /home/kristina/code/16stable/htdocs/js/tinymce/plugins/spellchecker/rpc.php:93

[WAR] 65 (js/tinymce/plugins/spellchecker/classes/utils/JSON.php:339) Uninitialized string offset: 60
Call stack (most recent first):

    log_message("Uninitialized string offset: 60", 8, true, true, "/home/kristina/code/16stable/htdocs/js/tinymce/plu...", 339) at /home/kristina/code/16stable/htdocs/lib/errors.php:446
    error(8, "Uninitialized string offset: 60", "/home/kristina/code/16stable/htdocs/js/tinymce/plu...", 339, array(size 1)) at /home/kristina/code/16stable/htdocs/js/tinymce/plugins/spellchecker/classes/utils/JSON.php:339
    Moxiecode_JSONReader->read() at /home/kristina/code/16stable/htdocs/js/tinymce/plugins/spellchecker/classes/utils/JSON.php:90
    Moxiecode_JSONReader->readToken() at /home/kristina/code/16stable/htdocs/js/tinymce/plugins/spellchecker/classes/utils/JSON.php:379
    Moxiecode_JSON->readValue(object(Moxiecode_JSONReader)) at /home/kristina/code/16stable/htdocs/js/tinymce/plugins/spellchecker/classes/utils/JSON.php:369
    Moxiecode_JSON->decode("{"id":"c0","method":"checkWords","params":["en",["...") at /home/kristina/code/16stable/htdocs/js/tinymce/plugins/spellchecker/rpc.php:93

[WAR] 65 (js/tinymce/plugins/spellchecker/rpc.php:104) Trying to get property of non-object
Call stack (most recent first):

    log_message("Trying to get property of non-object", 8, true, true, "/home/kristina/code/16stable/htdocs/js/tinymce/plu...", 104) at /home/kristina/code/16stable/htdocs/lib/errors.php:446
    error(8, "Trying to get property of non-object", "/home/kristina/code/16stable/htdocs/js/tinymce/plu...", 104, array(size 58)) at /home/kristina/code/16stable/htdocs/js/tinymce/plugins/spellchecker/rpc.php:104

-------------------------

Tags: tinymce
Changed in mahara:
status: New → Triaged
importance: Undecided → High
Changed in mahara:
status: Triaged → Confirmed
importance: High → Medium
tags: added: tinymce
Changed in mahara:
milestone: 1.6.0 → 1.7.0
Son Nguyen (ngson2000)
Changed in mahara:
assignee: nobody → Son Nguyen (ngson2000)
status: Confirmed → In Progress
Revision history for this message
Son Nguyen (ngson2000) wrote :

I suggest we upgrade the TinyMCE to version 3.5.8 first.

Revision history for this message
Son Nguyen (ngson2000) wrote :

This issue will be fixed in the bug https://bugs.launchpad.net/mahara/+bug/1040337

Revision history for this message
Son Nguyen (ngson2000) wrote :
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/1998
Committed: http://gitorious.org/mahara/mahara/commit/741e3bb31f73996088a0fdf0b4b310e977831a76
Submitter: Aaron Wells (<email address hidden>)
Branch: master

commit 741e3bb31f73996088a0fdf0b4b310e977831a76
Author: Son Nguyen <email address hidden>
Date: Wed Jan 16 11:27:29 2013 +1300

    Fix warnings when clicking spell checker button (Bug #1051529)

    Change-Id: I4143374a28f8342df9e2646b3c14cc1b252bc015
    Signed-off-by: Son Nguyen <email address hidden>

Aaron Wells (u-aaronw)
Changed in mahara:
status: In Progress → Fix Committed
Aaron Wells (u-aaronw)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.