Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Settings service provider preventing Auto installer from being possible #267

Open
036 opened this issue Nov 18, 2016 · 1 comment
Open

Comments

@036
Copy link
Contributor

036 commented Nov 18, 2016

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.

@euantorano
Copy link
Member

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants