postlove
postlove copied to clipboard
I can not enable extension
Hello, I am trying to enable the extension, plus the following error occurs:
I am use phpbb 3.1.8.
General Error SQL ERROR [ mssqlnative ]
SQLSTATE: 42S22 code: 1911 message: [Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Column name 'post_id, user_id' does not exist in the target table or view. SQLSTATE: 42000 code: 1750 message: [Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Could not create constraint. See previous errors. [1750]
SQL
ALTER TABLE [phpbb_posts_likes] WITH NOCHECK ADD CONSTRAINT [PK_phpbb_posts_likes] PRIMARY KEY CLUSTERED ([post_id, user_id])
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/mssqlnative.php LINE: 143 CALL: phpbb\db\driver\driver->sql_error()
FILE: [ROOT]/phpbb/db/driver/factory.php LINE: 329 CALL: phpbb\db\driver\mssqlnative->sql_query()
FILE: [ROOT]/phpbb/db/tools.php LINE: 1428 CALL: phpbb\db\driver\factory->sql_query()
FILE: [ROOT]/phpbb/db/tools.php LINE: 678 CALL: phpbb\db\tools->_sql_run_sql()
FILE: [ROOT]/phpbb/db/tools.php LINE: 742 CALL: phpbb\db\tools->sql_create_table()
FILE: (not given by php) LINE: (not given by php) CALL: phpbb\db\tools->perform_schema_changes()
FILE: [ROOT]/phpbb/db/migrator.php LINE: 550 CALL: call_user_func_array()
FILE: [ROOT]/phpbb/db/migrator.php LINE: 496 CALL: phpbb\db\migrator->run_step()
FILE: [ROOT]/phpbb/db/migrator.php LINE: 305 CALL: phpbb\db\migrator->process_data_step()
FILE: [ROOT]/phpbb/db/migrator.php LINE: 202 CALL: phpbb\db\migrator->try_apply()
FILE: [ROOT]/phpbb/db/migrator.php LINE: 185 CALL: phpbb\db\migrator->update_do()
FILE: [ROOT]/phpbb/extension/base.php LINE: 80 CALL: phpbb\db\migrator->update()
FILE: [ROOT]/ext/anavaro/postlove/ext.php LINE: 42 CALL: phpbb\extension\base->enable_step()
FILE: [ROOT]/phpbb/extension/manager.php LINE: 187 CALL: anavaro\postlove\ext->enable_step()
FILE: [ROOT]/includes/acp/acp_extensions.php LINE: 177 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()
The extension isn't stable.
Quoted from main thread: """
@satanasov Sadly, the extensions does not 100% work with the "comboot-way-change". Can you please have a look? I guess it's a issue with your javascript, which I can not change, because its not in the theme folder. I would also suggest, that you use fontawesome instead of the heart image. phpBB will add support for fontawesome in 3.2, so it's a good time to add it. What do you think?
@vpontin I did not release it yet, because it does not 100% work (as described above). If you want to download it, you have to go to the "comboot" branche: https://github.com/satanasov/postlove/tree/comboot
"""
Very important to @TheZoker know