Skip to contentSkip to main navigation Skip to footer

Error: Could Not Save the Snippet or the Data

This error has been in the Squirrly SEO plugin since 2019. Older versions showed it as “ERROR! Could not save the data. Please try again”.

In Squirrly SEO 14.2.11 the same problem shows one of these messages:

  • When you save an SEO Snippet: Could not save the snippet. Please check the database table wp_qss integrity. (with your own table prefix instead of wp_)
  • When an AI assistant saves the SEO through the Squirrly abilities (MCP): Error! Could not save the data.

Both mean the plugin can’t save the SEO Snippet into the database.

Situations when this error is triggered:

  1. The database table (wp)_qss was deleted and the plugin doesn’t have the permission to create it again.
  2. The table integrity is affected and not all columns are present in the table. The table needs these columns: id, blog_id, post, URL, url_hash, seo and date_time.
  3. The table character set doesn’t match the data you save (for example, the table isn’t set to UTF8 or UTF8mb4).

Solutions:

1. Deactivate and activate Squirrly SEO from Plugins. On activation, the plugin checks that the (wp)_qss table exists, creates it if it’s missing, and adds the post column if it’s missing. Then try to save the snippet again.

If the error is still there, the database user probably can’t create or change tables. Ask your host to check the permissions, or run the SQL below in phpMyAdmin. Back up your database first.

2. Create the table with your WordPress table prefix and the name _qss. The example uses the default wp_ prefix: change it to the one set in wp-config.php ($table_prefix). Use the same character set and collation as your other WordPress tables (the example uses utf8mb4).

CREATE TABLE wp_qss (
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
blog_id INT(10) NOT NULL,
post VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
URL VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
url_hash VARCHAR(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
seo text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
date_time DATETIME NOT NULL,
PRIMARY KEY (id),
UNIQUE url_hash (url_hash) USING BTREE,
INDEX blog_id_url_hash (blog_id, url_hash) USING BTREE
)
DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci

3. If the table exists but the post column is missing, add it with this SQL command:

ALTER TABLE wp_qss ADD COLUMN post VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT ''

4. To set the table’s default character set, run this SQL command (again with the character set and collation of your other WordPress tables):

ALTER TABLE wp_qss DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_unicode_ci

Other Squirrly SEO messages are listed in Squirrly SEO Error Messages.

Before you leave

Future of AEO GEO and AI Search!

Free Now. Free Forever.

It’s time to stop orbiting SaaS.

Be the Meteor.

10 Elite Tools. 1 Stack.