Title: PHP 8 Fix
Last modified: October 25, 2023

---

# PHP 8 Fix

 *  [gohanman](https://wordpress.org/support/users/gohanman/)
 * (@gohanman)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/php-8-fix/)
 * The fix to make this work in PHP 8+ is to replace
 * function MediaTags
 * with
 * function __construct
 * in media_tags.php.
 * Not sure why I can’t reply to the existing topic about PHP 8 but leaving this
   here in case anyone else runs into the issue.

The topic ‘PHP 8 Fix’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/media-tags.svg)
 * [Media Tags](https://wordpress.org/plugins/media-tags/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-tags/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-tags/)
 * [Active Topics](https://wordpress.org/support/plugin/media-tags/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-tags/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-tags/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [gohanman](https://wordpress.org/support/users/gohanman/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/php-8-fix/)
 * Status: not a support question