• Hello, everybody!
    Thank’s for attempting to help me.
    Some time ago my client asked me to find problem with his blog, there was the problem with adding media files to media library, and the Add Media button in posts and pages didn’t worked, when uploading files in library some errors was like that:
    DEBUG: attachment_file_path=[/mnt/vhosts/howtoearnincomeonline.com/httpdocs/wp-content/uploads/2213/08/FA-Graph.png]
    DEBUG: attachment_file_url=[https://howtoearnincomeonline.com/wp-content/uploads/2213/08/FA-Graph.png]
    DEBUG: Calling API: [https://www.smushit.com/ysmush.it/ws.php?img=http%3A%2F%2Fhowtoearnincomeonline.com%2Fwp-content%2Fuploads%2F2213%2F08%2FFA-Graph.png]
    DEBUG: attachment_file_path_size=[/mnt/vhosts/howtoearnincomeonline.com/httpdocs/wp-content/uploads/2213/08/FA-Graph-150×150.png]
    DEBUG: attachment_file_url_size=[https://howtoearnincomeonline.com/wp-content/uploads/2213/08/FA-Graph-150×150.png]
    DEBUG: Calling API: [https://www.smushit.com/ysmush.it/ws.php?img=http%3A%2F%2Fhowtoearnincomeonline.com%2Fwp-content%2Fuploads%2F2213%2F08%2FFA-Graph-150×150.png]…. and much more..

    I founded out that was installed smash.it plugin, after deactivating it, of course it could be able to upload the media to library, but the addmedia button still not working. I’ve tried much of suggestions in other topics that i’ve found here – changing to twenty eleven, changing permission to some folders and files to 777 and back, SCRIPT_DEBUG, the line define(‘CONCATENATE_SCRIPTS’, false ); in wp-config already was there and don’t help, trying to re-update the version of wordpress, and also reset all plugins, no results.
    When the problem appeared the version of wordpress was 3.9 or earlier, now it’s 3.9.2. Decided to post a new topic here.

    Also some information to help:
    – the browsers that you are experiencing the problem in – Firefox, Chrome;
    – whether SCRIPT_DEBUG fixed the error or not – no;
    – the JavaScript error:
    Error: TypeError: wrap is undefined
    Source: https://www.andryeyev.com/wp-includes/js/wp-auth-check.js?ver=3.9.2
    Line: 96
    Error: TypeError: document.getElementById(…) is null
    Source: chrome://web-developer/content/overlay/javascript/overlay.js
    Line: 7333
    – the context of the error – including the whole error stack will help developers – I don’t know what is that and how to show, if needed please explain.

    Thak’s.

  • The topic ‘AddMedia button stopped working’ is closed to new replies.