Wordpress

wpForo: Advanced File Attachments doesn’t work with WordPress 5.9

ADVERTISEMENT

I use Advanced File Attachments. It’s great and very convenient. However, starting today, I am suddenly unable to attach images. When I drag and drop, nothing happens, and when I open “My Media”, the loading animation is running forever. Advanced File Attachments doesn’t work with WordPress 5.9

ADVERTISEMENT

The following error is output to the console.

core.min.js?ver=1.13.0:116 Uncaught TypeError: Cannot read properties of undefined (reading '_super')

annotation-2022-04-07-161602

Until the problem is solved you can replace the core.min.js (v1.13.0)
with the older core.min.js (v1.12.1)
wp-includes/js/jquery/ui/core.min.js
then Advanced File Attachments works again
Or in theme need edit file functions.php and add code:

 

add_action( 'wp_head', function(){
	wp_deregister_script( 'jquery-ui-core' );
	wp_register_script( 'jquery-ui-core', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js', ['jquery'], '1.12.1' );
}, 0);

UPD: This problem already been fixed in wpForo Advanced Attachments addon v2.1.2 or higher version.

ADVERTISEMENT
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments