I am trying to use the vorto package in the mdeia section for a new media type. when I get to the media item i get the following error.
this is the log
2014-07-09 09:18:22,172 [6] ERROR Our.Umbraco.Vorto.Web.PropertyEditors.VortoPropertyEditor+VortoPropertyValueEditor - [Thread 68] Error converting DB value to Editor
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.JsonTextReader.ReadInternal()
at Newtonsoft.Json.JsonTextReader.Read()
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value)
at Our.Umbraco.Vorto.Web.PropertyEditors.VortoPropertyEditor.VortoPropertyValueEditor.ConvertDbToEditor(Property property, PropertyType propertyType, IDataTypeService dataTypeService)
However I don't think the source code is fully up to date as we had to add some methods that were missing in, so I can't guarantee it will work 100% - However we are running the same files on one of our sites and it works fine for us.
All you should need to do is copy the files from the zip into the bin folder of the website (backup the old .dll just in case!).
Hopefully Matt will see these posts and update the package for everyone else as I'm sure they would appreciate another feature for such an excellent package!
I just tried to use Vorto in the media section in Umbraco 7.5.0 and 7.5.2 but I'm getting this error when I try to save:
Received an error from the server
An error occured
The given key was not present in the dictionary.
EXCEPTION DETAILS
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
STACKTRACE
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Umbraco.Core.Persistence.Repositories.MediaRepository.PersistUpdatedItem(IMedia entity)
at Umbraco.Core.Cache.DefaultRepositoryCachePolicy`2.CreateOrUpdate(TEntity entity, Action`1 persistMethod)
at Umbraco.Core.Persistence.Repositories.RepositoryBase`2.PersistUpdatedItem(IEntity entity)
at Umbraco.Core.Persistence.UnitOfWork.PetaPocoUnitOfWork.Commit(Action`1 transactionCompleting)
at Umbraco.Core.Services.MediaService.Umbraco.Core.Services.IMediaServiceOperations.Save(IMedia media, Int32 userId, Boolean raiseEvents)
at Umbraco.Web.Editors.MediaController.PostSave(MediaItemSave contentItem)
at lambda_method(Closure , Object , Object[] )
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()
using vorto in the media section
Hi
I am trying to use the vorto package in the mdeia section for a new media type. when I get to the media item i get the following error.
this is the log
Hi Moran,
Vorto currently only works in the content section I'm afraid. It's on my list of things to do though.
Many thanks
Matt
Thanks :)
Can't wait for the next version, great package.
Hi Matt
Any estimates on when support for Media section might be coming?
cheers!
Hi,
Ive created a quick fix for ver 1.2.
You can download it from here.
Just replace the dll and the App_Plugins/Vorto content.
Regards,
Moshe
Bit late to the party, and inspired by Moshe, we found a smaller fix that might be helpful to someone (unless someone else has found a better way?).
Hi Tom,
Could you please let me know where this code goes?
Thanks,
Steve
Hi Steve,
Sorry should have made that more obvious!
It goes in the VortoApiController, under web > controllers > VortoApiController.cs
Hope it helps you out :)
Hi Tom,
Thanks, but, strangely, I can't find that file (or directory) anywhere in the site (Umbraco 7.1.3 and Vorto 1.2 installed).
If you have any advice on where to look or what might cause it not to be visible that would be great!
Steve
Hi Steve, no worries, I thought you had the source code downloaded ;)
I've built the vorto source code with the fix applied, and uploaded it here for you:
http://we.tl/ffspUkNCqs
However I don't think the source code is fully up to date as we had to add some methods that were missing in, so I can't guarantee it will work 100% - However we are running the same files on one of our sites and it works fine for us.
All you should need to do is copy the files from the zip into the bin folder of the website (backup the old .dll just in case!).
Hopefully Matt will see these posts and update the package for everyone else as I'm sure they would appreciate another feature for such an excellent package!
Tom
Wow Tom - Thanks a lot for all of this.
You are correct - I did not have the source code. I will try your build and get back to you once I have it up and running.
Yes, hopefully Matt will have a look. It really is a great package and functionality in the media section would only make it better!
Best regards,
Steve
Hi,
Apologies to gatecrash this - I would be really interested in seeing this if you can please make the download available again?
Many thanks,
Hi Guys,
Just thought I'd let you know that media section support has now been added in version 1.4.
Thanks for the feedback.
Matt
Hello,
I just tried to use Vorto in the media section in Umbraco 7.5.0 and 7.5.2 but I'm getting this error when I try to save:
I also tried this on 7.4.3 and it works there.
Jeroen
is working on a reply...