by Ken Task.
@Mina
Are you experiencing the same *exact* problem?
Do you have a clone of your server ... complete clone - CentOS 7 operating system and all - including your 4.0.x Moodle?
Here's why I ask ... have a sandbox 4.0.8+ (Build: 20230427) running under php 7.4 and can backup and restore my test courses, although they don't have quizzes.
In centOS 7 it's called libxml2 and in phpinfo of my sandbox moodle instance above:
Am using Remi's repo for PHP versions and could upgrade to 8.0 but I have other sandboxed Moodles ... like a 3.9.highest, which would no longer run as I understand it.
And, coming down the pike for you, while still a ways off ... CentOS 7 EOL.
CentOS 7 EOL - June 30, 2024
Sent you a PM ... please respond there!
'SoS', Ken