mybb2 icon indicating copy to clipboard operation
mybb2 copied to clipboard

Settings service provider preventing Auto installer from being possible

Open 036 opened this issue 8 years ago • 1 comments

When trying to access routes without the migration being run MyBB2 throws a query exception:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mybb2.settings' doesn't exist (SQL: select settings.id, settings.name, settings.package, setting_values.value, setting_values.user_idfromsettingsleft joinsetting_valuesonsetting_values.setting_id=settings.idwhereuser_id is null)

This is due to the settings service provider loading and attempting to grab data from the database which then throws an error because the migration hasn't run yet. This prevents an auto-installer being created/working.

036 avatar Nov 18 '16 13:11 036

As discussed on Discord, I'm probably going to fix this by lazy loading settings when a setting is first accessed rather than at app boot time.

On 18 Nov 2016, at 13:12, Paradigm [email protected] wrote:

When trying to access routes without the migration being run MyBB2 throws a query exception:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mybb2.settings' doesn't exist (SQL: selectsettings.id,settings.name,settings.package,setting_values.value,setting_values.user_idfromsettingsleft joinsetting_valuesonsetting_values.setting_id=settings.idwhereuser_idis null)

This is due to the settings service provider loading and attempting to grab data from the database which then throws an error because the migration hasn't run yet. This prevents an auto-installer being created/working.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

euantorano avatar Nov 18 '16 14:11 euantorano