• Getting the following error on plugin activation:

    
    Plugin could not be activated because it triggered a fatal error.
    
    prefix . 'hypeanimations'; ?>get_charset_collate(); $sql = "CREATE TABLE $table_name ( id int(9) NOT NULL AUTO_INCREMENT, nom varchar(150) DEFAULT '' NOT NULL, slug varchar(150) DEFAULT '' NOT NULL, code text NOT NULL, updated INT(11) NOT NULL, container ENUM('none','div','iframe') NOT NULL, containerclass VARCHAR(150) NOT NULL, UNIQUE KEY id (id) ) $charset_collate;";	require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); dbDelta( $sql ); if ($installed_ver=='') { add_option( 'hypeanimations_db_version', $hypeanimations_db_version ); } else { update_option( "hypeanimations_db_version", $hypeanimations_db_version ); } $update = $wpdb -> query("UPDATE ".$table_name." SET container='none'"); } $upload_dir = wp_upload_dir(); if (!file_exists($upload_dir['basedir'].'/hypeanimations/')) { mkdir($upload_dir['basedir'].'/hypeanimations/'); } if (!file_exists($upload_dir['basedir'].'/hypeanimations/tmp/')) { mkdir($upload_dir['basedir'].'/hypeanimations/tmp/'); } } function hypeanimations_install() { global $wpdb; global $hypeanimations_db_version; global $table_name; $charset_collate = $wpdb->get_charset_collate(); $sql = "CREATE TABLE $table_name ( id int(9) NOT NULL AUTO_INCREMENT, nom varchar(150) DEFAULT '' NOT NULL, slug varchar(150) DEFAULT '' NOT NULL, code text NOT NULL, updated INT(11) NOT NULL, container ENUM('none','div','iframe') NOT NULL, containerclass VARCHAR(150) NOT NULL, UNIQUE KEY id (id) ) $charset_collate;";	require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); dbDelta( $sql ); add_option( 'hypeanimations_db_version', $hypeanimations_db_version ); } register_activation_hook(__FILE__,'hypeanimations_install'); ?>
    Parse error: syntax error, unexpected '}', expecting end of file in /srv/www/sentient/htdocs/wp-content/plugins/hype-animations/includes/functions.php on line 16
    

    The error (as seen in message above) is:

    
    expecting end of file in /srv/www/sentient/htdocs/wp-content/plugins/hype-animations/includes/functions.php on line 16
    
    • This topic was modified 7 years, 9 months ago by ereckers.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error on activation’ is closed to new replies.