universityofportland / moodle-assign_mahara Goto Github PK
View Code? Open in Web Editor NEWMoodle 2.3+ Mahara moodle assignment plugin
Moodle 2.3+ Mahara moodle assignment plugin
Periodic Moodle cron fails when there are Mahara assignments to process, tries to insert null into column submission:
!!! Error writing to database !!!
!! Column 'submission' cannot be null
INSERT INTO mdl_assign_mahara_submit_views (submission,assignment,portfolio,status) VALUES(?,?,?,?)
[array (
0 => NULL,
1 => '24',
2 => '1',
3 => 'selected',
)]
Error code: dmlwriteexception !!
!! Stack trace: * line 426 of /lib/dml/moodle_database.php: dml_write_exception thrown
* line 1089 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
* line 1131 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
* line 183 of /mod/assign/submission/mahara/locallib.php: call to mysqli_native_moodle_database->insert_record()
* line 701 of /mod/assign/submission/mahara/locallib.php: call to assign_submission_mahara->add_update_portfolio_record()
* line 303 of /local/mahara/optionalib.php: call to {closure}()
* line 702 of /mod/assign/submission/mahara/locallib.php: call to Either_Projection->each()
* line 78 of /local/mahara/optionalib.php: call to {closure}()
* line 703 of /mod/assign/submission/mahara/locallib.php: call to Model_Option->map()
* line 879 of /mod/assign/lib.php: call to assign_submission_mahara::cron()
* line 270 of /lib/cronlib.php: call to assign_cron()
* line 88 of /admin/cron.php: call to cron_run()
Hi there,
As I wrote here https://moodle.org/mod/forum/discuss.php?d=231356#p1031772 , it works fine to install and configure the plugin. However, whenever I go to submit a Mahara assignment, I get the following error message and it does not allow me to delete any other assignments. I am using Moodle 2.5+ (Build: 20130614) and Mahara 1.7.1
Error reading from database
More information about this error
Debug info: Table 'moodle.mdl_assignsubmission_mahara' doesn't exist
SELECT viewid, submission
FROM
mdl_assignsubmission_mahara
WHERE
viewid IN (11071,10856,8699)
[array (
)]
Error code: dmlreadexception
Stack trace:
line 423 of /lib/dml/moodle_database.php: dml_read_exception thrown
line 1005 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 165 of /mod/assign/submission/mahara/locallib.php: call to mysqli_native_moodle_database->get_records_sql()
line 5143 of /mod/assign/locallib.php: call to assign_submission_mahara->get_form_elements_for_user()
line 5225 of /mod/assign/locallib.php: call to assign->add_plugin_submission_elements()
line 48 of /mod/assign/submission_form.php: call to assign->add_submission_form_elements()
line 191 of /lib/formslib.php: call to mod_assign_submission_form->definition()
line 3040 of /mod/assign/locallib.php: call to moodleform->moodleform()
line 476 of /mod/assign/locallib.php: call to assign->view_edit_submission_page()
line 53 of /mod/assign/view.php: call to assign->view()
I'm running the latest version of your mahara submission mod and I'm getting the following error when I try to add resources to a moodle course. I have tested this on Moodle 2.5.2
I suspect the problem is caused here:
[file] => /var/www/moodle/mod/assign/submission/mahara/locallib.php
[line] => 303
Here is a bit more of the error message: http://pastebin.com/MW10A7bi
I'm unable to copy everything as it crashes my web browser as there is so much.
Hi,
As a teacher, when creating a Mahara assignment in Moodle 2.7, the following warning is displayed (with debugging turned on):
events_trigger() is deprecated, please use new events instead
line 283 of /lib/deprecatedlib.php: call to debugging()
line 308 of /mod/assign/submission/mahara/locallib.php: call to events_trigger()
line 1033 of /mod/assign/locallib.php: call to assign_submission_mahara->get_settings()
line 1051 of /mod/assign/locallib.php: call to assign->add_plugin_settings()
line 98 of /mod/assign/mod_form.php: call to assign->add_all_plugin_settings()
line 191 of /lib/formslib.php: call to mod_assign_mod_form->definition()
line 86 of /course/moodleform_mod.php: call to moodleform->moodleform()
line 254 of /course/modedit.php: call to moodleform_mod->moodleform_mod()
events_trigger() is deprecated, please use new events instead
line 283 of /lib/deprecatedlib.php: call to debugging()
line 336 of /mod/assign/submission/mahara/locallib.php: call to events_trigger()
line 790 of /mod/assign/locallib.php: call to assign_submission_mahara->save_settings()
line 962 of /mod/assign/locallib.php: call to assign->update_plugin_instance()
line 144 of /mod/assign/lib.php: call to assign->update_instance()
line 525 of /course/modlib.php: call to assign_update_instance()
line 266 of /course/modedit.php: call to update_moduleinfo()
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.