- Issue created by @MegaphoneJon
- Merge request !64Check for session existence before getting session variable β (Open) created by MegaphoneJon
- Status changed to Needs review
about 1 hour ago 8:46pm 18 December 2024
After upgrading to autologout 1.5, drush commands that execute as a particular user throw an exception. This problem is also present on version 2.0.
Install CiviCRM:
composer config extra.enable-patching true
composer require civicrm/civicrm-{core,packages,drupal-8}
composer require civicrm/cli-tools
Use the `drush cvapi` command, i.e. `drush cvapi System.getactions`.
This occurs due to the change to `autologout_check_session_variable` in commit ae12b9b1d40343b7f85fbefc71b2f32e43cbce8e
Wrapping the call to `getSession()` in an `if` that checks if the session exists resolves this.
None (after patch review).
None.
None.
None.
Active
2.0
Code