Bonjour,
Je viens de faire la mise à jour de Nextcloud Version 29.0.4~ynh2 vers 29.0.5~ynh1, et il y a un avertissement :
Mais utiliser la commande
occ maintenance:repair --include-expensive
ne change rien.
Après une recherche sur internet, j’ai fini par trouver la solution ici :
Fix mimetype server version check in backport
Il faut modifier le fichier “RepairMimeTypes.php” dans le dossier Nextcloud (cd /var/www/nextcloud/lib/private/Repair)
nano RepairMimeTypes.php
Trouver la ligne et remplacer “30.0.0.0”
“if (version_compare($mimeTypeVersion, ‘30.0.0.0’, ‘<’) && $this->introduceExcalidrawType()) {”
Remplacer par “29.0.5.0”
“if (version_compare($mimeTypeVersion, ‘29.0.5.0’, ‘<’) && $this->introduceExcalidrawType()) {”
J’ai relancé le service Nextcloud :
systemctl restart php8.2-fpm.service
Chez-moi, cela a résolu le problème
Good morning,
I just updated Nextcloud Version 29.0.4~ynh2 to 29.0.5~ynh1, and there is a warning:
But using the
occ maintenance:repair --include-expensive
command doesn’t change anything.
After searching the internet, I ended up finding the solution here:
Fix mimetype server version check in backport
You must modify the “RepairMimeTypes.php” file in the Nextcloud folder (cd /var/www/nextcloud/lib/private/Repair)
nano RepairMimeTypes.php
Find the line and replace “30.0.0.0”
“if (version_compare($mimeTypeVersion, ‘30.0.0.0’, ‘<’) && $this->introduceExcalidrawType()) {”
Replace with “29.0.5.0”
“if (version_compare($mimeTypeVersion, ‘29.0.5.0’, ‘<’) && $this->introduceExcalidrawType()) {”
I restarted the Nextcloud service:
systemctl restart php8.2-fpm.service
For me, this solved the problem.