Issue #20: Make things more consistent even if there is not yet a lock file.#23
Open
laryn wants to merge 1 commit intobackdrop-contrib:1.x-2.xfrom
Open
Issue #20: Make things more consistent even if there is not yet a lock file.#23laryn wants to merge 1 commit intobackdrop-contrib:1.x-2.xfrom
laryn wants to merge 1 commit intobackdrop-contrib:1.x-2.xfrom
Conversation
Contributor
|
There is a new issue after apply this patch. Enabling the composer_manager module works fine, but when enabling the composer_manager_sa module it yells about the autoload.php file. RuntimeException: Autoloader not found: /var/www/html/files/vendor/autoload.php in composer_manager_register_autoloader() (line 184 of /var/www/html/modules/composer_manager/composer_manager.module).Edit I see now, that function throws if the autoloader isn't found. I think a try/catch block in the composer_manager_sa module would fix this. |
sikofitt
reviewed
Feb 9, 2026
| @@ -83,12 +88,23 @@ function composer_manager_sa_vulnerabilities($lock_file, $force_refresh = FALSE) | |||
| // update the Composer autoloader may not be registered. | |||
| composer_manager_register_autoloader(); | |||
Contributor
There was a problem hiding this comment.
Suggested change
| composer_manager_register_autoloader(); | |
| try { | |
| composer_manager_register_autoloader(); | |
| } catch(\Exception $e) { | |
| backdrop_set_message(t('Run composer update to create a composer autoload.php file.'), 'error'); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #20.