Copied to clipboard

Flag this post as spam?

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


  • Tessa 20 posts 72 karma points
    Jan 21, 2016 @ 19:47
    Tessa
    0

    Media picker and media tab isn't working in fresh install of 7.3.5

    I'm having an issue in regards to the media section and media picker. I just installed Umbraco version 7.3.5 and I've got these two errors in my console: a 404 on this gravatar link and a syntax error in angular.

    https://www.gravatar.com/avatar/38760163adf549e99c66f838ed862192.jpg?s=64&d=404
    Failed to load resource: the server responded with a status of 404 (Not Found)
    
    Error: :57851/umbraco/lib/angular/1.1.5/angular.min.js?cdv=1487117328:63 
    Syntax Error: Token 'Content' is an unexpected token at column 2 of the expression [/Content/images] starting at [Content/images].
        at Error (native)
        at e (http://localhost:57851/umbraco/lib/angular/1.1.5/angular.min.js?cdv=1487117328:68:150)
        at Rc (http://localhost:57851/umbraco/lib/angular/1.1.5/angular.min.js?cdv=1487117328:75:188)
        at http://localhost:57851/umbraco/lib/angular/1.1.5/angular.min.js?cdv=1487117328:78:426
        at new xd (http://localhost:57851/umbraco/lib/angular/1.1.5/angular.min.js?cdv=1487117328:150:249)
        at d (http://localhost:57851/umbraco/lib/angular/1.1.5/angular.min.js?cdv=1487117328:28:304)
        at Object.instantiate (http://localhost:57851/umbraco/lib/angular/1.1.5/angular.min.js?cdv=1487117328:28:434)
        at http://localhost:57851/umbraco/lib/angular/1.1.5/angular.min.js?cdv=1487117328:53:326
        at http://localhost:57851/umbraco/lib/angular/1.1.5/angular.min.js?cdv=1487117328:44:274
        at n (http://localhost:57851/umbraco/lib/angular/1.1.5/angular.min.js?cdv=1487117328:7:74)
    (anonymous function)    @   :57851/umbraco/lib/angular/1.1.5/angular.min.js?cd
    

    The reason why this is critical is because I cannot see the images uploaded into my media folder and cannot use the media picker at all. After I've uploaded an image into the media folder and click on it, I can't see the image and this appears in my console:

    No url found for api name /Content/imagesApiBaseUrl(anonymous function) @ angular.min.js?cdv=1487117328:63(anonymous function) @ angular.min.js?cdv=1487117328:54i @ angular.min.js?cdv=1487117328:79i @ angular.min.js?cdv=1487117328:79i @ angular.min.js?cdv=1487117328:79i @ angular.min.js?cdv=1487117328:79(anonymous function) @ angular.min.js?cdv=1487117328:80e.$eval @ angular.min.js?cdv=1487117328:92e.$digest @ angular.min.js?cdv=1487117328:90e.$apply @ angular.min.js?cdv=1487117328:92j @ angular.min.js?cdv=1487117328:101r @ angular.min.js?cdv=1487117328:104w.onreadystatechange @ angular.min.js?cdv=1487117328:106
    angular.min.js?cdv=1487117328:63 Error: Syntax Error: Token 'Content' is an unexpected token at column 2 of the expression [/Content/images] starting at [Content/images].
        at Error (native)
        at e (http://localhost:57851/umbraco/lib/angular/1.1.5/angular.min.js?cdv=1487117328:68:150)
        at Rc (http://localhost:57851/umbraco/lib/angular/1.1.5/angular.min.js?cdv=1487117328:75:188)
        at http://localhost:57851/umbraco/lib/angular/1.1.5/angular.min.js?cdv=1487117328:78:426
        at new xd (http://localhost:57851/umbraco/lib/angular/1.1.5/angular.min.js?cdv=1487117328:150:249)
        at d (http://localhost:57851/umbraco/lib/angular/1.1.5/angular.min.js?cdv=1487117328:28:304)
        at Object.instantiate (http://localhost:57851/umbraco/lib/angular/1.1.5/angular.min.js?cdv=1487117328:28:434)
        at http://localhost:57851/umbraco/lib/angular/1.1.5/angular.min.js?cdv=1487117328:53:326
        at http://localhost:57851/umbraco/lib/angular/1.1.5/angular.min.js?cdv=1487117328:44:274
        at n (http://localhost:57851/umbraco/lib/angular/1.1.5/angular.min.js?cdv=1487117328:7:74)(anonymous function) @ angular.min.js?cdv=1487117328:63(anonymous function) @ angular.min.js?cdv=1487117328:54i @ angular.min.js?cdv=1487117328:79i @ angular.min.js?cdv=1487117328:79i @ angular.min.js?cdv=1487117328:79i @ angular.min.js?cdv=1487117328:79(anonymous function) @ angular.min.js?cdv=1487117328:80e.$eval @ angular.min.js?cdv=1487117328:92e.$digest @ angular.min.js?cdv=1487117328:90e.$apply @ angular.min.js?cdv=1487117328:92j @ angular.min.js?cdv=1487117328:101r @ angular.min.js?cdv=1487117328:104w.onreadystatechange @ angular.min.js?cdv=1487117328:106
    

    I've had mixed results on whether the image actually gets successfully uploaded into the media folder because I had one upload and show up in an ID'd folder in my media directory, and another one not show up at all.

    Any help is appreciated!

    If the answer is to use an older version of Umbraco, how do I do that without losing all of the content, data types, and document types I already created?

    P.S. I've tried incrementing the version in /Config/ClientDependency.config and clearing my browser cache, and neither has worked.

  • Tessa 20 posts 72 karma points
    Jan 21, 2016 @ 21:21
    Tessa
    0

    I found my solution and it was definitely one of those ID-Ten-T problems...

    At one point, I moved my images folder from the root directory to inside another folder called Content, and did a CTRL+F to find and replace all references of it in my stylesheets, changing "images" to "/Content/images".

    Of course, this affected all of the files that had used the word "images" in the umbraco and umbraco_client folders, so I just went through each affected file and reversed the process for each document and now my media picker is functional again.

    It wasn't until I used BeyondCompare to compare two installations I had of Umbraco that I noticed my stupid mistake in one of the files.

    Thanks, everyone!

Please Sign in or register to post replies

Write your reply to:

Draft