Uploaded image for project: 'Moodle Community Sites'
  1. Moodle Community Sites
  2. MDLSITE-5362

Invalid token - token not found when attempting to update registration or unregister

XMLWordPrintable

      As reported by Riley Peng, on the Registration page of their site it states

      An error occurred during registration update (Invalid token - token not found)

      Your site has been registered but the registration date is unknown. Please update your registration using the 'Update registration' button or ensure that the 'Site registration' scheduled task is enabled so your registration is automatically updated.

      When attempting to unregister, the following error is displayed:

      An error occurred when the site tried to unregister from Moodle.net: Invalid token - token not found

      Site: http://sukhavati.ws/
      Moodle version: 3.4

      Riley reports:

      The first time we try to update the registration is: Feb 5, around 19:17 (Pacific Time). For today's unregister, it's Feb 8, around 19:10 (Pacific Time).

      We turned on debug, then do unregister, same error "An error occurred when the site tried to unregister from Moodle.net: Invalid token - token not found".

      There is no debug info print in the HTML page. But we get some debug on Schedule Task for registration.

      Execute scheduled task: Site registration (core\task\registration_cron_task)
      ... started 03:13:50. Current memory use 8.6MB.
      ... used 16 dbqueries
      ... used 0.81276202201843 seconds
      Scheduled task failed: Site registration (core\task\registration_cron_task),Invalid token - token not found
      Backtrace:

      • line 70 of /lib/classes/hub/api.php: call to core\hub\api::call_rest()
      • line 113 of /lib/classes/hub/api.php: call to core\hub\api::call()
      • line 307 of /lib/classes/hub/registration.php: call to core\hub\api::update_registration()
      • line 45 of /lib/classes/task/registration_cron_task.php: call to core\hub\registration::update_cron()
      • line 104 of /lib/cronlib.php: call to core\task\registration_cron_task->execute()
      • line 292 of /lib/cronlib.php: call to cron_run_inner_scheduled_task()
      • line 91 of /admin/tool/task/schedule_task.php: call to cron_run_single_task()

            marina Marina Glancy
            tsala Helen Foster
            Helen Foster Helen Foster
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.