Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-17868

Upgrade fails on some platforms becuase of fractional version numbers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 1.9.4
    • 1.9.3
    • Database SQL/XMLDB
    • None
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE

      See http://moodle.org/mod/forum/discuss.php?d=113752

      The issue seems to be

      (mysql): UPDATE mdl_config SET value = '2.0071E+9' WHERE name = 'version'

      Note that the version number has been rounded (value = '2.0071E+9') so the upgrade continues from the wrong place.

      http://www.php.net/manual/en/language.types.float.php seems to say that PHP floats always use 15 decimal digits of precision internally, so my diagnosis is that the error occurs when the float is converted to a string somewhere in set_config before it is stored in the DB.

            skodak Petr Skoda
            timhunt Tim Hunt
            Andrew Davis Andrew Davis
            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.