Author Topic: Check spelling: An error was encountered on the server. Please try again later.  (Read 9452 times)

Offline erikpkn

  • Newbie
  • *
  • Posts: 3
Just installed RoundCube Webmail on my server (Fedora Core 5, Apache 2.2.2, PHP 5.1.4) and everything is working well, except for the spelling check. I get a popup window with the following error when I hit Click spelling:

Quote
An error was encountered on the server. Please try again later.

Then, after hitting the OK button, an extra appears in front of Check spelling.

The strange thing is that this error only occurs in Firefox (1.5.0.6), not in Internet Explorer and not in Opera. So my server settings must be right.

Is there some setting in Firefox which is wrong, or is it something else?

Offline codybaker

  • Jr. Member
  • **
  • Posts: 13
I get the same error in IE7 every time I try to spell check with the SVN version from 12/28/2006. The extra < is also present.

Offline codybaker

  • Jr. Member
  • **
  • Posts: 13
I was able to fix this by replacing googiespell.js with the latest version. I also had to install AJS.js and cookiestore.js to rcm's main.inc. It seems to work well in IE7, and Firefox 2.

Offline jpweb

  • Jr. Member
  • **
  • Posts: 46
can you please explain this further like for dummies :)
can you add the code here to modify main.inc

Offline codybaker

  • Jr. Member
  • **
  • Posts: 13
Yeah, sorry. I posted that on my way out of the office this evening.

Step By Step:
1. Download the latest version of googiespell from http://orangoo.com/labs/GoogieSpell/Download/.

2. Copy googiespell.js, and AJS.js to roundcubemail/program/js/. You'll be replacing the existing googiespell.js, but there is no existing AJS.js.

3. Edit roundcubemail/program/steps/mail/compose.inc and search for 'googiespell.js' (It's line 453 in SVN 440) add the following.
Code: [Select]
$OUTPUT->include_script('AJS.js');
The end :-)

Offline jpweb

  • Jr. Member
  • **
  • Posts: 46
did this exact and it has corrected the duplication of arrows and the icon for spell check is not shaded but miss spelled words are not showing errors always states no errors found
maybe I missed something?

Offline codybaker

  • Jr. Member
  • **
  • Posts: 13
Perhaps you also need to install cookiesupport.js and include

Code: [Select]
$OUTPUT->include_script('cookiesupport.js');
At the same location.

Offline jpweb

  • Jr. Member
  • **
  • Posts: 46
done still having problem added lines to compose but still not working. nothing happends in plaintext states no errors found and in html it states cound not execute ajax call. server didnt return valid xml?

this is what i did in compose.inc

// include GoogieSpell
 if (!empty($CONFIG['enable_spellcheck']) && !$isHtml)
  {
  $lang_set = '';
  if (!empty($CONFIG['spellcheck_languages']) && is_array($CONFIG['spellcheck_languages']))
   $lang_set = "googie.setLanguages(".array2js($CONFIG['spellcheck_languages']).");\n";
 
   $OUTPUT->include_script('AJS.js');
   $OUTPUT->include_script('cookiesupport.js');
  $OUTPUT->include_script('googiespell.js');
  $OUTPUT->add_script(sprintf(
   "var googie = new GoogieSpell('\$__skin_path/images/googiespell/','%s&_action=spell&lang=');\n".
   "googie.lang_chck_spell = \"%s\";\n".
   "googie.lang_rsm_edt = \"%s\";\n".
   "googie.lang_close = \"%s\";\n".
   "googie.lang_revert = \"%s\";\n".
 
and in main.inc

/ Make use of the built-in spell checker. It is based on GoogieSpell.
$rcmail_config['enable_spellcheck'] = TRUE;

// For a locally installed Nox Spell Server, please specify the URI to call it.
// Get Nox Spell Server from http://orangoo.com/labs/?page_id=72
// Leave empty to use the Google spell checking service, what means
// that the message content will be sent to Google in order to check spelling
$rcmail_config['spellcheck_uri'] = '';

// These languages can be selected for spell checking.
// Configure as a PHP style hash array: array('en'=>'English', 'de'=>'Deutsch');
// Leave empty for default set of Google spell check languages
$rcmail_config['spellcheck_languages'] = NULL;

What is missing?

Offline codybaker

  • Jr. Member
  • **
  • Posts: 13
Hrm... I have a googiespell nox server setup. Perhaps this new version doesn't automagically reference the google googiespell server.

Offline codybaker

  • Jr. Member
  • **
  • Posts: 13
Code: [Select]
// include GoogieSpell
 if (!empty($CONFIG['enable_spellcheck']) && !$isHtml)
  {
  $lang_set = '';
  if (!empty($CONFIG['spellcheck_languages']) && is_array($CONFIG['spellcheck_languages']))
   $lang_set = &quot;googie.setLanguages(&quot;.array2js($CONFIG['spellcheck_languages']).&quot;);\n&quot;;

  $OUTPUT->include_script('googiespell.js');
  $OUTPUT->include_script('AJS.js');
  $OUTPUT->include_script('cookiesupport.js');
  $OUTPUT->add_script(sprintf(
   &quot;var googie = new GoogieSpell('\$__skin_path/images/googiespell/','%s&_action=spell&lang=');\n&quot;.
   &quot;googie.lang_chck_spell = \&quot;%s\&quot;;\n&quot;.
   &quot;googie.lang_rsm_edt = \&quot;%s\&quot;;\n&quot;.
   &quot;googie.lang_close = \&quot;%s\&quot;;\n&quot;.
   &quot;googie.lang_revert = \&quot;%s\&quot;;\n&quot;.
   &quot;googie.lang_no_error_found = \&quot;%s\&quot;;\n%s&quot;.
   &quot;googie.setCurrentLanguage('%s');\n&quot;.
   &quot;googie.decorateTextarea('%s');\n&quot;.
   &quot;%s.set_env('spellcheck', googie);&quot;,
   $GLOBALS['COMM_PATH'],

Code: [Select]
// Make use of the built-in spell checker. It is based on GoogieSpell.
$rcmail_config['enable_spellcheck'] = TRUE;

// For a locally installed Nox Spell Server, please specify the URI to call it.
// Get Nox Spell Server from [url]http://orangoo.com/labs/?page_id=72[/url]
// Leave empty to use the Google spell checking service, what means
// that the message content will be sent to Google in order to check spelling
$rcmail_config['spellcheck_uri'] = 'webmail.wilkshire.net:10800/?lang=';
//$rcmail_config['spellcheck_uri'] = '';

// These languages can be selected for spell checking.
// Configure as a PHP style hash array: array('en'=>'English', 'de'=>'Deutsch');
// Leave empty for default set of Google spell check languages
$rcmail_config['spellcheck_languages'] = NULL;

Offline codybaker

  • Jr. Member
  • **
  • Posts: 13
Also, I just realized I'm in the wrong forum, I'm using a SVN version.

Reload

  • Guest
Topic moved to 'SVN Releases / Issues & Bugs'