vfremaux / moodle-block_dashboard

Moodle dashboard element block
3 stars 5 forks source link

undefined function: file_save_draft_area_files() #4

Open flocko-motion opened 3 years ago

flocko-motion commented 3 years ago

I get this error with a fresh install of block_dashboard and vflib on moodle 3.10

Searching the source code i couldn't find any occurence of this function name except in block_dashboard:117 where it's unsuccessfully called:

 // Move embedded files into a proper filearea and adjust HTML links to match
$config->description = file_save_draft_area_files(@$data->description['itemid'], $this->context->id, 'block_dashboard', 'description', 0, array('subdirs'=>true), @$data->description['text']);
flocko-motion commented 3 years ago

Adding require_once($CFG->dirroot.'/lib/filelib.php'); to the top of the file helped in my case ..

iqbaljaiz commented 3 years ago

May I ask, how did you install this plugin to moodle 3.10? Because I can't event install the dependencies vflib. Did you modify the source code manually?

I would love to use this plugin for my moodle site which is using version 3.10

vfremaux commented 3 years ago

No we are not working with 3.10 yet, try to get explicit error messages or readable issue description to help to get through