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

Error : PHP Warning #18

Closed
kwetnico opened this issue Feb 25, 2021 · 13 comments
Closed

Error : PHP Warning #18

kwetnico opened this issue Feb 25, 2021 · 13 comments

Comments

@kwetnico
Copy link

Hello,

I user SendEmailCreator's plugin with the last version to Kanboard, but i have this error (file : /tmp/kanboard-cli.log) :
"
PHP Warning: A non-numeric value encountered in /var/www/html/kanboard/plugins/SendEmailCreator/Action/TaskEmailDue.php on line 110
"

My Crontab :
00 07 * * 1-5 cd /var/www/html/kanboard && ./cli cronjob >>/tmp/kanboard-cli.log 2>&0

Thanks

@creecros
Copy link
Owner

and to be clear, is $verbose set to true or false?

$verbose = false;

@kwetnico
Copy link
Author

and to be clear, is $verbose set to true or false?

$verbose = false;

I don't have this option line 108 but i see my version is 1.2.1.
Go to update the plugin..

@kwetnico
Copy link
Author

and to be clear, is $verbose set to true or false?

$verbose = false;

With the last version to plugin :

"PHP Warning: A non-numeric value encountered in /var/www/html/kanboard/plugins/SendEmailCreator/Action/TaskEmailDue.php on line 120"

$verbose set to false

@creecros
Copy link
Owner

well, that changes things. duration is the only parameter on line 120. It must be a number. what is your duration set to? did you leave it empty?

@kwetnico
Copy link
Author

well, that changes things. duration is the only parameter on line 120. It must be a number. what is your duration set to? did you leave it empty?

line 120 :
"
$max_duration = $this->getParam('duration') * 86400;
"

@creecros
Copy link
Owner

creecros commented Feb 25, 2021

yes, I know the code,, your missing the point. when you set up your action, what did YOU set the duration to? did you leave the field blank?

image

@kwetnico
Copy link
Author

yes, I know the code,, your missing the point. when you set up your action, what did YOU set the duration to? did you leave the field blank?

Where change the duration ?

@creecros
Copy link
Owner

creecros commented Feb 25, 2021

image

image

It cannot be blank, like above

@kwetnico
Copy link
Author

kwetnico commented Feb 25, 2021

image

image

It cannot be blank, like above

yes my configuration :
Nom de l'évènement = Tâche planifiée quotidienne pour les tâches
Sujet de l'email = Taches en retard
Durée en jours = 1
Send_to = assignee

@kwetnico
Copy link
Author

2021-02-25_152941

creecros added a commit that referenced this issue Feb 25, 2021
@creecros
Copy link
Owner

try now, and if that doesn't fix it, i have 1 more idea

@kwetnico
Copy link
Author

try now, and if that doesn't fix it, i have 1 more idea

Yes ! it's good !! ;)

@creecros
Copy link
Owner

creecros commented Feb 25, 2021

cool. FYI, that means there is an action somewhere with a missing value for duration, might want to check all your projects, any other scenario and that solve would not have fixed it. I have it set to default to 0 if thats the case.

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

2 participants