juacas / moodle-mod_treasurehunt

Activity module for Moodle that allows to run outdoor treasure-chases with geolocation and QR codes
GNU General Public License v3.0
6 stars 9 forks source link

Exception while storing riddle attempt. #11

Closed juacas closed 7 years ago

juacas commented 8 years ago

Field 'accum_time' doesn't have a default value↵INSERT INTO mdl_scavengerhunt_attempts (road_id, riddle_id, timecreated, group_id, user_id, success, locations) VALUES ((?),(?),(?),(?),(?),(?),ST_GeomFromText((?)))↵[array (↵ 0 => '1',↵ 1 => '1',↵ 2 => 1460477723,↵ 3 => 0,↵ 4 => '13',↵ 5 => 1,↵ 6 => 'POINT(-4.7056889533997 41.662003934037)',↵)] ↵Error code: dmlwriteexception" errorcode file "D:\desarrollo\apacheMoodle\moodle2\mod\scavengerhunt\externallib.php" Line 432

This happened in a local server upgraded by upgrade.php

huorwhisp commented 8 years ago

Solved