Skip to content

Commit

Permalink
Fixed error on the Plugins page if there was a plugin in DB but not C…
Browse files Browse the repository at this point in the history
…omposer
  • Loading branch information
brandonkelly committed Feb 7, 2019
1 parent 962fa51 commit dd3c72c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- Fixed a SQL error that could occur when deleting an asset. ([#3786](https://github.com/craftcms/cms/issues/3786))
- Fixed an error that occurred when customizing element indexes if the `allowAdminChanges` config setting was disabled. ([#3788](https://github.com/craftcms/cms/issues/3788))
- Fixed a bug where Checkboxes, Dropdown, Multi-select, and Radio Buttons fields wouldn’t pass validation if the selected option value was `true` or `false`.
- Fixed an error that occurred on the Settings → Plugins page, if there were any plugins in the database that weren’t Composer-installed.

## 3.1.8 - 2019-02-05

Expand Down
6 changes: 5 additions & 1 deletion src/services/Plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -1294,7 +1294,11 @@ private function _loadDisabledPluginInfo()
$this->_disabledPluginInfo = [];

foreach ($pluginInfo as $handle => &$row) {
$configData = $this->_getPluginConfigData($handle);
try {
$configData = $this->_getPluginConfigData($handle);
} catch (InvalidPluginException $e) {
continue;
}

// Skip enabled plugins
if (!empty($configData['enabled'])) {
Expand Down

0 comments on commit dd3c72c

Please sign in to comment.