Game
Maintained by
Vasilis Daloukas
The game activity module makes use of questions, quizzes and glossaries to create offer a variety of interactive games.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
I seem to get the following error when upgrading to Moodle 3.3+ and MariaDB 10.2, using plugin version 2017062002
mod_game
Error reading from database
More information about this error
×Debug info: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'rows,usedrows FROM mdl_game_cross' at line 1
SELECT id,rows,usedrows FROM mdl_game_cross
[array (
)]
Error code: dmlreadexception
×Stack trace:
line 486 of \lib\dml\moodle_database.php: dml_read_exception thrown
line 1175 of \lib\dml\mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 56 of \mod\game\db\upgrade.php: call to mysqli_native_moodle_database->get_records_sql()
line 1593 of \mod\game\db\upgrade.php: call to mpgame_db_copy_string_to_int()
line 738 of \lib\upgradelib.php: call to xmldb_game_upgrade()
line 444 of \lib\upgradelib.php: call to upgrade_plugins_modules()
line 1754 of \lib\upgradelib.php: call to upgrade_plugins()
line 699 of \admin\index.php: call to upgrade_noncore()
Debug info: ERROR: column "usedcols" is of type smallint but expression is of type character varying
LINE 1: UPDATE pcilms_game_cross SET usedcols=cols
^
HINT: You will need to rewrite or cast the expression.
UPDATE pcilms_game_cross SET usedcols=cols
[array (
)]
Error code: dmlwriteexception
Stack trace:
line 489 of /lib/dml/moodle_database.php: dml_write_exception thrown
line 242 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->query_end()
line 700 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
line 1569 of /mod/game/db/upgrade.php: call to pgsql_native_moodle_database->execute()
line 738 of /lib/upgradelib.php: call to xmldb_game_upgrade()
line 444 of /lib/upgradelib.php: call to upgrade_plugins_modules()
line 1754 of /lib/upgradelib.php: call to upgrade_plugins()
line 699 of /admin/index.php: call to upgrade_noncore()
If you like this module please consider donating at https://www.paypal.me/moodlegame to help me have more time to continue working on this project.
It's a project that is active for 10 years and is the number 10 on downloads according to https://moodle.org/plugins/stats.php?plugin_category=1.
This module is and will remain free, but your donation allows me to continue the development, and any amount is greatly appreciated.
I am dying for an update for Moodle 3.2. Is a new version in the making? Thanks