Code Monkey home page Code Monkey logo

moodle-mod_dynamo's People

Contributors

serco-ucl avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

deedey

moodle-mod_dynamo's Issues

missing thirdpartylibs.xml file.

When including an external library in your plugin, you must include a thirdpartylibs.xml file that includes the name, location and license of the library.
More information on this is here:
https://docs.moodle.org/dev/Plugin_files#thirdpartylibs.xml
And here:
https://docs.moodle.org/dev/Plugin_with_third_party_libraries

One of the other advantages of using this is that Moodle's codechecker automatically ignores any files included in the location specificed in the thirdpartylibs.xml file.

Please note - this is typically a blocker for approval in the plugins db.

Notices in mod/dynamo/view.php?id=18&groupid=0&usrid=0&tab=1

When adding a new module in empty Moodle 4.0 I get the notices:

( ! ) Notice: Trying to get property 'id' of non-object in /var/www/html/moodle40/mod/dynamo/lib.php on line 1084
Call Stack

Time Memory Function Location

1 0.0000 363816 {main}( ) .../view.php:0
2 0.1675 8222456 require_once( '/var/www/html/moodle40/mod/dynamo/student.php' ) .../view.php:169
3 0.1679 8222968 dynamo_get_body_table_teacher( ) .../student.php:148

( ! ) Notice: Trying to get property 'id' of non-object in /var/www/html/moodle40/mod/dynamo/lib.php on line 1098
Call Stack

Time Memory Function Location

1 0.0000 363816 {main}( ) .../view.php:0
2 0.1675 8222456 require_once( '/var/www/html/moodle40/mod/dynamo/student.php' ) .../view.php:169
3 0.1679 8222968 dynamo_get_body_table_teacher( ) .../student.php:148

image

Hardcoded?

Thanks for the plugin.
I'm a PT-PT translator.

Is this hardcoded to French?
imagem

Exception : Undefined constant "FEATURE_MOD_PURPOSE"

Bonjour,

Je suis l'administrateur d'une plateforme Moodle 3.11.14+

Je viens de mettre à jour notre serveur php de la version 7.3 à la version 8.0.28

Depuis cette mise à jour je reçois ce message d'erreur lorsque je souhaite accéder à un cours disposant d'une activité Dynamo
Exception : Undefined constant "FEATURE_MOD_PURPOSE"
Debug info:
Error code: generalexceptionmessage
Stack trace:
line 49 of /mod/dynamo/lib.php: Error thrown
line 8109 of /lib/moodlelib.php: call to dynamo_supports()
line 2037 of /lib/modinfolib.php: call to plugin_supports()
line 524 of /lib/modinfolib.php: call to cm_info->__construct()
line 417 of /lib/modinfolib.php: call to course_modinfo->__construct()
line 2380 of /lib/modinfolib.php: call to course_modinfo::instance()
line 63 of /lib/classes/content.php: call to get_fast_modinfo()
line 219 of /course/view.php: call to core\content::can_export_context()
Exception : Undefined constant "FEATURE_MOD_PURPOSE"
Debug info:
Error code: generalexceptionmessage
Stack trace:
line 49 of /mod/dynamo/lib.php: Error thrown
line 8109 of /lib/moodlelib.php: call to dynamo_supports()
line 2037 of /lib/modinfolib.php: call to plugin_supports()
line 524 of /lib/modinfolib.php: call to cm_info->__construct()
line 417 of /lib/modinfolib.php: call to course_modinfo->__construct()
line 2380 of /lib/modinfolib.php: call to course_modinfo::instance()
line 2054 of /lib/navigationlib.php: call to get_fast_modinfo()
line 2118 of /lib/navigationlib.php: call to global_navigation->generate_sections_and_activities()
line 502 of /course/format/lib.php: call to global_navigation->load_generic_course_sections()
line 234 of /course/format/tiles/lib.php: call to format_base->extend_course_navigation()
line 2033 of /lib/navigationlib.php: call to format_tiles->extend_course_navigation()
line 1398 of /lib/navigationlib.php: call to global_navigation->load_course_sections()
line 3510 of /lib/navigationlib.php: call to global_navigation->initialise()
line 3555 of /lib/navigationlib.php: call to navbar->has_items()
line 4590 of /lib/outputrenderers.php: call to navbar->get_items()
line 52 of /theme/boost_campus/layout/columns2.php: call to core_renderer->region_main_settings_menu()
line 1401 of /lib/outputrenderers.php: call to include()
line 1331 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 2867 of /lib/outputrenderers.php: call to core_renderer->header()
line 390 of /lib/setuplib.php: call to core_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()

Pourriez-vous m'aider à corriger ce problème.
Bien cordialement,

check if Moodle api fullname($user) should be used

I see a few places where you add user->firstname and user->lastname together manually. Usually you should be using moodle's fullname() api to do this as some sites will display name fields in different ways.

not a blocker for plugins db approval.

invalid install.xml file

The install.xml is no longer valid and was either created for an old version of Moodle or has been handwritten.

This needs to be fixed using the Moodle xmldb editor (under admin > development > XMLDB.)

Please hit the "load" link for your plugin install.xml file in the moodle xmldb editor, and then make Moodle think there is an update to the file (easiest way to do this is to change the description of a table - add a full stop or something similar.) Then get XMLDB to "Save" the updated file which will remove all the old invalid xml from your file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.