learnweb / moodle-mod_ratingallocate

:pray: "Fair allocation" moodle activity
https://moodle.org/plugins/view/mod_ratingallocate
20 stars 29 forks source link

Syntax error when upgrading from v3.10-r1 #259

Closed rbavila closed 1 year ago

rbavila commented 1 year ago

Hello, I've had the following error when upgrading from v3.10-r1 (Moodle version = 3.10.11) to v4.2-r1 (Moodle version 3.11.14+):

Default exception handler: Exceção - syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ')' Debug: 
Error code: generalexceptionmessage
* line 672 of /mod/ratingallocate/locallib.php: ParseError thrown
* line 136 of /lib/classes/component.php: call to include_once()
* line ? of unknownfile: call to core_component::classloader()
* line ? of unknownfile: call to spl_autoload_call()
* line 347 of /lib/classes/task/manager.php: call to class_exists()
* line 70 of /lib/classes/task/manager.php: call to core\task\manager::scheduled_task_from_record()
* line 90 of /lib/classes/task/manager.php: call to core\task\manager::load_default_scheduled_tasks_for_component()
* line 898 of /lib/upgradelib.php: call to core\task\manager::reset_scheduled_tasks_for_component()
* line 576 of /lib/upgradelib.php: call to upgrade_plugins_modules()
* line 1929 of /lib/upgradelib.php: call to upgrade_plugins()
* line 202 of /admin/cli/upgrade.php: call to upgrade_noncore()

(My Moodle installation has pt_br as the default language, hence the word 'Exceção' at the first line.)

PhMemmel commented 1 year ago

See #257

rbavila commented 1 year ago

Oh, that makes sense. I'm running Debian oldstable on that server. I'm closing this ticket. Thanks for your help!