-
Bug
-
Resolution: Cannot Reproduce
-
Minor
-
None
-
4.3.6, 4.4
-
None
-
MOODLE_403_STABLE, MOODLE_404_STABLE
Hi,
I had a bug during upgrade from Moodle 4.2 to Moodle 4.4.
I have followed config-dist.php to set customfiletypes in my config.php. Here is my conf :
$CFG->customfiletypes = array(
(object)array(
'extension' => 'ipynb',
'icon' => 'archive',
'type' => 'application/x-ipynb+json',
'customdescription' => 'Jupyter Notebook'
),
(object)array(
'extension' => 'py',
'icon' => 'sourcecode',
'type' => 'text/plain',
'customdescription' => 'Text file'
),
);
And what's in config-dist.php as example :
// $CFG->customfiletypes = array(
// (object)array(
// 'extension' => 'frog',
// 'icon' => 'archive',
// 'type' => 'application/frog',
// 'customdescription' => 'Amphibian-related file archive'
// )
// );
But in lib/db/upgrade.php, some patches try to do :
$custom = json_decode($CFG->customfiletypes);
As $CFG->customfiletypes is not JSON, upgrade fails.
I did not find any references to customfiletypes as JSON.
Am I missing something ?
The solution for me was to comment this part of my config then uncomment it.
Thanks
Baptiste
- has a non-specific relationship to
-
MDL-78884 Remove sized files for MIME icons and update them with new SVG files
-
- Closed
-