• Resolved noname4444

    (@noname4444)


    The Add Media button on my site currently doesn’t work and I’m pulling my hair out trying to figure it out.

    It’s a new site I had just finished getting setup, this was the first time I tried to use the Add Media button.

    I’ve tried disabling all plugins (and renamed the plugin folder for good measure), I’ve set the theme back to twenty twenty, I’ve completely removed the wp-admin and wp-includes folder and added them fresh, I’ve readded the twenty twenty theme, I’ve added define('SCRIPT_DEBUG', true); to wp-config.php, and I’ve added define('CONCATENATE_SCRIPTS', false ); to wp-config.php.

    I’ve run out of things to try, from what I can tell I’m running a basic vanilla install and it’s still not working. I’m still relatively new to running a WP site so hopefully I’m just missing something?

    I do get a javascript error whenever the add media button is pressed, but it doesn’t help me at all. Hopefully someone who reads this forums might be able to make something from it. I’ve gotten the javascript error in both IE and Chrome, both error messages below.

    The website is https://www.triangleenglightened.com. I’ve created a throw away user I plan to delete once the issue is resolved. Please feel free to try the add media button on my site yourself. User: [deleted] Pass: [deleted – 19 hours after being posted – NEVER post login access on a public forum]

    Internet Explorer:

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; MS-RTC LM 8; .NET4.0C; .NET4.0E)
    Timestamp: Tue, 13 Aug 2013 17:00:51 UTC

    Message: ‘undefined’ is null or not an object
    Line: 5
    Char: 12259
    Code: 0
    URI: https://triangleburlesque.com/wp-includes/js/underscore.min.js?ver=1.4.4

    Chrome:

    Uncaught TypeError: Cannot call method ‘replace’ of undefined underscore.min.js?ver=1.4.4:5
    w.template underscore.min.js?ver=1.4.4:5
    (anonymous function) wp-util.min.js?ver=3.6:1
    f.view.Attachments.f.View.extend.css media-views.min.js?ver=3.6:1
    f.view.Attachments.f.View.extend.initialize media-views.min.js?ver=3.6:1
    f.view.Attachments.Selection.f.view.Attachments.extend.initialize media-views.min.js?ver=3.6:1
    a.View backbone.min.js?ver=1.0.0:7
    wp.Backbone.View.Backbone.View.extend.constructor wp-backbone.min.js?ver=3.6:1
    f.View.wp.Backbone.View.extend.constructor media-views.min.js?ver=3.6:1
    r backbone.min.js?ver=1.0.0:7
    r backbone.min.js?ver=1.0.0:7
    f.view.Selection.f.View.extend.initialize media-views.min.js?ver=3.6:1
    a.View backbone.min.js?ver=1.0.0:7
    wp.Backbone.View.Backbone.View.extend.constructor wp-backbone.min.js?ver=3.6:1
    f.View.wp.Backbone.View.extend.constructor media-views.min.js?ver=3.6:1
    r backbone.min.js?ver=1.0.0:7
    f.view.MediaFrame.Post.f.view.MediaFrame.Select.extend.selectionStatusToolbar media-views.min.js?ver=3.6:1
    f.view.MediaFrame.Post.f.view.MediaFrame.Select.extend.mainInsertToolbar media-views.min.js?ver=3.6:1
    c backbone.min.js?ver=1.0.0:7
    a.Events.trigger backbone.min.js?ver=1.0.0:7
    f.controller.StateMachine.(anonymous function) media-views.min.js?ver=3.6:1
    _.extend.trigger media-views.min.js?ver=3.6:1
    _.extend.render media-views.min.js?ver=3.6:1
    _.extend.mode media-views.min.js?ver=3.6:1
    _.extend.render media-views.min.js?ver=3.6:1
    f.controller.State.(anonymous function) media-views.min.js?ver=3.6:1
    f.controller.State.Backbone.Model.extend._postActivate media-views.min.js?ver=3.6:1
    c backbone.min.js?ver=1.0.0:7
    a.Events.trigger backbone.min.js?ver=1.0.0:7
    _.extend.setState media-views.min.js?ver=3.6:1
    wp.media.editor.add media-editor.min.js?ver=3.6:1
    wp.media.editor.open media-editor.min.js?ver=3.6:1
    (anonymous function) media-editor.min.js?ver=3.6:1
    x.event.dispatch jquery.js?ver=1.10.2:5
    v.handle jquery.js?ver=1.10.2:5

Viewing 3 replies - 1 through 3 (of 3 total)
  • It looks like the stack trace you’ve posted was taken with SCRIPT_DEBUG set to false; can you set it to true and paste in the Chrome JS error content again? That should give more accurate line numbers, which ought to help with identifying where the problem’s coming from.

    I’d log in to test myself, but the URL you provided (https://www.triangleenglightened.com) looks like it may have a typo? When I tried https://www.triangleenlightened.com/, it told me I had to use a Google account to log in, so there wasn’t anywhere to submit the username and password you provided.

    Please do not ever post login info on a public forum like this – these forums do not provide that level of support AND it’s likely to get your site hacked.

    Please do not ever post login info on a public forum like this – these forums do not provide that level of support AND it’s likely to get your site hacked.

    That is an extremely, extremely good point.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add Media Button Not Working’ is closed to new replies.