RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > SVN Releases > Issues & Bugs

For more information about the ads and why they're here, please see the FAQ
Reply
  #1  
Old 09-06-2006, 04:49 PM
Registered User
 
Join Date: Sep 2006
Posts: 2
Downloads: 1
Uploads: 0
Default Check spelling: An error was encountered on the server. Please try again later.

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 12-29-2006, 05:24 PM
Registered User
 
Join Date: Dec 2006
Posts: 13
Downloads: 0
Uploads: 0
Default Re: Check spelling: An error was encountered on the server. Please try again lat

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 12-29-2006, 11:48 PM
Registered User
 
Join Date: Dec 2006
Posts: 13
Downloads: 0
Uploads: 0
Default Re: Check spelling: An error was encountered on the server. Please try again later.

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 12-30-2006, 01:10 AM
Registered User
 
Join Date: Oct 2006
Posts: 46
Downloads: 0
Uploads: 0
Default Re: Check spelling: An error was encountered on the server. Please try again later.

can you please explain this further like for dummies
can you add the code here to modify main.inc
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 12-30-2006, 02:26 AM
Registered User
 
Join Date: Dec 2006
Posts: 13
Downloads: 0
Uploads: 0
Default Re: Check spelling: An error was encountered on the server. Please try again lat

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:
$OUTPUT->include_script('AJS.js');
The end :-)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 12-30-2006, 03:10 AM
Registered User
 
Join Date: Oct 2006
Posts: 46
Downloads: 0
Uploads: 0
Default Re: Check spelling: An error was encountered on the server. Please try again later.

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 12-30-2006, 03:30 AM
Registered User
 
Join Date: Dec 2006
Posts: 13
Downloads: 0
Uploads: 0
Default Re: Check spelling: An error was encountered on the server. Please try again lat

Perhaps you also need to install cookiesupport.js and include

Code:
$OUTPUT->include_script('cookiesupport.js');
At the same location.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 12-30-2006, 03:49 AM
Registered User
 
Join Date: Oct 2006
Posts: 46
Downloads: 0
Uploads: 0
Default Re: Check spelling: An error was encountered on the server. Please try again later.

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 12-30-2006, 04:19 AM
Registered User
 
Join Date: Dec 2006
Posts: 13
Downloads: 0
Uploads: 0
Default Re: Check spelling: An error was encountered on the server. Please try again lat

Hrm... I have a googiespell nox server setup. Perhaps this new version doesn't automagically reference the google googiespell server.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 12-30-2006, 04:25 AM
Registered User
 
Join Date: Dec 2006
Posts: 13
Downloads: 0
Uploads: 0
Default Re: Check spelling: An error was encountered on the server. Please try again lat

Code:
 // 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('googiespell.js');
  $OUTPUT->include_script('AJS.js');
  $OUTPUT->include_script('cookiesupport.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".
   "googie.lang_no_error_found = \"%s\";\n%s".
   "googie.setCurrentLanguage('%s');\n".
   "googie.decorateTextarea('%s');\n".
   "%s.set_env('spellcheck', googie);",
   $GLOBALS['COMM_PATH'],
Code:
// 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'] = '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;
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

For more information about the ads and why they're here, please see the FAQ

All times are GMT. The time now is 01:31 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright © 2006-2008 RoundCube Webmail Community