Usually this situation is caused by the php extension module not having simplexml installed.
yum install php73-php-simplexml //install simplexml
systemctl restart php73-php-fpm //restart php
If it is another version you can replace 73 accordingly
Then print phpinfo() and see the following module, then the problem is solved
Similar Posts:
- PHPundefined function simplexml_load_string()
- Call to undefined function socket_create()
- Can’t find PHP headers in /usr/include/php The php-devel package is required for use of this command.
- [Solved] Fatal error: Call to undefined function json_decode()
- Solve the problem of Telnet: connect to address 127.0.0.1: connection reused error message
- [Solved] pip Install Error: is not a supported wheel on this platform
- Ubuntu20.04 server Error: Failed to restart docker.service: Unit docker.service not found
- [Solved] PythonTypeError: ‘<' not supported between instances of 'str' and 'int'
- Pythonmodule ‘scipy.misc’ has no attribute ‘xxx’
- Pycharm introduces numpy error: ImportError: Importing the multiarray numpy extension module failed. Most likely you are trying to import a failed build of numpy.