Title: PHP7+ compatibility
Last modified: October 30, 2018

---

# PHP7+ compatibility

 *  Resolved [Sibbo100](https://wordpress.org/support/users/sibbo100/)
 * (@sibbo100)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/php7-compatibility-102/)
 * Hi Support,
 * Can you confirm if this plugin is fully compatible with PHP7+
 * Thank you
    Sibbo100

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

 *  Thread Starter [Sibbo100](https://wordpress.org/support/users/sibbo100/)
 * (@sibbo100)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/php7-compatibility-102/#post-10830737)
 * Also when seeing WP_Debug to true I get the following error:
 * Fatal error: Cannot unset $this in /home/stagefm/public_html/wp-content/plugins/
   wp2yt-uploader/classes/class.youtube-for-wordpress.php on line 32
 * Thanks
 *  Thread Starter [Sibbo100](https://wordpress.org/support/users/sibbo100/)
 * (@sibbo100)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php7-compatibility-102/#post-10934437)
 * Any one know if this plugin is PHP7.2 compatible, when I upgrade my version of
   PHP on the server using this plugin I get an HTTP 500 error and I know it is 
   this plugin and another that is causing the crash as I have WP_DEBUG on in my
   config.
 * Thank You
    Sibbo100
 *  Plugin Author [Evan Herman](https://wordpress.org/support/users/eherman24/)
 * (@eherman24)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php7-compatibility-102/#post-10934519)
 * Hi [@sibbo100](https://wordpress.org/support/users/sibbo100/),
 * I’m not entirely sure as I haven’t touched this plugin in some time. It’s possible
   YouTubes API has changed or something internally needs updating for PHP 7+.
 * Evan
 *  [Barry](https://wordpress.org/support/users/barry/)
 * (@barry)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/php7-compatibility-102/#post-11096614)
 * Hi [@eherman24](https://wordpress.org/support/users/eherman24/) ! There is a 
   fatal error in >= PHP 7.1 that is pretty simple to fix:
 * `Cannot unset $this in wp-content/plugins/wp2yt-uploader/classes/class.youtube-
   for-wordpress.php on line 32`
 * This is because of the “Do not call destructors on incomplete objects” change
   mentioned [here](http://php.net/manual/en/migration71.incompatible.php)
 * I think just removing the entire `__destruct` function should be fine in this
   case. Do you think you could commit a fix and release an update? Otherwise I 
   would be happy to do it if you grant me commit access.

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

The topic ‘PHP7+ compatibility’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp2yt-uploader_d8e1bb.svg)
 * [YouTube for WordPress](https://wordpress.org/plugins/wp2yt-uploader/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp2yt-uploader/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp2yt-uploader/)
 * [Active Topics](https://wordpress.org/support/plugin/wp2yt-uploader/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp2yt-uploader/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp2yt-uploader/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Barry](https://wordpress.org/support/users/barry/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/php7-compatibility-102/#post-11096614)
 * Status: resolved