Title: PHP message: PHP Fatal error: Uncaught Error: Class &#8216;XMLWriter&#8217;
Last modified: July 16, 2018

---

# PHP message: PHP Fatal error: Uncaught Error: Class ‘XMLWriter’

 *  Resolved Anonymous User 16282999
 * (@anonymized-16282999)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/php-message-php-fatal-error-uncaught-error-class-xmlwriter/)
 * I recently updated WP Offload S3 Lite from version 1.3 to version 1.42 (I also
   disabled and removed the Amazon Web Services plugin) on my multisite sub directory
   network and now I can’t delete items in any media library on my network. Here’s
   the error produced from my Nginx log file.
 *     ```
       2018/07/16 12:28:18 [error] 1226#1226: *9233 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Class 'XMLWriter' not found in /var/www/wordpress/$
       Stack trace:
       #0 /var/www/wordpress/wp-content/plugins/amazon-s3-and-cloudfront/vendor/Aws3/Aws/Api/Serializer/RestXmlSerializer.php(27): DeliciousBrains\WP_Offload_S3\Aws3\Aws\Api\$
       #1 /var/www/wordpress/wp-content/plugins/amazon-s3-and-cloudfront/vendor/Aws3/Aws/Api/Serializer/RestSerializer.php(96): DeliciousBrains\WP_Offload_S3\Aws3\Aws\Api\Ser$
       #2 /var/www/wordpress/wp-content/plugins/amazon-s3-and-cloudfront/vendor/Aws3/Aws/Api/Serializer/RestSerializer.php(62): DeliciousBrains\WP_Offload_S3\Aws3\Aws\Api\Ser$
       ```
   

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

 *  Plugin Contributor [ianmjones](https://wordpress.org/support/users/ianmjones/)
 * (@ianmjones)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/php-message-php-fatal-error-uncaught-error-class-xmlwriter/#post-10500436)
 * Your PHP config is missing the XML libs that WP Offload S3 Lite needs, and WordPress
   pretty much requires these days as many plugins need it.
 *  Thread Starter Anonymous User 16282999
 * (@anonymized-16282999)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/php-message-php-fatal-error-uncaught-error-class-xmlwriter/#post-10501741)
 * Thanks for the help! I just installed the php module and everything works.
 *     ```
       sudo apt-get update 
       sudo apt-get install php7.0-xml
       ```
   
 * [https://www.digitalocean.com/community/questions/how-to-install-xmlwriter-php-modules](https://www.digitalocean.com/community/questions/how-to-install-xmlwriter-php-modules)

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

The topic ‘PHP message: PHP Fatal error: Uncaught Error: Class ‘XMLWriter’’ is closed
to new replies.

 * ![](https://ps.w.org/amazon-s3-and-cloudfront/assets/icon-256x256.jpg?rev=1809890)
 * [WP Offload Media Lite for Amazon S3, DigitalOcean Spaces, and Google Cloud Storage](https://wordpress.org/plugins/amazon-s3-and-cloudfront/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amazon-s3-and-cloudfront/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/)
 * [Active Topics](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/reviews/)

## Tags

 * [aws](https://wordpress.org/support/topic-tag/aws/)
 * [delete](https://wordpress.org/support/topic-tag/delete/)
 * [s3](https://wordpress.org/support/topic-tag/s3/)

 * 2 replies
 * 2 participants
 * Last reply from: Anonymous User 16282999
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/php-message-php-fatal-error-uncaught-error-class-xmlwriter/#post-10501741)
 * Status: resolved