Many times the WordPress site is generating the “.live” error. That error is generating due to the plugin updates or plugin conflict.
Due to this error, You can upload the images and the buttons are not working properly.
This error is generated due to any plugins or theme. For this issue, first of all we need to check the plugin and theme conflicts.
For the plugin conflict, You need to deactivate all plugins one by one and then check this error is solved or not. if the error is still not solved then you need to check the theme conflict.
If you find a conflicting plugin then you need to deactivate that plugin or need to wait next plugin update.
To solve that error you need to add the below custom code in your theme.
You can’t add the below code in the main theme’s functions.php file because when you will update the main theme then you added code will b remove automatically.
If you don’t have child theme then you can create a custom plugin and then you can add custom code in that plugin.
If you don’t want to create a custom plugin then you can install a snippet plugin from the Plugin library.
Add below code in your (child) theme’s functions.php
<?php
add_action('admin_head', 'Vivek_LIVE_js_error_custom_code',100);
add_action('wp_head', 'Vivek_LIVE_js_error_custom_code',100);
function Vivek_LIVE_js_error_custom_code() {
?>
<script type="text/javascript">
jQuery.fn.extend({
live: function (event, callback) {
if (this.selector) {
jQuery(document).on(event, this.selector, callback);
}
return this;
}
});
</script>
<?php
}
?>
If the cache is available on your site then clear the cache and then check the whole site.
The error will be successfully solved after setting up the above code.