Table not created
-
I get an activation problem on my live server running PHP Version 5.6.26.
The table does not get created.WordPress database error Invalid default value for 'created' for query CREATE TABLE wp_lightbox_photoswipe_img ( imgkey char(64) DEFAULT '' NOT NULL, created datetime DEFAULT NOW(), width mediumint(7), height mediumint(7), PRIMARY KEY (imgkey), INDEX (created) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci made by activate_plugin, do_action('activate_lightbox-photoswipe/lightbox-photoswipe.php'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, lightbox_photoswipe_activate, lightbox_photoswipe_create_tables, dbDelta
Even if I create it manually in PHPMyadmin when it comes to setting the default value for
created
toCURRENT_TIMESTAMP
I get an error#1067 – Invalid default value for ‘created’
If I don’t set a defalut value it doesn’t work either.
On my local xampp with PHP Version 7.0.8 the plugin runs fine.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Table not created’ is closed to new replies.