vfremaux / moodle-block_vmoodle

Provides Moodle Virtualisation capabilities and Moodle array management
8 stars 3 forks source link

Fatal error when trying to edit virtual instance settings #3

Open pavelxkrejci opened 10 years ago

pavelxkrejci commented 10 years ago

Using latest patch ver. 2014071301 (2.6 branch) and Moodle 2.6.4.

After submitting new settings for a site I get this URI: /blocks/vmoodle/view.php?view=management&what=doedit&page=edit with: Fatal error: Class 'block_vmoodle\stdClass' not found in /var/www/moodle/blocks/vmoodle/classes/Host_Form.php on line 237

brunodouville commented 9 years ago

Hello Valery, I try to deploy a moodle for many schools and I have the same problem. I can't create a new virtual moodle. Moodle 2.6.10 and the same block vmoodle Can you help us ? Thank you. Académie de Rouen. Cordialement.

pavelxkrejci commented 9 years ago

Hello, I think you can fix this by editing classes/Host_Form.php around line 236 find $database = new stdClass; and add slash before stdClass so it looks like: $database = new \stdClass();

Note, that there quite a few other errors within this plugin.

brunodouville commented 9 years ago

YES. Thank you very much. I have now another bug ... PHP Fatal error: Class 'vmoodle_mnet_peer' not found in /var/www/applis/bref/html/moodle/blocks/vmoodle/controller.management.php on line 366 It's an adventure game ... Thanks a lot for your help.

brunodouville commented 9 years ago

Ok I change the name of the class Mnet_peer Thanks