Problema dopo trasferimento database

Proviamo insieme a risolvere i problemi che sorgono durante la gestione del forum.
Rispondi
Avatar utente
Darkman
Amministratore
Amministratore
Messaggi: 1204
Iscritto il: marzo 28, 2009, 11:04 pm

Problema dopo trasferimento database

Messaggio da Darkman »

Può capitare questo errore

Codice: Seleziona tutto

Errore Generale
SQL ERROR [ mysql4 ]

Field 'post_edit_reason' doesn't have a default value [1364]

SQL

INSERT INTO phpbb_posts (forum_id, poster_id, icon_id, poster_ip, post_time, post_approved, enable_bbcode, enable_smilies, enable_magic_url, enable_sig, post_username, post_subject, post_text, post_checksum, post_attachment, bbcode_bitfield, bbcode_uid, post_postcount, post_edit_locked, topic_id) VALUES (12, 2, 0, '79.23.186.55', 1293647723, 1, 1, 1, 1, 1, '', 'Re: Presentazioni', 'a', '0cc175b9c0f1b6a831c399e269772661', 0, '', 'sn8myl31', 1, 0, 17)

BACKTRACE

FILE: includes/db/mysql.php
LINE: 175
CALL: dbal->sql_error()

FILE: includes/functions_posting.php
LINE: 1985
CALL: dbal_mysql->sql_query()

FILE: posting.php
LINE: 1137
CALL: submit_post()
Nel .com la soluzione sarebbe eseguire una query che riporti il vslore predefinito esatto

Codice: Seleziona tutto

ALTER TABLE `phpbb3_topics` CHANGE `poll_title` `poll_title` BLOB DEFAULT '' NOT NULL

ALTER TABLE `phpbb3_topics` CHANGE `topic_last_post_subject` `topic_last_post_subject` BLOB DEFAULT '' NOT NULL

ALTER TABLE `phpbb3_privmsgs` CHANGE `message_edit_reason` `message_edit_reason` BLOB DEFAULT '' NOT NULL 
Leggete qui

http://www.phpbb.com/community/viewtopi ... 57&start=0
Rispondi