Skip to main content

Wordpress "Could not insert post into the database"

Comments

5 comments

  • cPanelLauren
    I was reading somewhere that this is commonly caused by the tables being set to MYISAM as oppossed to INNoDB, have you looked at switching them? From the mysql command line what's the output of the following: show variables like 'sql_mode';
    Side Note: While filling out this form, we wanted to be sure we clearly tagged the post:

    We have create new tags turned off but you should be able to add existing tags (all tag creation was disabled previously) so you can add tags that exist but not create new ones. I'm not sure why all tags were disabled previously but I can look at enabling them globally. Wordpress, wp upload, mysql, post_date might be good ones to add and I've added the ones you didn't have in there in the meantime.
    0
  • jndawson
    I was reading somewhere that this is commonly caused by the tables being set to MYISAM as oppossed to INNoDB, have you looked at switching them? From the mysql command line what's the output of the following: show variables like 'sql_mode';

    Tables are INNoDB sql="" We tried several different sql= variables, but none had any effect.
    0
  • jndawson
    We've opened a ticket #93460218 . Any revelations will be reported here.
    0
  • cPanelLauren
    Hi @jndawson Ok, great, I apologize I've been out sick all week - I'm glad you opened a ticket though.
    0
  • cPanelLauren
    Reading through that ticket and it looks like the following was the outcome: It looks like Auto Increment was not enabled for the table which lead to duplicate keys the workaround for this was as follows: [QUOTE] The resequencing issue appears to be related to the key value of 0. When auto_increment is enabled, this results in any column value with a key of 0 or NULL being set to '1'. A proposed solution to this behavior when the structure of a database that is already heavily populated with data is updated is to temporarily set the sql_mode for MySQL to no_auto_value_on_zero in the /etc/my.cnf configuration file, restart the server and then alter the MySQL database structure.
    Can you let us know if all is functioning well at this time? I did see you had some further issues with it but they may not be specific to this issue.
    0

Please sign in to leave a comment.