User Lookup: Specified userid field not present in the workflow data
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start with admin/tool/trigger/classes/steps/lookups/user_lookup_step at the execute() call identified in the log, then trace how the workflow data and userid field are set by the trigger step. Reproduce the scheduled-task failure for a “user has logged in” workflow and inspect relevant tests. Done when the lookup supplies the user data needed by the following email action; the issue gives no test path or implementation details.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hi there, every time I try to use a User Lookup step in a trigger, I get the log below when running the scheduled task:
Execute scheduled task: Process workflows scheduled task. (tool_trigger\task\process_workflows)
... started 12:43:01. Current memory use 5.6MB.
Executing workflow: 1
Execute workflow step: 1, \tool_trigger\steps\lookups\user_lookup_step
Debug info:
Specified userid field not present in the workflow data:
Backtrace:
* line 76 of /admin/tool/trigger/classes/helper/processor_helper.php: call to tool_trigger\steps\lookups\user_lookup_step->execute()
* line 199 of /admin/tool/trigger/classes/task/process_workflows.php: call to tool_trigger\task\process_workflows->execute_step()
* line 142 of /admin/tool/trigger/classes/task/process_workflows.php: call to tool_trigger\task\process_workflows->process_item()
* line 91 of /admin/tool/trigger/classes/task/process_workflows.php: call to tool_trigger\task\process_workflows->process_queue()
* line 253 of /lib/cronlib.php: call to tool_trigger\task\process_workflows->execute()
* line 120 of /lib/cronlib.php: call to cron_run_inner_scheduled_task()
* line 73 of /lib/cronlib.php: call to cron_run_scheduled_tasks()
* line 81 of /admin/cron.php: call to cron_run()
... used 13 dbqueries
... used 0.010113954544067 seconds
Scheduled task complete: Process workflows scheduled task. (tool_trigger\task\process_workflows)
A simple scenario would be to send an email with the user's firstname/lastname/username when the "user has logged in".
I have the same issue on Moodle 3.9 and 3.10. The email action which is below the Lookup step is not executed.
Would you know where the issue comes from?
Thank you
- Lingua principale
- PHP
- Stelle
- 46
- Fork
- 29
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di catalyst/moodle-tool_trigger
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 15/100
catalyst/moodle-tool_trigger#253 ·
-
Difficoltà 3/5 Mezza giornata Idoneità per principianti 45/100
catalyst/moodle-tool_trigger#251 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
catalyst/moodle-tool_trigger#249 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
catalyst/moodle-tool_trigger#248 ·
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
catalyst/moodle-tool_trigger#243 ·
Tutte le issue di catalyst/moodle-tool_trigger
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
taskforcesh/bullmq#5238 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug] v-change-database-password reports success but doesn't change the password when MySQL validate_password rejects itForse già presa @bfs2021 l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Automattic/jetpack#55517 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
-
area/import type/enhancement when/later
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
I maintainer di solito rispondono entro 1 giorno