Thread Starter
Pb164
(@pb164)
There are messages in browser console:
Failed to load resource: the server responded with a status of 400 ()
Error saving template: Error: Failed to save template.
Plugin Author
senols
(@senols)
Hi @pb164
Thanks for reporting this.
Lets do some quick checks pls:
– Try creating a new template. Save a minimal template: Name “Test”, post type “post”, status “draft”, leave other fields default.
– Use a short, ASCII-only name (under ~80 chars). Pls dont use any non-latin characater.
– Use different browser or use Chrome or Firefox’s incognito mode.
– Update the plugin to the latest version, then deactivate and reactivate it (this re-creates missing DB tables).
If it still fails:
Open DevTools → Network → find the admin-ajax.php call with action=aipkit_save_cw_template.
Please share:
– HTTP status (400 vs 403)
– JSON “code” and “message” from the Response tab
Confirm the DB table for your site prefix exists: wp_aipkit_content_writer_templates.
pls also let me know your WordPress version, PHP version, MySQL/MariaDB version, multisite or not, and any security/caching plugins active.
400 usually means data/DB validation (e.g., duplicate name, overly long custom post type slug, or strict DB field limits).
pls let me know those details.
Thread Starter
Pb164
(@pb164)
Hello! Have tried what you told:
1. Still error!
2. Here are codes
Failed to load resource: the server responded with a status of 400 ()
admin-main.bundle.js?ver=2.3.43:606 Error saving template: Error: Failed to save template.
at admin-main.bundle.js?ver=2.3.43:1:12856
p @ admin-main.bundle.js?ver=2.3.43:606
admin-main.bundle.js?ver=2.3.43:1
POST https://mysite.com/wp-admin/admin-ajax.php 400 (Bad Request)
(anonymous) @ admin-main.bundle.js?ver=2.3.43:1
p @ admin-main.bundle.js?ver=2.3.43:1
p @ admin-main.bundle.js?ver=2.3.43:606
(anonymous) @ admin-main.bundle.js?ver=2.3.43:606
admin-main.bundle.js?ver=2.3.43:606 Error saving template: Error: Failed to save template.
3. There is no table wp_aipkit_content_writer_templates. After reactivation of the plugin
PHP Version 8.3.10,
WP Version – 6.8.2,
SQL – 5.4 (as i know for my hosting), or something shows in system info page =
mysqlnd enabledVersionmysqlnd 8.3.10