I've just uploaded version 0.6.0 of the HunSpellChecker which is compatible with Umbraco V6.1.x. I've done a sanity check on a minimal V6.1.3 site but would appreciate it greatly if you can let me know how it goes.
Hi Adrian,
Thanks for getting back to me with this - sorry for the delay, I've had a couple of other projects to work on. I've installed the package as per your instructions, but the spell checker pop-up returns the following error:
Hi Adrian, I had modified the httphandlers entry- but I didn't modify the handlers entry in the web.config. I can confirm it is now working - thanks very much for your help!
Glad to hear it's working fine now jonok. It was a bit to challenging for me to figure out how to safely package the web.config changes for these sections so I ended up writing them up as manual steps.
I have just tried to install HunSpellChecker_0.6.0 and I get an error on install:
Maximum request length exceeded.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Maximum request length exceeded.
This is due to the size of the bundled dictionaries exceeding the default max request length.
From the HunSpellCheker homepage:
Pre Install -Read this before installing as a local package...
If you want to install as a local package, you'll need to edit the web.config and increase the httpRuntime maxRequestLength attribute to be larger than the size of the zipped up package - 8192 should do it.
I've been fighting with this today and have ended up creating our own version which calls "Initialise" instead of erroring.
One thing I did note however was if you install multiple times the web.config will create the AppSettings as a CSV.
Another thing to check is if you're running en_GB you will need to set HunSpellCheckerDefaultDictionaryCulture to "en_US" or install an en_GB dictionary.
Not sure why the HunSpellCheckerAppEventHandler would throw an error if using the right version of the plugin for your Umbraco version but yes a call to the static HunSpellChecker.Initialise() will work.
Not sure why the installer creates appSettings as a csv - thats a bit o Umbraco black magic - I'm not that confident of the package manager installer and usually install by unzipping and setting config file properties etc manually - not quite as quick I know.
You could always set add key="HunSpellCheckerDefaultDictionaryCulture" value="en-AU" /> en_AU is based from the en_GB dictionary along with a few Australianisms - eg Wombat / etc etc - better than switching over to the "dark side" ;) and using en_US
Setting the HunSpellCheckerDefaultDictionaryCulture to en-US fixes the following error (The installed value was <add key="HunSpellCheckerDefaultDictionaryCulture" value="" />).
Error response: Spell checker plugin not yet initialised. Please try again later.
Prior to setting to en-US I got:
2013-12-03 15:26:03,574 [5] INFO Usc.Plugins.HunSpellChecker.HunSpellChecker - Spell checker accessed before Init Completed. 2013-12-03 15:26:03,576 [5] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 32] An unhandled exception occurred System.Exception: Spell checker plugin not yet initialised. Please try again later. at Usc.Plugins.HunSpellChecker.HunSpellChecker.SpellEngine(String language) at Usc.Plugins.HunSpellChecker.HunSpellChecker.CheckWords(String language, String[] words) at Usc.Plugins.HunSpellChecker.HunSpellChecker.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
It seems an odd error but in case anyone else has this problem, this fixed it for me.
I will now try to install an en-gb dictionary and convert to en-GB as too long on the dark side is unhealthy.
Does anyone know where to find the correct en_GB dictionary? I guess I could copy the en_US files and corrcet the spellings manually :s
Scrub that - I copied the en_AU files (en_AU.aff and en_AU.dic in umbraco/Plugins/HunSpellChecker/dict) and renamed to en_GB.aff and au_GB.dic and changed the web.config to:
I couldn't find an eb_GB dictionary when I setup this plugin (would have thought there'd be one seeing as thats where the language started from...?!)
You've suggested a good way to coax the spell checker into being Brittish (with a slight Aussie accent :b ) - will add it to the plugins project front page.
Version for Umbraco 6.1
Just wondering if you have any plans to modify this package for V6.1? I tried to install it but got this error:
Hi jonok,
Thanks for the feedback - it looks like the IApplicationEventHandler has been moved to a different umbraco DLL in V6?
We are looking at upgrading our site to V6.1.3 sometime during September so I will be upgrading the package then (it appears)...
Unfortunately the plugin was built from a larger project so I cant easily provide a buildable zip of the source for you.
Hi jonok,
I've just uploaded version 0.6.0 of the HunSpellChecker which is compatible with Umbraco V6.1.x. I've done a sanity check on a minimal V6.1.3 site but would appreciate it greatly if you can let me know how it goes.
Thanks,
Adrian
Hi Adrian, Thanks for getting back to me with this - sorry for the delay, I've had a couple of other projects to work on. I've installed the package as per your instructions, but the spell checker pop-up returns the following error:
Here's the error:
Hi jonok,
Sounds like either the package installer didn't work fully, or the web.config entries may be set incorrectly. I'd try the following:
1. Have a look at the package.xml file in the distribution zip and see that all of the files have been copied to the correct locations.
2. Revisit the instructions for installation, esp the ones about setting the web.config entries: i.e.
Edit the web.config file and edit handlers / httpHandlers as appropriate for IIS setup - just add both if you are not sure...
httpHandlers - comment out the old GoogleSpellChecker.ashx httpHandler and add
<add verb="GET,HEAD,POST" path="HunSpellChecker.ashx" type="Usc.Plugins.HunSpellChecker.HunSpellChecker" validate="True" />
Handlers - again comment out the old GoogleSpellChecker handler and add the new handler
<add verb="GET,HEAD,POST" preCondition="integratedMode" name="SpellChecker" path="HunSpellChecker.ashx" type="Usc.Plugins.HunSpellChecker.HunSpellChecker" />
3. Verify the tinyMceConfig.config has only HunSpellChecker.ashx for the spellchecker_rpc_url
If this works can you please report as compatible with Umbraco V6.1?
Thanks,
Adrian
Hi Adrian, I had modified the httphandlers entry- but I didn't modify the handlers entry in the web.config. I can confirm it is now working - thanks very much for your help!
double post
Glad to hear it's working fine now jonok. It was a bit to challenging for me to figure out how to safely package the web.config changes for these sections so I ended up writing them up as manual steps.
Hope your site goes well.
Adrian
I have just tried to install HunSpellChecker_0.6.0 and I get an error on install:
Maximum request length exceeded.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Maximum request length exceeded.
This is on a clean install of Umbraco 6.1.6
Hi William,
This is due to the size of the bundled dictionaries exceeding the default max request length.
From the HunSpellCheker homepage:
Pre Install - Read this before installing as a local package...
If you want to install as a local package, you'll need to edit the web.config and increase the httpRuntime maxRequestLength attribute to be larger than the size of the zipped up package - 8192 should do it.
e.g.
<httpRuntime requestValidationMode="2.0" executionTimeout="7200" maxUrlLength="5000" relaxedUrlToFileSystemMapping="true" enableVersionHeader="false" maxRequestLength="8192" />
(don't worry I never read the manual either ;) )
Adrian,
Aha!! Run-Time Fix Mandatory?
I have followed the instructions to the letter and now get "Spell checker plugin not yet initialise". I saw another message that mentioned this error http://our.umbraco.org/projects/backoffice-extensions/hunspellchecker/feedback/45524-Should-HunSpellChecker-work-in-Umbraco-472
Below are the logs I get:
2013-11-18 15:59:32,086 [5] WARN Umbraco.Web.Dictionary.DefaultCultureDictionary - [Thread 10] Error returning dictionary item 'submit'. Exception: System.ArgumentException: No key submit exists in dictionary
at umbraco.cms.businesslogic.Dictionary.DictionaryItem..ctor(String key)
at Umbraco.Web.Dictionary.DefaultCultureDictionary.get_Item(String key)
2013-11-18 15:59:32,086 [5] WARN Umbraco.Web.Dictionary.DefaultCultureDictionary - [Thread 10] Error returning dictionary item 'next'. Exception: System.ArgumentException: No key next exists in dictionary
at umbraco.cms.businesslogic.Dictionary.DictionaryItem..ctor(String key)
at Umbraco.Web.Dictionary.DefaultCultureDictionary.get_Item(String key)
2013-11-18 15:59:32,087 [5] WARN Umbraco.Web.Dictionary.DefaultCultureDictionary - [Thread 10] Error returning dictionary item 'prev'. Exception: System.ArgumentException: No key prev exists in dictionary
at umbraco.cms.businesslogic.Dictionary.DictionaryItem..ctor(String key)
at Umbraco.Web.Dictionary.DefaultCultureDictionary.get_Item(String key)
2013-11-18 15:59:37,507 [5] INFO Usc.Plugins.HunSpellChecker.HunSpellChecker - Spell checker accessed before Init Completed.
2013-11-18 15:59:37,509 [5] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 6] An unhandled exception occurred
System.Exception: Spell checker plugin not yet initialised. Please try again later.
at Usc.Plugins.HunSpellChecker.HunSpellChecker.SpellEngine(String language)
at Usc.Plugins.HunSpellChecker.HunSpellChecker.CheckWords(String language, String[] words)
at Usc.Plugins.HunSpellChecker.HunSpellChecker.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Any ideas?
I've been fighting with this today and have ended up creating our own version which calls "Initialise" instead of erroring.
One thing I did note however was if you install multiple times the web.config will create the AppSettings as a CSV.
Another thing to check is if you're running en_GB you will need to set HunSpellCheckerDefaultDictionaryCulture to "en_US" or install an en_GB dictionary.
HTH
Tim
Thanks for the info Tim.
Not sure why the HunSpellCheckerAppEventHandler would throw an error if using the right version of the plugin for your Umbraco version but yes a call to the static HunSpellChecker.Initialise() will work.
Not sure why the installer creates appSettings as a csv - thats a bit o Umbraco black magic - I'm not that confident of the package manager installer and usually install by unzipping and setting config file properties etc manually - not quite as quick I know.
You could always set add key="HunSpellCheckerDefaultDictionaryCulture" value="en-AU" /> en_AU is based from the en_GB dictionary along with a few Australianisms - eg Wombat / etc etc - better than switching over to the "dark side" ;) and using en_US
Setting the HunSpellCheckerDefaultDictionaryCulture to en-US fixes the following error (The installed value was <add key="HunSpellCheckerDefaultDictionaryCulture" value="" />).
Error response: Spell checker plugin not yet initialised. Please try again later.
Prior to setting to en-US I got:
2013-12-03 15:26:03,574 [5] INFO Usc.Plugins.HunSpellChecker.HunSpellChecker - Spell checker accessed before Init Completed.
2013-12-03 15:26:03,576 [5] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 32] An unhandled exception occurred
System.Exception: Spell checker plugin not yet initialised. Please try again later.
at Usc.Plugins.HunSpellChecker.HunSpellChecker.SpellEngine(String language)
at Usc.Plugins.HunSpellChecker.HunSpellChecker.CheckWords(String language, String[] words)
at Usc.Plugins.HunSpellChecker.HunSpellChecker.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
It seems an odd error but in case anyone else has this problem, this fixed it for me.
I will now try to install an en-gb dictionary and convert to en-GB as too long on the dark side is unhealthy.
Does anyone know where to find the correct en_GB dictionary? I guess I could copy the en_US files and corrcet the spellings manually :s
Scrub that - I copied the en_AU files (en_AU.aff and en_AU.dic in umbraco/Plugins/HunSpellChecker/dict) and renamed to en_GB.aff and au_GB.dic and changed the web.config to:
appSettings / add key="HunSpellCheckerDefaultDictionaryCulture" value="en-GB"
(This editor would not let me write the full XML tags)
AND IT WORKS - no need to restart the app, I think editing the web.config is enough.
Phew
Hi William,
I couldn't find an eb_GB dictionary when I setup this plugin (would have thought there'd be one seeing as thats where the language started from...?!)
You've suggested a good way to coax the spell checker into being Brittish (with a slight Aussie accent :b ) - will add it to the plugins project front page.
Thanks,
Adrian
is working on a reply...