Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-3856

Errors in geolocation check haulting cron

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.2, 2.3
    • 2.3.1
    • Block: Online user map
    • None
    • MOODLE_23_STABLE
    • MOODLE_22_STABLE, MOODLE_23_STABLE

      I found that in Moodle 2.3, with strict PHP, there were some errors that prevented the cron process from completing and finding the locations of users.

      I was able to fix this by modifying the code as follows...

      /block/online_users_map/lib.php, lines 73-77

      if (isset($xml->geoname->lat)){
          $boumc = new stdClass();
          $boumc->userid = $user->id;
          $boumc->lat = floatval($xml->geoname->lat);
          $boumc->lng = floatval($xml->geoname->lng);

            alexlittle Alex Little (Inactive)
            salvetore Michael de Raadt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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