Title: Doesn&#8217;t work with PHP 8
Last modified: March 1, 2022

---

# Doesn’t work with PHP 8

 *  Resolved [AUMW-Jay](https://wordpress.org/support/users/aumw-jay/)
 * (@aumw-jay)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/doesnt-work-with-php-8-3/)
 * I can confirm that this plugin can cause a crashed site. Host updated to php 
   8.0 this morning, making the site break. Checked the error logs and saw this 
   smoking gun:
 * [01-Mar-2022 18:18:25 UTC] PHP Fatal error: Uncaught TypeError: is_file(): Argument#
   1 ($filename) must be of type string, GdImage given in /home1/ctdpedia/public_html/
   wp-content/plugins/auto-smart-thumbnails/inc/class-ast-face-detector.php:63
 * I rolled the site back to php 7.3, and the site came back immediately, and no
   new errors showed up. Because this plugin hasn’t been updated recently, I’d only
   use it with caution.

Viewing 1 replies (of 1 total)

 *  Plugin Author [longchaoliu](https://wordpress.org/support/users/longchaoliu/)
 * (@longchaoliu)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/doesnt-work-with-php-8-3/#post-15416842)
 * Thank you [@aumw-jay](https://wordpress.org/support/users/aumw-jay/) ! The debug
   info is of great help. I have fixed it. Here is more details about the problem.
   [https://php.watch/versions/8.0/gdimage](https://php.watch/versions/8.0/gdimage).

Viewing 1 replies (of 1 total)

The topic ‘Doesn’t work with PHP 8’ is closed to new replies.

 * ![](https://ps.w.org/auto-smart-thumbnails/assets/icon-256x256.jpg?rev=2219864)
 * [Auto Smart Thumbnails](https://wordpress.org/plugins/auto-smart-thumbnails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/auto-smart-thumbnails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/auto-smart-thumbnails/)
 * [Active Topics](https://wordpress.org/support/plugin/auto-smart-thumbnails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/auto-smart-thumbnails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/auto-smart-thumbnails/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [longchaoliu](https://wordpress.org/support/users/longchaoliu/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/doesnt-work-with-php-8-3/#post-15416842)
 * Status: resolved