Title: Parse error: syntax error after update
Last modified: November 10, 2022

---

# Parse error: syntax error after update

 *  Resolved [Zargarov](https://wordpress.org/support/users/zargarov/)
 * (@zargarov)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-after-update/)
 * Parse error: syntax error, unexpected ‘)’ in /home/www/wp-content/plugins/force-
   regenerate-thumbnails/class-forceregeneratethumbnails.php on line 240

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

 *  Plugin Author [Shane Bishop](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-after-update/#post-16187627)
 * You can just delete the trailing comma on line 240, but we’ll get a fix released
   ASAP. FYI, that syntax is no longer an error in PHP 7.3+, which is why I didn’t
   notice it during development.
 *  [tnchuntic](https://wordpress.org/support/users/tnchuntic/)
 * (@tnchuntic)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-after-update/#post-16187633)
 * Should this be backwards compatible with older versions… it seems like the plugin
   just updated its code with out backwards compatibility. 🙁 I have to deactivate
   the plugin on our 5 clients websites for now.. not sure yet if others are affected.
 * Kindly roll-out a fix please. Thanks.
 *  Plugin Author [Shane Bishop](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-after-update/#post-16187760)
 * The 2.1.0 release was intended to be compatible with PHP 7.2+ and WP 4.9+. Version
   2.1.1 has already been released with the fix.
 * Realistically, it will probably work with even older versions of WP and PHP, 
   but I don’t have any way of testing them. So if you find errors, certainly let
   me know!
 * During development for 2.1.0, it was specifically tested on PHP 7.4 and PHP 8.0,
   and WP versions 4.9 (via ClassicPress), 6.0, and 6.1.
    Now it’s also been tested
   on PHP 7.2 as well, just to make sure 🙂

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

The topic ‘Parse error: syntax error after update’ is closed to new replies.

 * ![](https://ps.w.org/force-regenerate-thumbnails/assets/icon-256x256.jpg?rev=
   2816275)
 * [Force Regenerate Thumbnails](https://wordpress.org/plugins/force-regenerate-thumbnails/)
 * [Support Threads](https://wordpress.org/support/plugin/force-regenerate-thumbnails/)
 * [Active Topics](https://wordpress.org/support/plugin/force-regenerate-thumbnails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/force-regenerate-thumbnails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/force-regenerate-thumbnails/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Shane Bishop](https://wordpress.org/support/users/nosilver4u/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-after-update/#post-16187760)
 * Status: resolved