mybb2
mybb2 copied to clipboard
Settings service provider preventing Auto installer from being possible
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_idfrom
settingsleft join
setting_valueson
setting_values.
setting_id=
settings.
idwhere
user_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.
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.