Roundcube Community Forum

SVN Releases => Issues & Bugs => Topic started by: erikpkn on September 06, 2006, 11:49:24 AM

Title: Check spelling: An error was encountered on the server. Please try again later.
Post by: erikpkn on September 06, 2006, 11:49:24 AM
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 (http://www.pkn-vriescheloo.nl.eu.org/roundcubemail/skins/default/images/googiespell/change_lang.gif) 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?
Title: Re: Check spelling: An error was encountered on the server. Please try again lat
Post by: codybaker on December 29, 2006, 12:24:37 PM
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.
Title: Re: Check spelling: An error was encountered on the server. Please try again later.
Post by: codybaker on December 29, 2006, 06:48:19 PM
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.
Title: Re: Check spelling: An error was encountered on the server. Please try again later.
Post by: jpweb on December 29, 2006, 08:10:41 PM
can you please explain this further like for dummies :)
can you add the code here to modify main.inc
Title: Re: Check spelling: An error was encountered on the server. Please try again lat
Post by: codybaker on December 29, 2006, 09:26:03 PM
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/ (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 :-)
Title: Re: Check spelling: An error was encountered on the server. Please try again later.
Post by: jpweb on December 29, 2006, 10:10:41 PM
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?
Title: Re: Check spelling: An error was encountered on the server. Please try again lat
Post by: codybaker on December 29, 2006, 10:30:47 PM
Perhaps you also need to install cookiesupport.js and include

Code: [Select]
$OUTPUT->include_script('cookiesupport.js');
At the same location.
Title: Re: Check spelling: An error was encountered on the server. Please try again later.
Post by: jpweb on December 29, 2006, 10:49:19 PM
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?
Title: Re: Check spelling: An error was encountered on the server. Please try again lat
Post by: codybaker on December 29, 2006, 11:19:28 PM
Hrm... I have a googiespell nox server setup. Perhaps this new version doesn't automagically reference the google googiespell server.
Title: Re: Check spelling: An error was encountered on the server. Please try again lat
Post by: codybaker on December 29, 2006, 11:25:58 PM
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;
Title: Re: Check spelling: An error was encountered on the server. Please try again lat
Post by: codybaker on December 29, 2006, 11:56:25 PM
Also, I just realized I'm in the wrong forum, I'm using a SVN version.
Title: Re: Check spelling: An error was encountered on the server. Please try again later.
Post by: Reload on December 30, 2006, 09:51:01 AM
Topic moved to 'SVN Releases / Issues & Bugs'