Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Undefined array key "due_date" #26

Closed
GusevVictor opened this issue Oct 1, 2023 · 5 comments
Closed

Warning: Undefined array key "due_date" #26

GusevVictor opened this issue Oct 1, 2023 · 5 comments

Comments

@GusevVictor
Copy link

I installed:

Application version: v1.2.32
PHP version: 8.2.8
PHP SAPI: fpm-fcgi
Auto Email Extended Actions 1.2.5
SubtaskDueDate 1.1.3

If I add Automatic action for the project:

Send email notification of impending subtask due date

Event name = Daily background job for tasks
Duration in days = 1
Choose a column to ignore, when a task is in this column, no emails will be sent. = Backlog

The job returns an error meaasge. The message is

Warning: Undefined array key "due_date" in /var/www/app/plugins/SendEmailCreator/Action/SubTaskEmailDue.php on line 78

After that there is no any work email notify at all.

Can you fix that please?

@imfx77
Copy link

imfx77 commented Oct 5, 2023

I guess you took note of this comment from the plugin README?

4.) Send email of an impending subtask due date to assigned user
   This requires the [Subtask Due Date Plugin](https://github.com/eSkiSo/Subtaskdate) to function.

SUBtasks normally don't have "due_date" field, and the above plugin is that adds it.

@creecros
Copy link
Owner

creecros commented Oct 5, 2023

He claims he installed it.

I haven't had time to do any tests, but I would suggest insuring that both plugins do infact exist, and both are working. It's possible you need to restart your server, or the Subtask due date plugin failed to update your database schema. Just some things you can check.

I'm pretty sure once I get a chance to run tests on the latest KB version, there most likely won't be anything wrong with the code, but we'll see.

@GusevVictor
Copy link
Author

Dear @creecros , I removed:

  1. Send email notification of impending subtask due date from my project
  2. Auto Email Extended Actions plugin
  3. SubtaskDueDate plugin

I restarted docker service:

vgusev@vgusev:/srv/kanboard$ docker compose restart
[+] Restarting 2/2
 ✔ Container kanboard-db-1        Started                                                                                                  0.9s 
 ✔ Container kanboard-kanboard-1  Started  

I setup:

  1. SubtaskDueDate plugin

Then restart docker.

Then I have setup:

  1. Auto Email Extended Actions plugin

Then restart docker.

After that I added "Send email notification of impending subtask due date" to my project again.
Then restart docker.

The cron job says twice:

Warning: Undefined array key "due_date" in /var/www/app/plugins/SendEmailCreator/Action/SubTaskEmailDue.php on line 78

Warning: Undefined array key "due_date" in /var/www/app/plugins/SendEmailCreator/Action/SubTaskEmailDue.php on line 78

Please help. I'm very like your plugins.

Best regards!

@creecros
Copy link
Owner

creecros commented Oct 6, 2023

i see the issue. I'll send an update in a moment.

@creecros
Copy link
Owner

creecros commented Oct 6, 2023

try it now

creecros added a commit that referenced this issue Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants