Не поленился заменить всё. При включении:rxu писал(а):Залил новый вариант, попробуйте проверить. Можно заменить только одну миграцию v_1_2_8.php.
Код: Выделить всё
SQL ERROR [ mysqli ]
Column 'forum_id' cannot be null [1048]
SQL
UPDATE phpbb_thanks SET forum_id = (SELECT forum_id FROM phpbb_posts WHERE post_id = phpbb_thanks.post_id AND post_id IS NOT NULL)
BACKTRACE
FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()
FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 855
CALL: trigger_error()
FILE: [ROOT]/phpbb/db/driver/mysqli.php
LINE: 194
CALL: phpbb\db\driver\driver->sql_error()
FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 329
CALL: phpbb\db\driver\mysqli->sql_query()
FILE: [ROOT]/ext/gfksx/ThanksForPosts/migrations/v_1_2_8.php
LINE: 92
CALL: phpbb\db\driver\factory->sql_query()
FILE: (not given by php)
LINE: (not given by php)
CALL: gfksx\ThanksForPosts\migrations\v_1_2_8->update_thanks_table()
FILE: [ROOT]/phpbb/db/migrator.php
LINE: 510
CALL: call_user_func_array()
FILE: [ROOT]/phpbb/db/migrator.php
LINE: 456
CALL: phpbb\db\migrator->run_step()
FILE: [ROOT]/phpbb/db/migrator.php
LINE: 294
CALL: phpbb\db\migrator->process_data_step()
FILE: [ROOT]/phpbb/db/migrator.php
LINE: 174
CALL: phpbb\db\migrator->try_apply()
FILE: [ROOT]/phpbb/extension/base.php
LINE: 80
CALL: phpbb\db\migrator->update()
FILE: [ROOT]/ext/gfksx/ThanksForPosts/ext.php
LINE: 52
CALL: phpbb\extension\base->enable_step()
FILE: [ROOT]/phpbb/extension/manager.php
LINE: 187
CALL: gfksx\ThanksForPosts\ext->enable_step()
FILE: [ROOT]/includes/acp/acp_extensions.php
LINE: 184
CALL: phpbb\extension\manager->enable_step()
FILE: [ROOT]/includes/functions_module.php
LINE: 674
CALL: acp_extensions->main()
FILE: [ROOT]/adm/index.php
LINE: 81
CALL: p_master->load_active()