Hi everyone,
I’m getting a fatal error when I try and activate the Wordpress plugin. Any ideas of what I can try?
Error Message:
public_html/wp-content/plugins/tumult-hype-animations/includes/adminpanel.php on line 404
Thanks for your help
Daniel
October 19, 2018, 3:26pm
2
Did you install from the Wordpress repository or downloaded? (I recommend installing from the repository by going to Plugins > Install Plugins > Search for Tumult Hype Animations )
What is your PHP version? The line where the error is occurring is pretty simple and is a Wordpress core function.
}
}
</script>';
}
add_action('wp_ajax_hypeanimations_updatecontainer', 'hypeanimations_updatecontainer');
function hypeanimations_updatecontainer(){
global $wpdb;
global $hypeanimations_table_name;
$response = array();
if(!empty(sanitize_text_field($_POST['dataid'])) && !empty(sanitize_text_field($_POST['container']))){
$post_dataid = sanitize_text_field( $_POST['dataid'] );
$post_container = sanitize_text_field($_POST['container']);
$post_containerclass = sanitize_text_field($_POST['containerclass']);
$wpdb->query($wpdb->prepare("UPDATE $hypeanimations_table_name SET container=%s, containerclass=%s WHERE id=%d",$post_container, $post_containerclass, $post_dataid));
$response['response'] = "ok";
}
else { $response['response'] = "error"; }
header( "Content-Type: application/json" );
if (isset($response)) { echo json_encode($response); }
If that doesn’t work I’d be happy to login to your site and take a look.