You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When drush cim tries to delete a view, it fails with this error:
There is currently no session available
To Reproduce
Call drush cex.
Create a view.
Call drush cim.
Expected behavior
No error.
Actual behavior
In ConfigImportCommands.php line 291:
The import failed due to the following reasons:
Erreur inattendue lors de l'importation avec l'opération delete pour views.view.test : There is currently no session available.
In ConfigImportCommands.php line 278:
Errors occurred during import
Workaround
Relaunching drush cim again works (because the view was actually deleted, it just fails at the post delete step).
System Configuration
Q
A
Drush version?
13.3.3.0
Drupal version?
11.0.9
PHP version
8.3.6
OS?
Linux
Additional information
I think this happens because since https://www.drupal.org/project/drupal/issues/3413153 Drupal core assumes a request always has a session, but that's not true when using Drush. View::postDelete() calls SharedTempStoreFactory::get() which tries to access the session and fails.
The text was updated successfully, but these errors were encountered:
Describe the bug
When
drush cim
tries to delete a view, it fails with this error:To Reproduce
drush cex
.drush cim
.Expected behavior
No error.
Actual behavior
Workaround
Relaunching
drush cim
again works (because the view was actually deleted, it just fails at the post delete step).System Configuration
Additional information
I think this happens because since https://www.drupal.org/project/drupal/issues/3413153 Drupal core assumes a request always has a session, but that's not true when using Drush.
View::postDelete()
callsSharedTempStoreFactory::get()
which tries to access the session and fails.The text was updated successfully, but these errors were encountered: