Copied to clipboard

Flag this post as spam?

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


  • Edgar Rasquin 326 posts 925 karma points
    Feb 15, 2023 @ 13:57
    Edgar Rasquin
    0

    Media Download Link breaks

    Hi Markus,

    when I insert a media link in the RTE the Link looks like so:

    https://mydomain.com/media/i3mhdll0/download.pdf
    

    Same as in the preview Test Email I receive in Outlook.

    But as soon as the Campaign get mailed out the Links change to this format:

    https://mydomain.com/__ns/t/link/?id=1QtnSReilPKZSNWOYNFX4RMbg0jcMMIt1NYJnzbVCEn09wlEEa0LF82Tt2yix53jTqLXl26DZAzfcS82DCnT6wv26DEplWrdkb0lwKBemvSG1o3BhVOoOr8LOhR9LZGxFyu2xXTkd9qyYZl5FM8V
    

    I guess this happens for tracking reasons.

    The problem is that these links add a slash (/) to the end of the URL, resulting in a 404 error (page not found):

    https://mydomain.com/media/i3mhdll0/download.pdf/
    

    Do you know a solution?

    Thank you

  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Feb 15, 2023 @ 17:10
    Markus Johansson
    100

    Hi!

    Yes, this was fixed in version 3.0.2, whats version are you on right on?

    Upgrading should solve the issue.

    Release history: https://www.newsletterstudio.org/versions/3/

  • Edgar Rasquin 326 posts 925 karma points
    Feb 16, 2023 @ 11:34
    Edgar Rasquin
    0

    Hi Markus,

    thanks for your reply.

    I upgraded from 3.0.0 Beta :( to 3.0.8

    Now the following problem occurs.

    In both previews I get this error:

    Server error in the application /.
    Method not found: "System.String             
    NewsletterStudio.CssInline.CssInlineHelper.InlineCss(System.String, System.String)".
    Description: Unhandled exception when running the current web request. Check the batch monitor to see more information about this error and where the error was caused in the code.
    
    Exception details: System.MissingMethodException: method not found: "System.String NewsletterStudio.CssInline.CssInlineHelper.InlineCss(System.String, System.String)".
    
    Source error:
    
    An unhandled exception was generated when executing the current web request. Information about the source and location of the exception can be viewed using exception stack monitoring.
    
    Stack monitoring:
    
    [MissingMethodException: Method not found: "System.String NewsletterStudio.CssInline.CssInlineHelper.InlineCss(System.String, System.String)".]
    

    enter image description here

    enter image description here

    Can you please help?

    Thanks

  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Feb 16, 2023 @ 13:05
    Markus Johansson
    0

    Hi!

    3.0.8, are you sure about that? 3.0.7 should be the latest version for Umbraco 8.

    Strange, I assume that you have built the project and so on?

    Did you install the "NewsletterStudio"-package from NuGet? https://www.nuget.org/packages/NewsletterStudio/3.0.7

    It depends on https://www.nuget.org/packages/NewsletterStudio.Web/ which depends on the https://www.nuget.org/packages/NewsletterStudio.CssInline/ where this CSS Inliner should be placed.

    Can you confirm that you have a reference to the "NewsletterStudio"-package and that you have a "NewsletterStudio.CssInliner.dll"-file in your bin folder?

    // m

  • Edgar Rasquin 326 posts 925 karma points
    Feb 16, 2023 @ 14:48
    Edgar Rasquin
    0

    Sorry, 3.0.7 indeed.

    Project built several times.

    Installed it via Nuget:

    NewsletterStudio
    NewsletterStudio.Core
    NewsletterStudio.Web
    

    References and dlls are all there:

    enter image description here

    Just realized that the NewsletterStudio.CssInline.dll is older than the others. Is that OK?

    enter image description here

  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Feb 16, 2023 @ 17:05
    Markus Johansson
    1

    Hi!

    Hmm, the inliner could have a lodet date as it is shipped as a separate package and not versioned with the package-releases.

    Maybe you could try these things:

    1. Use the “Clear”-feature before build. Make sure all NewsletterStudio-related DLLs from the bin-folder. Try the “Rebuild Solution.

    2. If this does not work. What about a clean install with the package?

    It must be related to some DLL being of an older version.

  • Edgar Rasquin 326 posts 925 karma points
    Feb 16, 2023 @ 18:21
    Edgar Rasquin
    0

    Hi Markus,

    I deinstalled all packages and manually deleted all .dll from the bin folder as you said. That probably did the trick!

    Than reinstalled and cleared before rebuild.

    Preview is working as expected.

    Thank you so much.

    Have a nice evening.

    Regards

  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Feb 16, 2023 @ 20:10
    Markus Johansson
    0

    Great news! Must have been some old dll that was causing trouble. Very happy to hear that you got it sorted!

    All the best!

  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Feb 16, 2023 @ 23:19
    Markus Johansson
    0

    By the way...

    While you're upgrading I would recommend going to this release https://www.nuget.org/packages/NewsletterStudio/3.0.8

    Just fixed a couple of issues with encoding if links if special characters are used in the URLs.

    This will only effect you if you're using links with characters like åäöü and so on in the URLs.

    https://www.newsletterstudio.org/versions/3/

  • Edgar Rasquin 326 posts 925 karma points
    Feb 17, 2023 @ 08:26
    Edgar Rasquin
    0

    Thanks Markus,

    I installed 3.0.8 without any issues.

    There is one last minor thing:

    It seems as if I lost the state text in the campaigns list where it sais "sent", "draft", etc...:

    enter image description here

    The DevTools shows no errors in the console. Here is the source:

    <span class="ns-alert ns-alert-sent" ng-class="">
        <localize key="">[]</localize>
    </span>
    

    Have you got any ideas?

    Thank you.

  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Feb 17, 2023 @ 09:15
    Markus Johansson
    0

    Hi!

    Once again some health checks:

    • Did you disable the cache in dev tools? (F12, network, "disable cache")

    Could you try to debug the content of the actual HTML-template that is fetched on the network tab?

  • Edgar Rasquin 326 posts 925 karma points
    Feb 17, 2023 @ 09:26
    Edgar Rasquin
    0

    Hi Markus,

    Did you disable the cache in dev tools? (F12, network, "disable cache")

    That solved the problem.

    Thank you very much!

  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Feb 17, 2023 @ 12:45
    Markus Johansson
    0

    Great to hear!

    Always feel free to reach out if you have any further questions or issues!

  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Feb 17, 2023 @ 09:23
    Markus Johansson
    0

    Also,

    What exact Umbraco-version are you on?

    Just tried this on a fresh install and could not reproduce.

    Did you do see this in the installation notes?

    Having trouble? If you're running without debugging (web.config -> system.web -> compilation -> debug = false) you might need to bump the version in /config/clientDependency.config. Also make sure that to clean your browser cache.

Please Sign in or register to post replies

Write your reply to:

Draft