mysql - Drupal database error after copying one drupal site to another and copying databases with prefix -


i duplicated drupal site , database first 1 another. of course copied files 1st instance 2nd.

now encounter database error when try add content page, content.

full error

pdoexception: sqlstate[23000]: integrity constraint violation: 1048 kolumna'entity_id' nie może być null: insert {field_data_body} (entity_type, entity_id, revision_id, bundle, delta, language, body_value, body_summary, body_format) values (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8); array ( [:db_insert_placeholder_0] => node [:db_insert_placeholder_1] => [:db_insert_placeholder_2] => [:db_insert_placeholder_3] => content type try add (here podstrona) [:db_insert_placeholder_4] => 0 [:db_insert_placeholder_5] => und [:db_insert_placeholder_6] => adawdawd [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => html ) in field_sql_storage_field_storage_write() (line 494 of /home/username/domains/domain/public_html/subdomain/modules/field/modules/field_sql_storage/field_sql_storage.module).

to precise: 1st copied files 1st instance 2nd (which hosted on subdomain) deleted 2nd db, copied 1st database specific prefix (of course matching installation prefix). interesting fact can add content types, views etc, cant add content page cause above error prompts.

i appreciate help, , in advance!

it may database corrupted or data entered , database rules changed , data become illegal or something.

anyway, try importing console , use --force option.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -