Copied to clipboard

Flag this post as spam?

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


  • George 58 posts 165 karma points
    Feb 02, 2015 @ 10:13
    George
    0

    uCKEditor Installation through backoffice problem.

    I recently tried installing uCKEditor in order to replace TinyMCE for our backoffice.

    I can't find this plugin in the package repository. So I downloaded it manually from here:

    http://our.umbraco.org/projects/backoffice-extensions/uckeditor

    Then I install it using "Install local package" from Developer > Packages

    Then umbraco gets a new Datatype called uCKEditor.

    I change one of our Document Types that has a property using the datatype Umbraco.Tinymce3 to our new uCKEditor datatype.

    The moment I open the page (in Content) that has the above mentioned document type, there is no editor displayed and I get the following error in my browser console:

     Error: Argument 'uCKEditor.uCKEditorController' is not a function, got undefined

    It looks like the file:

    App_Plugins\uCKEditor\package.manifest

    references the following: 

    '~/App_Plugins/uCKEditor/uCKEditor.resource.js',
    '~/App_Plugins/uCKEditor/uCKEditor.controller.js',
    '~/App_Plugins/uCKEditor/Dashboard/uCKEditor.dashboard.controller.js', 
    '~/App_Plugins/uCKEditor/UniqueId/uniqueidcontroller.js'
    '~/App_Plugins/uCKEditor/uCKEditor.editor.css'

    However none of those files exist in the filesystem after manually downloading and installing the package,

    The package itself lists only the following files when I view it in umbraco:

    /bin/uCKEditor.dll
    /App_Plugins/uCKEditor/package.manifest
    /App_Plugins/uCKEditor/Installer/Setup.ascx

    So it seems like the author's description for installation is insufficient or I am doing something totally wrong:

    "Install the package through the backoffice like any other Umbraco package. A new datatype 'uCKEditor' is created by the installer. That's it!"

    Any suggestions are welcome!

  • Alain 73 posts 520 karma points c-trib
    Feb 02, 2015 @ 10:58
    Alain
    0

    Hi George,

    A package needs a minimum of karmas (votes) in order to appear in the package repository: "it does take community kudos from at least 15 people to make it inside this repository". Since it is a recent package, for the moment it is necessary to download it and install it manually.

    Regarding the error "Argument uCKEditor.uCKEditorController is not a function, got undefined", you are right, it seems that the editor cannot find the controller. uCKEditor is a "single dll package" what means that everything is available within a single assembly/DLL. That is why you don't see them in the "~/App_Plugins/uCKEditor/" directory, it is completly normal.

    Before uploading the new version 1.0.1 of uCKEditor, I installed and tested it with Umbraco 7.2.1, and it worked fine for me.

    Is it a clean installation of Umbraco 7.2.1, or have you upgraded from an older version? Are you using other packages? What browser are you using? Have you tried to clear your browser's cache?

    Alain

  • George 58 posts 165 karma points
    Feb 02, 2015 @ 11:11
    George
    0

    Hi Alain,

    I have recently updated Umbraco from version 7.0.1 to 7.2.1. Before that we updated 4.9 -> 7.0.1.
    We have a couple of other packages installed - ImageGen and 301 URL Tracker.
    I am using Google Chrome(newest version) for testing. I tried clearing the browser cache but that didn't help.
    I just tried opening the page in Content section of Umbraco using IE 11 and Mozilla 28.0. 
    The editor still doesn't show.

    I tried upvoting your package but I am still missing 5-6 karma before the system allows me to do it :) 

  • Alain 73 posts 520 karma points c-trib
    Feb 02, 2015 @ 11:33
    Alain
    0

    Hi George,

    Thank you for the vote, but my previous post wasn't meant to get votes, it was just an explanation of why you cannot see it in the repository. You should vote the package only if you are happy with it and you think it is useful.

    I have tested the package with an upgraded version of Umbraco (from 7.0.x -> 7.1.x and 7.2.x) and it works fine, but I have never tested it with an upgraded version from 4.x -> 7.x.

    I will need to investigate, but that could take some time (maybe weeks).

    As a possible workaround, download this file and unzip all its content inside the ~/App_Plugins/uCKEditor/ folder overwritting any existing file. Refresh your browser's cache and hopefully it should work.

    Alain

  • George 58 posts 165 karma points
    Feb 02, 2015 @ 11:43
    George
    0

    Hi Alain!

    I understand you didn't mean to fish for votes, but since you have created the only viable alternative to TinyMCE in Umbraco, I believe you deserve a vote anyway, regardless if the package works for me or not. 

    That being said, the file you linked solved the problem! Looks like having the files physically in the filesystem stops angular js from throwing missing file errors.

    I can see the the uCKEditor. It also looks like the old content of the property field(html written in TinyMCE) remains untouched, which was one of my main concerns.

    Thanks for the package and the quick replies! 

  • Alain 73 posts 520 karma points c-trib
    Feb 02, 2015 @ 11:53
    Alain
    0

    George,

    Glad to hear that it worked :)

    It seems that the MVC routing responsible of extracting the embedded files from the uCKEditor.dll is not working properly.

    Could you take a look into the log file (~/App_Data/Logs/Umbraco TraceLog.txt) and see if there is any error thrown by the uCKEditor package? If it is the case, could you please post them in order to know what exactly is happening and to try to fix in a future release.

    Thanks.

    Alain

  • George 58 posts 165 karma points
    Feb 02, 2015 @ 12:05
    George
    0

    I hope this helps. Here is the log for one load attempt(determined by timestamps), right after an IIS restart, while the problem was still occuring:

    2015-02-02 11:15:04,003 [6] INFO  Umbraco.Core.PluginManager - [Thread 1] Determining hash of code files on disk
    2015-02-02 11:15:04,019 [6] INFO  Umbraco.Core.PluginManager - [Thread 1] Hash determined (took 8ms)
    2015-02-02 11:15:04,027 [6] INFO  Umbraco.Core.PluginManager - [Thread 1] Starting resolution types of umbraco.interfaces.IApplicationStartupHandler
    2015-02-02 11:15:04,049 [6] INFO  Umbraco.Core.PluginManager - [Thread 1] Completed resolution of types of umbraco.interfaces.IApplicationStartupHandler, found 39 (took 20ms)
    2015-02-02 11:15:04,146 [6] INFO  Umbraco.Core.PluginManager - [Thread 1] Starting resolution types of Umbraco.Core.PropertyEditors.IPropertyEditorValueConverter
    2015-02-02 11:15:04,148 [6] INFO  Umbraco.Core.PluginManager - [Thread 1] Completed resolution of types of Umbraco.Core.PropertyEditors.IPropertyEditorValueConverter, found 0 (took 1ms)
    2015-02-02 11:15:04,148 [6] INFO  Umbraco.Core.PluginManager - [Thread 1] Starting resolution types of Umbraco.Core.PropertyEditors.IPropertyValueConverter
    2015-02-02 11:15:04,149 [6] INFO  Umbraco.Core.PluginManager - [Thread 1] Completed resolution of types of Umbraco.Core.PropertyEditors.IPropertyValueConverter, found 16 (took 0ms)
    2015-02-02 11:15:04,175 [6] INFO  Umbraco.Core.PluginManager - [Thread 1] Starting resolution types of Umbraco.Web.Mvc.SurfaceController
    2015-02-02 11:15:04,176 [6] INFO  Umbraco.Core.PluginManager - [Thread 1] Completed resolution of types of Umbraco.Web.Mvc.SurfaceController, found 4 (took 0ms)
    2015-02-02 11:15:04,176 [6] INFO  Umbraco.Core.PluginManager - [Thread 1] Starting resolution types of Umbraco.Web.WebApi.UmbracoApiController
    2015-02-02 11:15:04,178 [6] INFO  Umbraco.Core.PluginManager - [Thread 1] Completed resolution of types of Umbraco.Web.WebApi.UmbracoApiController, found 36 (took 1ms)
    2015-02-02 11:15:04,221 [6] INFO  Umbraco.Core.PluginManager - [Thread 1] Starting resolution types of Umbraco.Core.Media.IThumbnailProvider
    2015-02-02 11:15:04,222 [6] INFO  Umbraco.Core.PluginManager - [Thread 1] Completed resolution of types of Umbraco.Core.Media.IThumbnailProvider, found 3 (took 0ms)
    2015-02-02 11:15:04,222 [6] INFO  Umbraco.Core.PluginManager - [Thread 1] Starting resolution types of Umbraco.Core.Media.IImageUrlProvider
    2015-02-02 11:15:04,222 [6] INFO  Umbraco.Core.PluginManager - [Thread 1] Completed resolution of types of Umbraco.Core.Media.IImageUrlProvider, found 1 (took 0ms)
    2015-02-02 11:15:06,961 [6] INFO  Umbraco.Web.Search.ExamineEvents - [Thread 1] Initializing Examine and binding to business logic events
    2015-02-02 11:15:07,226 [6] INFO  Umbraco.Web.Search.ExamineEvents - [Thread 1] Adding examine event handlers for index providers: 8
    2015-02-02 11:15:07,249 [6] INFO  Umbraco.Core.PluginManager - [Thread 1] Starting resolution types of Umbraco.Core.Persistence.Mappers.BaseMapper
    2015-02-02 11:15:07,250 [6] INFO  Umbraco.Core.PluginManager - [Thread 1] Completed resolution of types of Umbraco.Core.Persistence.Mappers.BaseMapper, found 23 (took 1ms)
    2015-02-02 11:15:08,282 [6] INFO  Umbraco.Web.UmbracoModule - [Thread 7] Setting OriginalRequestUrl: localhost:80/umbraco
    2015-02-02 11:15:08,804 [6] INFO  umbraco.content - [Thread 7] Loading content from disk cache...
    2015-02-02 11:15:09,780 [6] INFO  Umbraco.Core.PluginManager - [Thread 9] Starting resolution types of Umbraco.Core.PropertyEditors.IParameterEditor
    2015-02-02 11:15:09,780 [6] INFO  Umbraco.Core.PluginManager - [Thread 9] Completed resolution of types of Umbraco.Core.PropertyEditors.IParameterEditor, found 44 (took 0ms)
    2015-02-02 11:15:10,056 [6] WARN  uCKEditor.EmbeddedAssembly.EmbeddedResourceController - [Thread 10] Couldn't get the resource: /uckeditor.editor.css 
    En værdi må ikke være null.
    Parameternavn: fileStream
    2015-02-02 11:15:10,180 [6] WARN  uCKEditor.EmbeddedAssembly.EmbeddedResourceController - [Thread 11] Couldn't get the resource: /uckeditor.resource.js 
    En værdi må ikke være null.
    Parameternavn: fileStream
    2015-02-02 11:15:10,186 [6] WARN  uCKEditor.EmbeddedAssembly.EmbeddedResourceController - [Thread 7] Couldn't get the resource: /uckeditor.controller.js 
    En værdi må ikke være null.
    Parameternavn: fileStream
    2015-02-02 11:15:10,191 [6] WARN  uCKEditor.EmbeddedAssembly.EmbeddedResourceController - [Thread 10] Couldn't get the resource: /dashboard/uckeditor.dashboard.controller.js 
    En værdi må ikke være null.
    Parameternavn: fileStream
    2015-02-02 11:15:10,198 [6] WARN  uCKEditor.EmbeddedAssembly.EmbeddedResourceController - [Thread 9] Couldn't get the resource: /uniqueid/uniqueidcontroller.js 
    En værdi må ikke være null.
    Parameternavn: fileStream
    2015-02-02 11:15:10,363 [6] INFO  Umbraco.Core.PluginManager - [Thread 8] Starting resolution types of Umbraco.Web.Trees.TreeController
    2015-02-02 11:15:10,363 [6] INFO  Umbraco.Core.PluginManager - [Thread 8] Completed resolution of types of Umbraco.Web.Trees.TreeController, found 4 (took 0ms)
    2015-02-02 11:15:10,423 [6] INFO  Umbraco.Core.PluginManager - [Thread 7] Starting resolution types of umbraco.interfaces.ITree
    2015-02-02 11:15:10,424 [6] INFO  Umbraco.Core.PluginManager - [Thread 7] Completed resolution of types of umbraco.interfaces.ITree, found 35 (took 0ms)
    2015-02-02 11:15:10,440 [6] INFO  Umbraco.Core.PluginManager - [Thread 7] Starting resolution types of Umbraco.Web.Trees.TreeController
    2015-02-02 11:15:10,441 [6] INFO  Umbraco.Core.PluginManager - [Thread 7] Completed resolution of types of Umbraco.Web.Trees.TreeController, found 4 (took 0ms)
    2015-02-02 11:15:10,442 [6] INFO  Umbraco.Core.PluginManager - [Thread 7] Starting resolution types of umbraco.interfaces.ITree
    2015-02-02 11:15:10,443 [6] INFO  Umbraco.Core.PluginManager - [Thread 7] Completed resolution of types of umbraco.interfaces.ITree, found 19 (took 0ms)
    2015-02-02 11:15:10,467 [6] INFO  Umbraco.Core.PluginManager - [Thread 7] Starting resolution types of umbraco.interfaces.IApplication
    2015-02-02 11:15:10,467 [6] INFO  Umbraco.Core.PluginManager - [Thread 7] Completed resolution of types of umbraco.interfaces.IApplication, found 7 (took 0ms)
    2015-02-02 11:15:16,976 [6] WARN  uCKEditor.EmbeddedAssembly.EmbeddedResourceController - [Thread 10] Couldn't get the resource: /uckeditor.editor.css 
    En værdi må ikke være null.
    Parameternavn: fileStream
    
  • Alain 73 posts 520 karma points c-trib
    Feb 02, 2015 @ 12:13
    Alain
    0

    Thanks George.

    It is what I thought. I will try to fix it in a future release.

    Alain

Please Sign in or register to post replies

Write your reply to:

Draft