Home Forums ACF PRO Add File field not responsive after updating to ACF 5.8.6


Add File field not responsive after updating to ACF 5.8.6

  • We have a ACF form with a field that allow users to upload files, but the field became non responsive after updating ACF to 5.8.6

    I am getting the following console error:
    acf-input.min.js?ver=5.8.6:4 Uncaught TypeError: Cannot read property 'autop' of undefined at acf.Model.onReady (acf-input.min.js?ver=5.8.6:4)

    I checked that file and found the function that is generating the error:

    		onReady: function(){
    			// Restore wp.editor functions used by tinymce removed in WP5.
    			if( acf.isset(window,'wp','oldEditor') ) {
    				wp.editor.autop = wp.oldEditor.autop;
    				wp.editor.removep = wp.oldEditor.removep;
    			// bail early if no tinymce
    			if( !acf.isset(window,'tinymce','on') ) return;
    			// restore default activeEditor
    			tinymce.on('AddEditor', function( data ){
    				// vars
    				var editor = data.editor;
    				// bail early if not 'acf'
    				if(, 3) !== 'acf' ) return;
    				// override if 'content' exists
    				editor = tinymce.editors.content || editor;
    				// update vars
    				tinymce.activeEditor = editor;
    				wpActiveEditor =;

    After removing this function, the Add File field starts working again.
    Does anybody know the purpose of this function?
    Is this a known issue? Is there a workaround for this?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.