Problem/Motivation
After saving a task I get the following:
"The website encountered an unexpected error. Please try again later."
If I close the error and go back to the project backlog the Task was created despite the error message.
Steps to reproduce
Create a project
Visit backlog and create a task
Save task and get "The website encountered an unexpected error. Please try again later."
Visit backlog page and view the newly created task (despite the error the task was created)
The error message after task save
Location /burndown/task/add/task?destination=%2Fburndown%2Fbacklog%2FWILD&shortcode=WILD
Referrer /burndown/task/add/task?shortcode=WILD&destination=/burndown/backlog/WILD
Message TypeError: Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher::dispatch(): Argument #1 ($event) must be of type object, string given, called in \modules\contrib\burndown\burndown.module on line 336 in Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (line 89 of \core\lib\Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher.php).
In my backlog where my newly created task is visible
I can click on "send task to board" I get the same "The website encountered an unexpected error. Please try again later." message
Location /burndown/api/backlog/send_to_board/WILD-1
Referrer /burndown/backlog/WILD
Message TypeError: Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher::dispatch(): Argument #1 ($event) must be of type object, string given, called in \modules\contrib\burndown\burndown.module on line 350 in Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (line 89 of \core\lib\Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher.php).
When I go to the project board I can see the task
My drupal install
drupal 10.0.7
php 8.1.0
WAMP localhost install
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 3355316.patch | 23.6 KB | shailja179 |
| #5 | after_error_go_back.png | 17.54 KB | raveen_thakur51 |
| #5 | error.png | 9.14 KB | raveen_thakur51 |
Issue fork burndown-3355316
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
shailja179 commentedComment #3
shailja179 commentedThis module has many bugs with task functionality. Fixing those bugs too.
Comment #4
jeremylichtman commented@shailja179, let me know if you want maintainer status on this project.
Comment #5
raveen_thakur51 commented@jeremylichtman, I also got the same error. But after going back the task was created. I am attaching screenshots for your reference. Please review & thank you. I am using Drupal - 9.5.1 , PHP version- 8.1.
Comment #6
omkar_yewale commentedComment #8
omkar_yewale commentedThank you for bringing this issue to attention. I have created a !10MR for it and kindly review it.
Comment #9
shailja179 commentedThis patch has other fixed bugs related to task edit, add and delete in Drupal10.
Some Phpcs bugs also resolved in this patch.
Comment #10
jeremylichtman commented@shailja179 If you create a PR for that patch, I can merge it in.
Comment #11
omkar_yewale commentedHi @jeremylichtman,
I update My !10 MR with @shailja179 #9 patch changes.
Please review.
Comment #13
jeremylichtman commentedI have merged the MR and created 1.0.29.
@vlooi-vlerke does this resolve the issue you were seeing?
Comment #14
jeremylichtman commented