Copied to clipboard

Flag this post as spam?

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


  • Christopher W. Brandsdal 72 posts 133 karma points
    Oct 28, 2014 @ 10:24
    Christopher W. Brandsdal
    0

    Problems opening newsletter

    Hi!

    When I try to create and open a new newsletter, I get the following error. What could it be? Umbraco 7.1.8. Newsletter Stuio 2.1. Somtimes I am able to open the newsletter, but most times not.

     

    {"Message":"An error has occurred.","ExceptionMessage":"The current pre-value collection is array based, use the PreValuesAsArray property instead","ExceptionType":"System.InvalidOperationException","StackTrace":" 

      at Umbraco.Core.Models.PreValueCollection.get_PreValuesAsDictionary()\r\n  

      at NewsletterStudio.Umbraco.Properties.PropertyFactory.GetRteConfigurationData()\r\n  

      at NewsletterStudio.Umbraco.Properties.PropertyFactory.GetProperty(String type, String alias, String label, String description, String value)\r\n  

      at NewsletterStudio.Core.ViewModels.Extensions.NewsletterExtensions.ToViewModel(Newsletter newsletter, Boolean ignoreProperties)\r\n 

      at lambda_method(Closure , Object , Object[] )\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass13.<GetExecutor>b__c(Object instance, Object[] methodParameters)\r\n  

      at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.<>c__DisplayClass5.<ExecuteAsync>b__4()\r\n 

      at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func`1 func, CancellationToken cancellationToken)"}

     

     

    Filddler throws tis message on call to: http://reksle.no/umbraco/#/NewsletterStudio/Newsletter/edit/17

  • Markus Johansson 1938 posts 5866 karma points MVP 2x c-trib
    Oct 28, 2014 @ 12:13
    Markus Johansson
    0

    Hi!

    Thank you for using the package!

    So could you share some exact steps on how to reproduce this? Do you just create a new newsletter and get this error? What happens if you open the data type for the Newsletter Studio-RTE (TinyMCE) in the developer-section and just try to resave the configuration?

    Feels like its something wrong with the configuration... 

  • Nandoh 32 posts 104 karma points
    Feb 24, 2015 @ 20:14
    Nandoh
    0

    Hi Markus,

    Christopher did not answer to your question, but today I had the same error, after installing Newsletter Studio. Somehow, the "TinyMCE DataType Id" field was set with "0". After changing the ID to the corresponding "Newsletter Studio-RTE (TinyMCE)" ID in my Umbraco installation the problem was solved and the RTE is rendered.

    Still, the RTE is not showing up the last two commands in the toolbar (newsletterstudio and newsletterstudiotemplate) that I think that corresponds to the "subscribe/unsubscribe helpers" and to the "Insert URL content"-popup functionalities.

    Can you guide me what to verify or what to set-up?

    Thanks in advance. Regards

  • Markus Johansson 1938 posts 5866 karma points MVP 2x c-trib
    Feb 24, 2015 @ 20:28
    Markus Johansson
    0

    Hi!

    Well this is due to the fact that an upgrade overwrite settings needed for Newsletter Studio to show these commands.


     In the config/tinyMce.config-file you need to add this:

     <commands>
    ..... 

      <command>

          <umbracoAlias>newsletterstudioPlugin</umbracoAlias>

          <icon>newsletterstudio/images/newsletterstudio-add.gif</icon>

          <tinyMceCommand value="" userInterface="" frontendCommand="">newsletterstudio</tinyMceCommand>

          <priority>1100</priority>

        </command>

        <command>

          <umbracoAlias>template</umbracoAlias>

          <icon>images/editor/template.png</icon>

          <tinyMceCommand value="" userInterface="" frontendCommand="">template</tinyMceCommand>

          <priority>1101</priority>

        </command>

        <command>

          <umbracoAlias>newsletterstudiourlcontent</umbracoAlias>

          <icon>newsletterstudio/images/internet-btn.gif</icon>

          <tinyMceCommand value="" userInterface="" frontendCommand="">newsletterstudiourlcontent</tinyMceCommand>

          <priority>1102</priority>

        </command>

      </commands>

    And this:

    <plugins>

    ....

        <plugin loadOnFrontend="true">newsletterstudio</plugin>

        <plugin loadOnFrontend="true">newsletterstudiourlcontent</plugin>

        <plugin loadOnFrontend="false">template</plugin>

    </plugins>


    You also need to activate them in the data type settings for the rich text editor.

    My recommendation is that you compare the configuration-files that Umbraco replaces during an upgrade. If you follow the recommended steps from the upgrade instrutions for Umbraco - the package should run just fine after an upgrade.
     

  • Nandoh 32 posts 104 karma points
    Feb 25, 2015 @ 18:50
    Nandoh
    0

    Hi Markus,

    You were correct, now it's ok. Just had to fill the missing frontendCommand settings in your example.

    Thank you

Please Sign in or register to post replies

Write your reply to:

Draft