Skip to content

Can't create Certifygen instance #116

@juacas

Description

@juacas

Code from develop branch. Clean installation of mod_certifygen.
Moodle 4.5
$plugin->version = 2025040401;

When defining Certifygen models I get a lot of errors about not found interfaces in mod_certifygen\interfaces namespace.
Patching the error with a explicit "require_once" the error raises everywhere.
Aparently only the interfaces are not found. Classes seem to be ok.

Any help with this, please?

Error code: generalexceptionmessage
* line 57 of /mod/certifygen/validation/cmd/classes/certifygenvalidation_cmd.php: Error thrown
* line 217 of /lib/classes/component.php: call to include_once()
* line 229 of /mod/certifygen/lib.php: call to core\component::classloader()
* line 206 of /mod/certifygen/classes/forms/modelform.php: call to mod_certifygen_get_validation()
* line 217 of /lib/formslib.php: call to mod_certifygen\forms\modelform->definition()
* line 73 of /lib/form/classes/dynamic_form.php: call to moodleform->__construct()
* line 71 of /lib/form/classes/external/dynamic_form.php: call to core_form\dynamic_form->__construct()
* line ? of unknownfile: call to core_form\external\dynamic_form::execute()
* line 253 of /lib/external/classes/external_api.php: call to call_user_func_array()
* line 83 of /lib/ajax/service.php: call to core_external\external_api::call_external_function()
Excepción - Interface "mod_certifygen\interfaces\ICertificateValidation" not found

[Más información sobre este error](http://docs.moodle.org/405/es/error/moodle/generalexceptionmessage)

Información de depuración:
Error code: generalexceptionmessage×Descartar esta notificación
Trazado de la pila (stack):
line 49 of /mod/certifygen/validation/none/classes/certifygenvalidation_none.php: Error thrown
line 217 of /lib/classes/component.php: call to include_once()
line 112 of /mod/certifygen/classes/tables/activityteacher_table.php: call to core\component::classloader()
line 165 of /mod/certifygen/classes/output/views/activity_view.php: call to mod_certifygen\tables\activityteacher_table->__construct()
line 125 of /mod/certifygen/classes/output/views/activity_view.php: call to mod_certifygen\output\views\activity_view->get_certificates_table()
line 72 of /mod/certifygen/classes/output/renderer.php: call to mod_certifygen\output\views\activity_view->export_for_template()
line 78 of /lib/classes/output/plugin_renderer_base.php: call to mod_certifygen\output\renderer->render_activity_view()
line 75 of /mod/certifygen/view.php: call to core\output\plugin_renderer_base->render()

Metadata

Metadata

Assignees

Labels

blockingbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions