aws-sdk-php: Class 'SimpleXMLElement' not found

Hi, My project is in EC2, upon delete any s3 file I am having this error. (1/1) FatalThrowableError Class 'SimpleXMLElement' not found

I have PHP 7.2 and XML and SimpleXML both installed in EC2. my local server does not throw this error while deleting from s3

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (3 by maintainers)

Most upvoted comments

I encountered this same issue and restarting php-fpm resolved it.

sudo systemctl restart php-fpm

dalisay is my hero

@dalisay You are awesome.

Hey @koushikSen, thanks for reaching out about this. Just to rule out simple environment misconfigurations, can you check the phpinfo() output on your EC2 instance to ensure that the XML and SimpleXML packages are installed and enabled? If you’ve checked that they are, we’ll need more information to troubleshoot this - a code sample would be ideal so we can try reproducing this behavior on our end.