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

Issue fork burndown-3355316

Command icon 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

Vlooi Vlerke created an issue. See original summary.

shailja179’s picture

Assigned: Unassigned » shailja179
shailja179’s picture

Status: Active » Needs work

This module has many bugs with task functionality. Fixing those bugs too.

jeremylichtman’s picture

@shailja179, let me know if you want maintainer status on this project.

raveen_thakur51’s picture

StatusFileSize
new9.14 KB
new17.54 KB

@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.

omkar_yewale’s picture

Assigned: shailja179 » omkar_yewale

omkar_yewale’s picture

Assigned: omkar_yewale » Unassigned
Status: Needs work » Needs review

Thank you for bringing this issue to attention. I have created a !10MR for it and kindly review it.

shailja179’s picture

Assigned: Unassigned » shailja179
StatusFileSize
new23.6 KB

This patch has other fixed bugs related to task edit, add and delete in Drupal10.
Some Phpcs bugs also resolved in this patch.

jeremylichtman’s picture

@shailja179 If you create a PR for that patch, I can merge it in.

omkar_yewale’s picture

Assigned: shailja179 » Unassigned

Hi @jeremylichtman,

I update My !10 MR with @shailja179 #9 patch changes.
Please review.

jeremylichtman’s picture

I have merged the MR and created 1.0.29.

@vlooi-vlerke does this resolve the issue you were seeing?

jeremylichtman’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.