Title: Error: Failed to save template.
Last modified: September 25, 2025

---

# Error: Failed to save template.

 *  [Pb164](https://wordpress.org/support/users/pb164/)
 * (@pb164)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/error-failed-to-save-template/)
 * Hello! There is a problem with saving template on Writing module. Getting the
   same error on any step of filling template data.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-failed-to-save-template%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [Pb164](https://wordpress.org/support/users/pb164/)
 * (@pb164)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/error-failed-to-save-template/#post-18655765)
 * 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](https://wordpress.org/support/users/senols/)
 * (@senols)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/error-failed-to-save-template/#post-18657330)
 * Hi [@pb164](https://wordpress.org/support/users/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](https://wordpress.org/support/users/pb164/)
 * (@pb164)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/error-failed-to-save-template/#post-18658668)
 * 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:12856p @ admin-main.bundle.js?ver=2.3.43:
   606admin-main.bundle.js?ver=2.3.43:1
 *     ```wp-block-code
          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:1p @ admin-main.bundle.js?ver=2.3.43:606(anonymous) @ admin-main.bundle.
   js?ver=2.3.43:606admin-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

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error: Failed to save template.’ is closed to new replies.

 * ![](https://ps.w.org/gpt3-ai-content-generator/assets/icon-256x256.png?rev=3454929)
 * [AI Puffer – Chat. Create. Automate. (formerly AI Power)](https://wordpress.org/plugins/gpt3-ai-content-generator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gpt3-ai-content-generator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gpt3-ai-content-generator/)
 * [Active Topics](https://wordpress.org/support/plugin/gpt3-ai-content-generator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gpt3-ai-content-generator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gpt3-ai-content-generator/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Pb164](https://wordpress.org/support/users/pb164/)
 * Last activity: [8 months, 2 weeks ago](https://wordpress.org/support/topic/error-failed-to-save-template/#post-18658668)
 * Status: not resolved