I’m seeing the same problem.
Even without code. I see a number of problems, but it’s easier to give you the log:
[03-Dec-2023 01:12:21 UTC] WordPress database error Invalid default value for 'modified' for query CREATE TABLE zdcu_snippets (
id BIGINT(20) NOT NULL AUTO_INCREMENT,
name TINYTEXT NOT NULL,
description TEXT NOT NULL,
code LONGTEXT NOT NULL,
tags LONGTEXT NOT NULL,
scope VARCHAR(15) NOT NULL DEFAULT 'global',
priority SMALLINT NOT NULL DEFAULT 10,
active TINYINT(1) NOT NULL DEFAULT 0,
modified DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
revision BIGINT(20) NOT NULL DEFAULT 1,
cloud_id VARCHAR(255) NULL,
PRIMARY KEY (id),
KEY scope (scope),
KEY active (active)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci made by do_action('load-snippets_page_add-snippet'), WP_Hook->do_action, WP_Hook->apply_filters, Code_Snippets\Edit_Menu->load, Code_Snippets\Admin_Menu->load, Code_Snippets\DB::create_missing_table, Code_Snippets\DB::create_table, dbDelta
[03-Dec-2023 01:12:21 UTC] WordPress database error Table 'SITE.zdcu_snippets' doesn't exist for query SELECT tags FROM zdcu_snippets made by require_once('wp-admin/admin-header.php'), do_action('admin_enqueue_scripts'), WP_Hook->do_action, WP_Hook->apply_filters, Code_Snippets\Edit_Menu->enqueue_assets, Code_Snippets\get_all_snippet_tags
[03-Dec-2023 01:12:32 UTC] WordPress database error Table 'SITE.zdcu_snippets' doesn't exist for query SHOW FULL COLUMNS FROM
zdcu_snippets
made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Code_Snippets\REST_API\Snippets_REST_Controller->create_item, Code_Snippets\save_snippet
wordpress 6.4.1
Code Snippets 3.6.2
I use OpenServer:
Apache
php 7.4
MySQL 5.5
-
This reply was modified 11 months, 3 weeks ago by polarone.