Odd, it installed fine on another one of my WP sites?
Nope, scratch that, it doesnt create the custom events table on both sites
Hi, let me check this out. Will get back to you on this shortly.
My error log has blown up with the same issue
I had to manually add the table myself.
The code below did not seem to execute.
// Custom event table
$query = ‘CREATE TABLE ‘.$wpdb->prefix.HA_Common::CUSTOM_EVENT_TBL_NAME.’ (
‘.HA_Common::ID_COLUMN.’ int(11) NOT NULL AUTO_INCREMENT,
‘.HA_Common::EVENT_TYPE_COLUMN.’ varchar(255),
‘.HA_Common::DESCRIPTION_COLUMN.’ varchar(255),
‘.HA_Common::CUSTOM_EVENT_COLUMN.’ varchar(255),
‘.HA_Common::URL_COLUMN.’ varchar(255),
‘.HA_Common::IS_FORM_SUBMIT_COLUMN. ‘ tinyint(1) DEFAULT 0,
‘.HA_Common::IS_MOUSE_CLICK_COLUMN. ‘ tinyint(1) DEFAULT 1,
‘.HA_Common::IS_TOUCHSCREEN_TAP_COLUMN. ‘ tinyint(1) DEFAULT 0,
PRIMARY KEY (‘.HA_Common::ID_COLUMN.’),
KEY ix_custom_event (‘ . HA_Common::URL_COLUMN . ‘, ‘. HA_Common::EVENT_TYPE_COLUMN . ‘),
) ENGINE=InnoDB AUTO_INCREMENT=1;’;
dbDelta( $query );
Hi,
There’s a stray comma in the SQL statement causing the table not to be created. Sorry. This has been fixed now. Please try the latest version.
Thanks,
Daniel