melanietreitinger / mod_bookit

Other
3 stars 2 forks source link

:bug: Installation error #53

Closed robertodamm closed 1 month ago

robertodamm commented 1 month ago

Describe the bug When installing mod_bookit this error is displayed:

Fehler: Class "mod_bookit\local\entity\category" not found

Weitere Informationen über diesen Fehler

Debug-Info: Error code: generalexceptionmessage×Diese Systemnachricht ablehnen Stack trace: line 34 of /mod/bookit/db/install.php: Error thrown line 891 of /lib/upgradelib.php: call to xmldb_bookit_install() line 651 of /lib/upgradelib.php: call to upgrade_plugins_modules() line 1937 of /lib/upgradelib.php: call to upgrade_plugins() line 719 of /admin/index.php: call to upgrade_noncore()

To Reproduce Steps to reproduce the behavior:

  1. Copy code to Moodle
  2. Start installer

Expected behavior This should not happen

Additional context Modify to fix: /mod/bookit/db/install.php

Line 25: use mod_bookit\local\entity\bookit_category;

Line 34: $category = new bookit_category('Rooms', 'Examrooms');

Line 44: $resource = new \mod_bookit\local\entity\bookit_resource('Exam room ' . $i, 'Capacity 255 seats', 1, $category->id);

Line 61: $event = new \mod_bookit\local\entity\bookit_event(

sberger commented 1 month ago

Is already corrected in the feature branch