-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install failed, if installed with Project ID #26
Comments
@bennothommo Do you think this could have something to do with the migration That's the only recent change I can think of that would cause this issue. Perhaps I can wrap the migration in: if (DB::table('system_settings')->where('item', 'abwebdevelopers_imageresize')->exists()) {
// Now you can safely reference the plugin's settings here?
} @mediaclinic I'll release a fix for this today, if I can confirm that my guess above is correct |
@bradietilley yeah that's probably it - I've had the same issue crop up sometimes when I'm starting a new install through Composer, and the database is available but the migrations have not yet been run. It usually works if I disable the plugin and then re-enable it afterwards, as @mediaclinic indicated. |
I have updated the migration so that it wraps the migration code in a existence check on the plugin's settings. @mediaclinic Can you please try with v2.1.6? |
Did not help. Here is the install.log, if it helps a bit:
|
@mediaclinic Thanks for that. Ben and I investigated it further and found that October will boot all of the plugins even when no database connection is configured, i.e. during installation, as demonstrated by your error log's stack trace. We have also noticed this issue on other plugins that reference Settings in the boot method. In the latest release, I have wrapped the event callback in try/catch which tests the database connection by checking the existence of the If you update to v2.1.7 this issue should be resolved. |
This works like a charm! |
Interesting failure: with the latest version, tried to install new OctoberCMS site via ProjectID (I have project setup with Image Resize plugin) and get this error:
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) (SQL: select * from
system_settings
whereitem
= abwebdevelopers_imageresize limit 1)If I remove it from project, installation works without error.
The text was updated successfully, but these errors were encountered: