Copied to clipboard

Flag this post as spam?

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


  • Tommy Albinsson 121 posts 254 karma points
    Sep 12, 2012 @ 15:20
    Tommy Albinsson
    0

    Media image url incorret after upgrade to 4.9.0

    Hi,

    After we upgraded we noticed that all our media urls seemed to be incorrect when trying to access them in the backend. They look like this for example.

    This also brakes the browsing of media beacuse it can't load the media.
    Has anyone encountered this problem?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Sep 12, 2012 @ 22:17
    Jan Skovgaard
    0

    Hi Tommy

    What version did you upgrade from? And did you follow all the steps described in the release notes?

    Perhaps you're missing some settings in web.config and the new config files from the config folder - also make sure to merge umbracoSettings.config using winmerge for instance. If I remember correctly some stuff have been added that relates to the media section.

    Try skimming the inputs in this post about upgrading from 4.7.1 to 4.9 http://our.umbraco.org/forum/getting-started/installing-umbraco/34436-49-imagesmedia-broke?p=0#comment126546

    Hope this helps.

    /Jan

  • Tommy Albinsson 121 posts 254 karma points
    Sep 13, 2012 @ 14:14
    Tommy Albinsson
    0

    Hi Jan,

    Thanks for the quick answer. The error seems to lie in the umbrac.webservices dll. I completley forgot that we have done our own implementation of it and the uses the old way of saving media.

    System.IO.Directory.CreateDirectory(IOHelper.MapPath(SystemDirectories.Media + "/" + m.getProperty("umbracoFile").Id));

    string path = SystemDirectories.Media + "/" + m.getProperty("umbracoFile").Id + "/" + filename;

    string fullFilePath = IOHelper.MapPath(path);

    I will have to update our code with the new filesystem provider and i think it will work fine. Thanks!

  • Tommy Albinsson 121 posts 254 karma points
    Sep 14, 2012 @ 12:27
    Tommy Albinsson
    0

    After updating the mediaservice the url is now correct (no thumbnail is shown though and i still cannot list the images). The link works, and opens the image. In the log I see a lot of this kind of error. Does that have something to do with the media listing?

    Error adding stylesheet to tinymce (id: 1049). System.NullReferenceException: Object reference not set to an instance of an object.     at umbraco.editorControls.tinyMCE3.TinyMCE..ctor(IData Data, String Configuration)

Please Sign in or register to post replies

Write your reply to:

Draft