Title: Error: Missing PHP extension: xml
Last modified: November 29, 2023

---

# Error: Missing PHP extension: xml

 *  [rmmcclay](https://wordpress.org/support/users/rmmcclay/)
 * (@rmmcclay)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-missing-php-extension-xml/)
 * Hi — After updating to PHP 8.1 we see this error:
 * The plugin: Notification cannot be activated.
   – Missing PHP extension: xml
 * However the xml extension is installed correctly and we can activate the plugin,
   but the error remains and the plugin no longer works.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Kuba Mikita](https://wordpress.org/support/users/kubitomakita/)
 * (@kubitomakita)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-missing-php-extension-xml/#post-17253286)
 * Hi, yeah, the plugin even if activated won’t boot when the requirements hasn’t
   been met.
 * How do you know the XML extension is active? Can you see that in the phpinfo?
 *  Thread Starter [rmmcclay](https://wordpress.org/support/users/rmmcclay/)
 * (@rmmcclay)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-missing-php-extension-xml/#post-17258944)
 *     ```wp-block-code
       Hi Kuba -- Running the server on AWS / EC2 Instance of Linux, php -m outputs this: 
   
       107 bash [root - Tokyo:/]-> php -m
       [PHP Modules]
       bz2
       calendar
       Core
       ctype
       curl
       date
       dom
       exif
       fileinfo
       filter
       ftp
       gd
       gettext
       hash
       iconv
       json
       libxml
       mbstring
       mysqli
       mysqlnd
       openssl
       pcntl
       pcre
       PDO
       pdo_mysql
       pdo_sqlite
       Phar
       readline
       Reflection
       session
       SimpleXML
       sockets
       SPL
       sqlite3
       standard
       tokenizer
       xml
       xmlreader
       xmlwriter
       xsl
       Zend OPcache
       zip
       zlib
       ```
   
 * Anything else I might need to install? The **php -m command** is a quick and 
   simple way to list all installed PHP extensions on a Linux machine. This method
   also proves useful when we need to check which PHP extensions are currently loaded.
   Here, -m represents the modules and it directs PHP to list all enabled PHP extensions
   or modules.
   109 bash [root – Tokyo:/]-> php -vPHP 8.1.23 (cli) (built: Sep 15
   2023 21:56:29) (NTS)
    -  This reply was modified 2 years, 6 months ago by [rmmcclay](https://wordpress.org/support/users/rmmcclay/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error: Missing PHP extension: xml’ is closed to new replies.

 * ![](https://ps.w.org/notification/assets/icon-256x256.gif?rev=3476901)
 * [Notification - Custom Notifications and Alerts for WordPress](https://wordpress.org/plugins/notification/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/notification/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/notification/)
 * [Active Topics](https://wordpress.org/support/plugin/notification/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/notification/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/notification/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [rmmcclay](https://wordpress.org/support/users/rmmcclay/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/error-missing-php-extension-xml/#post-17258944)
 * Status: not resolved