Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • jonok 297 posts 657 karma points
    Aug 13, 2013 @ 08:32
    jonok
    0

    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:

    [TypeLoadException: Could not load type 'Umbraco.Web.IApplicationEventHandler' from assembly 'umbraco, Version=1.0.4927.23557, Culture=neutral, PublicKeyToken=null'.]
       System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes) +0
       System.Reflection.RuntimeAssembly.GetExportedTypes() +49
       Umbraco.Core.TypeFinder.GetTypesWithFormattedException(Assembly a) +128
       Umbraco.Core.TypeFinder.GetClasses(Type assignTypeFrom, IEnumerable`1 assemblies, Boolean onlyConcreteClasses, Func`2 additionalFilter) +473
       Umbraco.Core.PluginManager.LoadViaScanningAndUpdateCacheFile(TypeList typeList, TypeResolutionKind resolutionKind, Func`1 finder) +53
       Umbraco.Core.PluginManager.ResolveTypes(Func`1 finder, TypeResolutionKind resolutionType, Boolean cacheResult) +1357
       Umbraco.Core.CoreBootManager.InitializeApplicationEventsResolver() +77
       Umbraco.Web.WebBootManager.InitializeApplicationEventsResolver() +9
       Umbraco.Core.CoreBootManager.Initialize() +386
       Umbraco.Web.WebBootManager.Initialize() +57
       Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e) +122
    
    [HttpException (0x80004005): Could not load type 'Umbraco.Web.IApplicationEventHandler' from assembly 'umbraco, Version=1.0.4927.23557, Culture=neutral, PublicKeyToken=null'.]
       System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +12864365
       System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +175
       System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304
       System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +404
       System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475
    
    [HttpException (0x80004005): Could not load type 'Umbraco.Web.IApplicationEventHandler' from assembly 'umbraco, Version=1.0.4927.23557, Culture=neutral, PublicKeyToken=null'.]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12881108
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12722297
    
  • Adrian Holland 29 posts 106 karma points
    Aug 13, 2013 @ 08:45
    Adrian Holland
    0

    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.

  • Adrian Holland 29 posts 106 karma points
    Aug 16, 2013 @ 08:31
    Adrian Holland
    0

    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

  • jonok 297 posts 657 karma points
    Sep 09, 2013 @ 00:02
    jonok
    0

    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:

  • jonok 297 posts 657 karma points
    Sep 09, 2013 @ 00:03
    jonok
    0

    Here's the error:

    [HttpException]: The file '/umbraco/HunSpellChecker.ashx' does not exist. at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate) at System.Web.UI.SimpleHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

  • Adrian Holland 29 posts 106 karma points
    Sep 24, 2013 @ 00:03
    Adrian Holland
    100

    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 

  • jonok 297 posts 657 karma points
    Sep 24, 2013 @ 00:13
    jonok
    1

    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!

  • jonok 297 posts 657 karma points
    Sep 24, 2013 @ 00:13
    jonok
    0

    double post

  • Adrian Holland 29 posts 106 karma points
    Sep 24, 2013 @ 00:41
    Adrian Holland
    0

    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

  • William Charlton 171 posts 218 karma points
    Nov 15, 2013 @ 17:04
    William Charlton
    0

    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

  • Adrian Holland 29 posts 106 karma points
    Nov 18, 2013 @ 00:31
    Adrian Holland
    0

    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 ;) )

  • William Charlton 171 posts 218 karma points
    Nov 18, 2013 @ 12:55
    William Charlton
    0

    Adrian,

    Aha!! Run-Time Fix Mandatory?

  • William Charlton 171 posts 218 karma points
    Nov 18, 2013 @ 17:15
    William Charlton
    0

    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?

  • Tim 168 posts 372 karma points
    Nov 30, 2013 @ 13:22
    Tim
    1

    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

  • Adrian Holland 29 posts 106 karma points
    Dec 01, 2013 @ 23:59
    Adrian Holland
    0

    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

  • William Charlton 171 posts 218 karma points
    Dec 03, 2013 @ 16:52
    William Charlton
    0

    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.

  • William Charlton 171 posts 218 karma points
    Dec 03, 2013 @ 16:59
    William Charlton
    1

    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

  • Adrian Holland 29 posts 106 karma points
    Dec 06, 2013 @ 05:05
    Adrian Holland
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft