• I upgraded to WordPress 4.0 and now when I go to add a post, when I click on “Add Media” or any button/link nothing happens. I was told to turn on debugging to see if that fixed the issue. I turned on script debugging and it solved the problem. So now I’m confused and am not sure exactly what is wrong. I went through and even deactivated all my plugins and still had the problem.

Viewing 15 replies - 1 through 15 (of 25 total)
  • Hey!

    Are you using Google Chrome? If so, try right clicking on the page and saying “Inspect Element”, and then click on the “Console” tab. Post any errors that might be appearing there so we can look at it further for you.

    Thread Starter ljhiser

    (@ljhiser)

    I am using Chrome.

    Here’s the errors that appear when doing inspect element > console

    Uncaught SyntaxError: Unexpected token ILLEGAL load-scripts.php:771
    Uncaught ReferenceError: Backbone is not defined notes-common-v2.js?ver=3.1.1-201436:32
    Uncaught ReferenceError: _ is not defined admin-bar-v2.js:2
    Uncaught ReferenceError: switchEditors is not defined post-new.php:1494

    It sounds like it could be a partial WordPress upload perhaps.

    You may want to try downloading a fresh copy of WordPress from https://www.ads-software.com and upload the files over the ones on your web server.

    Just be very careful NOT to overwrite your wp-content directory – where all of your custom files are saved.

    Additionally, you should try disabling all of your plugins to see if that fixes the issue. If it does, try re-enabling them one by one until the problem comes back. That way, we can find which plugin might be causing the issue (if it is a plugin)

    Thread Starter ljhiser

    (@ljhiser)

    I went through and disabled all my plugins and the problem still happened.

    I will try a fresh copy of wordpress and keep my fingers crossed. We’ll see how it goes.

    (Thanks for all your advice! Really appreciate it)

    Same here for me… After install 4.0 version add media button do not work

    What themes are each of you using? Maybe quickly try switching to the twentyfourteen theme as well as having disabled plugins – just to be sure.

    swf2002: did you try disabling plugins as well?

    My Add Media button is working fine on several updated 4.0 installs here.

    my problem is worse after upgrading to 4.0 i can’t see anything on media library and i can’t add/see any images from post editor as well.
    This is what i see on post edit page console
    Uncaught TypeError: Cannot read property ‘replace’ of undefined underscore.min.js:1x.template underscore.min.js:1(anonymous function) wp-util.min.js:1d.view.Attachments.d.View.extend.css media-views.min.js:2d.view.Attachments.d.View.extend.initialize media-views.min.js:2d.view.Attachments.Selection.d.view.Attachments.extend.initialize media-views.min.js:3b.View backbone.min.js:1wp.Backbone.View.Backbone.View.extend.constructor wp-backbone.min.js:1d.View.wp.Backbone.View.extend.constructor media-views.min.js:1d backbone.min.js:1d backbone.min.js:1d.view.Selection.d.View.extend.initialize media-views.min.js:3b.View backbone.min.js:1wp.Backbone.View.Backbone.View.extend.constructor wp-backbone.min.js:1d.View.wp.Backbone.View.extend.constructor media-views.min.js:1d backbone.min.js:1d.view.MediaFrame.Post.d.view.MediaFrame.Select.extend.selectionStatusToolbar media-views.min.js:1d.view.MediaFrame.Post.d.view.MediaFrame.Select.extend.mainInsertToolbar media-views.min.js:1k backbone.min.js:1b.Events.trigger backbone.min.js:1d.controller.StateMachine.(anonymous function) media-views.min.js:1b.extend.trigger media-views.min.js:1b.extend.render media-views.min.js:1b.extend.mode media-views.min.js:1b.extend.render media-views.min.js:1d.controller.State.(anonymous function) media-views.min.js:1d.controller.State.Backbone.Model.extend._postActivate media-views.min.js:1k backbone.min.js:1b.Events.trigger backbone.min.js:1b.extend.setState media-views.min.js:1wp.media.editor.add media-editor.min.js:1wp.media.editor.open media-editor.min.js:1(anonymous function) media-editor.min.js:1m.event.dispatch jquery.min.js:3r.handle jquery.min.js:3

    I’ve managed to upload an image if I click on “SET FEATURED IMAGE”. You can get theere the url to the image and copy/paste it into the post.

    However, the tags don’t work. I need to go and put them from phpmyadmin, what a joy.

    Hey cemturk: Thats a pretty solid set of errors!

    Were you able to try de-activating all plugins and switching to the twentyfouteen theme – just to make sure?

    It’s important for us to test turning off plugins and switching to the default theme prior to trying anything else or digging into WordPress core files – because 9 times out of 10, especially with a new WordPress release, these issues are caused by a plugin or theme that needs to be updated.

    i tried changing themes, i will deactivate plugins and try again.
    Also i get this error on media library page
    SCRIPT5007: Unable to get property ‘open’ of undefined or null reference – in media.min.js

    Looks like it’s from an outdated version of all in one seo pack. The menu and tags are back.

    Good work tracking that down cristiweb2

    You can contact the author here:
    https://www.ads-software.com/plugins/all-in-one-seo-pack/

    It could be other plugins or themes for other people who are having these same types of issues. Tracking down plugins-in-need-of-updates is most likely the cause in these situations.

    I deactivated all my plugins and activated them 1 by 1. I found out that Use Google Libraries plugin was causing the problem for me. Now that i have it disabled all stuff works fine.

    P.S. I contacted the author of the plugin.

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘Add Media Button, etc Not Working after Update’ is closed to new replies.