User Lookup: Specified userid field not present in the workflow data

Aperta
#139 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
php
Ambito
backend

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

bug

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di catalyst/moodle-tool_trigger

Tutte le issue di catalyst/moodle-tool_trigger

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.