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 creating task #7

Open
becto opened this issue Sep 17, 2017 · 3 comments
Open

error creating task #7

becto opened this issue Sep 17, 2017 · 3 comments

Comments

@becto
Copy link

becto commented Sep 17, 2017

Hi,

i installed the plugin, but there is something wrong with the cron parser -> i actually don't know, how to fix it -> running debian stretch / php7

PHP Notice: Undefined offset: 1 in /mnt/kanboard/plugins/Imap/cron.php on line 78 PHP Warning: Invalid argument supplied for foreach() in /mnt/kanboard/plugins/Imap/cron.php on line 83 PHP Fatal error: Uncaught InvalidArgumentException: Invalid arguments: Invalid params in /mnt/kanboard/plugins/Imap/vendor/fguillot/json-rpc/src/JsonRPC/Response/ResponseParser.php:133 Stack trace: #0 /mnt/kanboard/plugins/Imap/vendor/fguillot/json-rpc/src/JsonRPC/Response/ResponseParser.php(103): JsonRPC\Response\ResponseParser->handleExceptions() #1 /mnt/kanboard/plugins/Imap/vendor/fguillot/json-rpc/src/JsonRPC/Client.php(194): JsonRPC\Response\ResponseParser->parse() #2 /mnt/kanboard/plugins/Imap/vendor/fguillot/json-rpc/src/JsonRPC/Client.php(178): JsonRPC\Client->sendPayload('{"jsonrpc":"2.0...') #3 /mnt/kanboard/plugins/Imap/vendor/fguillot/json-rpc/src/JsonRPC/Client.php(126): JsonRPC\Client->execute('createTask', Array) #4 /mnt/kanboard/plugins/Imap/cron.php(132): JsonRPC\Client->__call('createTask', Array) #5 {main} thrown in /mnt/kanboard/plugins/Imap/vendor/fguillot/json-rpc/src/JsonRPC/Response/ResponseParser.php on line 133

Can you give a hint, whats wrong with the array?
Greetings Tobias

@EstebanMonge
Copy link
Owner

Hello, have you configured the parameters on Kanboard web GUI?

@becto
Copy link
Author

becto commented Sep 18, 2017

Hi,
thanks for supporting me ! -> yes i configured the parameters (except Mail body message, Task description message) -> i left them blank, because i don't know, what to configure.

i exeriment a little bit with the script and might found a problem here:

``
preg_match('TaskID#[(.*?)]', $message->getSubject(), $output);
$task_id = $output[1];

``

line 77,78 -> if i comment those lines , the script is not functional, but there a no error messages concerning the array $output[1]

regards tobias

@EstebanMonge
Copy link
Owner

I can't reproduce the error, it can be a bug, please give me time to check the script.

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