Copied to clipboard

Flag this post as spam?

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

  • Timothy Sanders 3 posts 73 karma points
    Jul 16, 2019 @ 17:47
    Timothy Sanders

    Null Media Path Column in CMS Media

    I've been running Umbraco on a client's site for over a year now with no issues but recently I upgraded from 7.14 to 7.15.

    The day I upgraded the client noticed they could no longer use the media picker to insert images into the body of articles. After a bit of poking around I noticed that all media files (no matter how they were getting uploaded) contained null values in the database column cmsMedia.mediaPath.

    All images uploaded prior to 7.15 contain a value, all uploads that take place contain a null value in this column. If I update the table with appropriate values then the client is once again able to insert images (and pdfs) into the body of articles. Every time a new media file gets uploaded though it has this null value until I manually insert the proper link.

    I'm not sure if this is issue with my particular install or if its effecting other users. Any advice or fix? Right now I'm looking at creating a trigger to run on insert into that table, grabbing the proper url from cmsPropertyData and inserting it into cmsMedia.

    NOTE: I'm not using any sort of plug-in to upload images, just the default interface which previously worked.

    EDIT: For now a trigger that runs on insert into cmsPropertyData works for fixing null values being inserted into cmsMedia by the Media uploader.

    Thank you.

  • Amir Khan 1054 posts 2178 karma points
    Jul 18, 2019 @ 19:39
    Amir Khan

    Hi Timothy, known issue, fix here:

  • Timothy Sanders 3 posts 73 karma points
    Jul 19, 2019 @ 11:40
    Timothy Sanders

    Great, thank you very much. The on insert trigger I set up works fine but good to know it wasn't just my install and this is a known issue.

    Thanks again, have a great day :)

Please Sign in or register to post replies

Write your reply to: