Title: PHP7 Compatibility?
Last modified: January 26, 2017

---

# PHP7 Compatibility?

 *  Resolved [kranzoky](https://wordpress.org/support/users/kranzoky/)
 * (@kranzoky)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php7-compatibility-71/)
 * Since WordPress will start requiring PHP7 as the minimum this year, I was wondering
   when the plugin will be updated to support PHP7?
 * Below is what was found when a PHP7 compatibility check was performed:
 *  895 | WARNING | Method name “WordPressPopularPosts::__activate” is discouraged;
   PHP has reserved all method names with a double underscore prefix for future 
   use
    951 | WARNING | Method name “WordPressPopularPosts::__deactivate” is discouraged;
   PHP has reserved all method names with a double underscore prefix for future 
   use 983 | WARNING | Method name “WordPressPopularPosts::__upgrade” is discouraged;
   PHP has reserved all method names with a double underscore prefix for future 
   use 1048 | WARNING | Method name “WordPressPopularPosts::__do_db_tables” is discouraged;
   PHP has reserved all method names with a double underscore prefix for future 
   use 1095 | WARNING | Method name “WordPressPopularPosts::__check_requirements”
   is discouraged; PHP has reserved all method names with a double underscore prefix
   for future use 1404 | WARNING | Method name “WordPressPopularPosts::__flush_transients”
   is discouraged; PHP has reserved all method names with a double underscore prefix
   for future use 1425 | WARNING | Method name “WordPressPopularPosts::__update_views”
   is discouraged; PHP has reserved all method names with a double underscore prefix
   for future use 1783 | WARNING | Method name “WordPressPopularPosts::__get_popular_posts”
   is discouraged; PHP has reserved all method names with a double underscore prefix
   for future use 1901 | WARNING | Method name “WordPressPopularPosts::__render_popular_post”
   is discouraged; PHP has reserved all method names with a double underscore prefix
   for future use 1982 | WARNING | Method name “WordPressPopularPosts::__cache” 
   is discouraged; PHP has reserved all method names with a double underscore prefix
   for future use 2461 | WARNING | Method name “WordPressPopularPosts::__get_img”
   is discouraged; PHP has reserved all method names with a double underscore prefix
   for future use 2523 | WARNING | Method name “WordPressPopularPosts::__image_resize”
   is discouraged; PHP has reserved all method names with a double underscore prefix
   for future use 2555 | WARNING | Method name “WordPressPopularPosts::__get_image_file_paths”
   is discouraged; PHP has reserved all method names with a double underscore prefix
   for future use 2666 | WARNING | Method name “WordPressPopularPosts::__get_attachment_id”
   is discouraged; PHP has reserved all method names with a double underscore prefix
   for future use 2702 | WARNING | Method name “WordPressPopularPosts::__fetch_external_image”
   is discouraged; PHP has reserved all method names with a double underscore prefix
   for future use 2993 | WARNING | Method name “WordPressPopularPosts::__format_content”
   is discouraged; PHP has reserved all method names with a double underscore prefix
   for future use 3114 | WARNING | Method name “WordPressPopularPosts::__get_image_sizes”
   is discouraged; PHP has reserved all method names with a double underscore prefix
   for future use 3186 | WARNING | Method name “WordPressPopularPosts::__is_numeric”
   is discouraged; PHP has reserved all method names with a double underscore prefix
   for future use 3196 | WARNING | Method name “WordPressPopularPosts::__curdate”
   is discouraged; PHP has reserved all method names with a double underscore prefix
   for future use 3206 | WARNING | Method name “WordPressPopularPosts::__now” is
   discouraged; PHP has reserved all method names with a double underscore prefix
   for future use 3216 | WARNING | Method name “WordPressPopularPosts::__microtime_float”
   is discouraged; PHP has reserved all method names with a double underscore prefix
   for future use 3234 | WARNING | Method name “WordPressPopularPosts::__merge_array_r”
   is discouraged; PHP has reserved all method names with a double underscore prefix
   for future use 3257 | WARNING | Method name “WordPressPopularPosts::__is_bot”
   is discouraged; PHP has reserved all method names with a double underscore prefix
   for future use 3281 | WARNING | Method name “WordPressPopularPosts::__debug” 
   is discouraged; PHP has reserved all method names with a double underscore prefix
   for future use

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

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php7-compatibility-71/#post-8703445)
 * Hi there!
 * I’ve been a bit out of the loop due to work and life in general in the past few
   months so I hadn’t heard/read anything related to WP bumping minimun PHP version
   to 7.0. Did a quick search just now and found [this](https://www.google.co.ve/amp/s/wptavern.com/wordpress-to-bump-recommended-php-version-from-5-6-to-7-0-by-the-middle-of-2017/)
   which basically says that it’s the _recommended_ version that’s getting a bump
   by mid 2017. I guess that the minimum version will get a bump too but it won’t
   be PHP 7 for sure (that would break most WP sites out there!)
 * Worry not, my friend. Fortunately someone else posted about these warnings not
   too long ago and yesterday I created an [issue](https://github.com/cabrerahector/wordpress-popular-posts/issues/125)
   on Github so I don’t forget looking into it 🙂
 *  Thread Starter [kranzoky](https://wordpress.org/support/users/kranzoky/)
 * (@kranzoky)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php7-compatibility-71/#post-8703619)
 * Okay, great.
 * Thanks!
 *  [ispreview](https://wordpress.org/support/users/ispreview/)
 * (@ispreview)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php7-compatibility-71/#post-8705554)
 * Excellent news, good to know it will soon be PHP7 ready 🙂 .
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php7-compatibility-71/#post-8706640)
 * Since it was an easy fix I went ahead and renamed all conflicting methods already.
   I’ll push a new update (WPP 4.0) as soon as I can 🙂
 *  [davidleininger](https://wordpress.org/support/users/davidleininger/)
 * (@davidleininger)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/php7-compatibility-71/#post-8841122)
 * Any idea on when we can expect this update? I’m needing to migrate my site.
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/php7-compatibility-71/#post-8841188)
 * Honestly, no idea. Freelance, my day job and life in general have been keeping
   me really busy lately. I did update version 4 to [add support for PHP 7.x](https://github.com/cabrerahector/wordpress-popular-posts/commit/c863cca93daa1ca2b691fd3c0214b4c7dc7a4636),
   it’s just not ready for general use yet because there are a few existing features
   that haven’t been migrated to 4.0 / properly tested yet.
 *  Thread Starter [kranzoky](https://wordpress.org/support/users/kranzoky/)
 * (@kranzoky)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php7-compatibility-71/#post-8949060)
 * I am assuming the warnings are just recommended to be changed and these won’t
   break anything if I was to upgrade to PHP 7, correct?
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php7-compatibility-71/#post-8949100)
 * Correct, plugins/themes getting this warning message will still work fine under
   PHP7. The notice is there to tell us developer “hey, we’re doing this sometime
   in the future so you prepare for it.”
 * Of course it’s nicer to have code that doesn’t trigger any warning / error messages
   at all, which is why I implemented the requested change already 😀

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

The topic ‘PHP7 Compatibility?’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

## Tags

 * [double](https://wordpress.org/support/topic-tag/double/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [PHP7](https://wordpress.org/support/topic-tag/php7/)
 * [prefix](https://wordpress.org/support/topic-tag/prefix/)
 * [underscore](https://wordpress.org/support/topic-tag/underscore/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 8 replies
 * 4 participants
 * Last reply from: [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/php7-compatibility-71/#post-8949100)
 * Status: resolved