Cannot post in phpBB2 forum after moving DB
I changed my hosting provider and move my phpBB2 forum. I copied all files
and moved db. Everything is looking OK but I cannot make new post. In
particular when I try to post everything is OK but new topic isn't there.
All SQL queries is executed correctly and data is in DB but the problem is
in ID of the topic and the post. When insert row in phpbb_topics table
it's correct but the second query insert data in phpbb_posts with 0 in
topic_id field. The same happens with INSERT INTO phpbb_posts_text query.
It insert 0 in post_id field instead real id of post. Why is this
hapenning? The PHP code is the same. I don't change it. Tha data from old
DB is there and AUTO_INCREMENT field in information_schema db for this
tables is correct. Where is the problem? The only difference is the
server. Version of PHP is the same - 5.2.17 but MySQL is upper -
5.5.30-MariaDB-log (old was 5.1.63-cll). Is it possible some php function
not return correct id of last inserted row in db (apparently returned 0
instead real id).
No comments:
Post a Comment