Title: Php 8 error
Last modified: February 9, 2021

---

# Php 8 error

 *  [funkyj4ever](https://wordpress.org/support/users/funkyj4ever/)
 * (@funkyj4ever)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/php-8-error-2/)
 * Hi,
    When i enable php 8 i get a error when uploading a svg file. ”
 * Image post-processing failed because the server was busy or does not have enough
   resources. Uploading a smaller image can help. Recommended maximum size is 2500
   pixels.
    ” When i switch back to php 7.4 it works again.
 * WordPress caught this error.
 * Foutdetails
    =========== Een fout van het type E_ERROR werd veroorzaakt op regelnummer
   249 van het bestand /www/fotobooth_592/public/wp-content/plugins/safe-svg/lib/
   vendor/enshrined/svg-sanitize/src/Sanitizer.php. Foutmelding: Uncaught Error:
   Call to undefined function enshrined\svgSanitize\libxml_disable_entity_loader()
   in /www/fotobooth_592/public/wp-content/plugins/safe-svg/lib/vendor/enshrined/
   svg-sanitize/src/Sanitizer.php:249 Stack trace: #0 /www/fotobooth_592/public/
   wp-content/plugins/safe-svg/lib/vendor/enshrined/svg-sanitize/src/Sanitizer.php(
   201): enshrined\svgSanitize\Sanitizer->setUpBefore() #1 /www/fotobooth_592/public/
   wp-content/plugins/safe-svg/safe-svg.php(142): enshrined\svgSanitize\Sanitizer-
   >sanitize(‘

The topic ‘Php 8 error’ is closed to new replies.

 * ![](https://ps.w.org/safe-svg/assets/icon.svg?rev=2779013)
 * [Safe SVG](https://wordpress.org/plugins/safe-svg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/safe-svg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/safe-svg/)
 * [Active Topics](https://wordpress.org/support/plugin/safe-svg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/safe-svg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/safe-svg/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [funkyj4ever](https://wordpress.org/support/users/funkyj4ever/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/php-8-error-2/)
 * Status: not resolved