Title: Not PHP 7.0 compatible
Last modified: September 1, 2016

---

# Not PHP 7.0 compatible

 *  Resolved [Turn On Social](https://wordpress.org/support/users/turn-on-social/)
 * (@turn-on-social)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/not-php-70-compatible-1/)
 * AJAX Thumbnail Rebuild v1.12
 * FILE: ajax-thumbnail-rebuild/ajax-thumbnail-rebuild.php
    ——————————————————————————————————–
   FOUND 1 ERROR AFFECTING 1 LINE ——————————————————————————————————– 92 | ERROR
   | Deprecated PHP4 style constructor are not supported since PHP7 ——————————————————————————————————–
 * [https://wordpress.org/plugins/ajax-thumbnail-rebuild/](https://wordpress.org/plugins/ajax-thumbnail-rebuild/)

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

 *  [Curtis Belt](https://wordpress.org/support/users/curtisbelt/)
 * (@curtisbelt)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/not-php-70-compatible-1/#post-7601106)
 * Came here to report the same thing. Will be upgrading our servers to PHP7 soon.
 *  [Marc Heatley](https://wordpress.org/support/users/barkerbaggies/)
 * (@barkerbaggies)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/not-php-70-compatible-1/#post-8292057)
 * Same here [@curtisbelt](https://wordpress.org/support/users/curtisbelt/)
 * > Deprecated: Methods with the same name as their class will not be constructors
   > in a future version of PHP; AjaxThumbnailRebuild has a deprecated constructor
   > in /var/www/html/wp-content/plugins/ajax-thumbnail-rebuild/ajax-thumbnail-rebuild.
   > php on line 26
 *  [gravitylover](https://wordpress.org/support/users/gravitylover/)
 * (@gravitylover)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/not-php-70-compatible-1/#post-8293209)
 * [@junkcoder](https://wordpress.org/support/users/junkcoder/) This is a simple
   fix. It will also bring the plugin back into the plugin store in WordPress (as
   it’s not been updated in 2+ years)
 *     ```
       class AjaxThumbnailRebuild {
   
       	function AjaxThumbnailRebuild() {
       		add_action( 'admin_menu', array(&$this, 'addAdminMenu') );
       		add_filter( 'attachment_fields_to_edit', array(&$this, 'addRebuildSingle'), 10, 2 );
       	}
       ```
   
 * Becomes
 *     ```
       class AjaxThumbnailRebuild {
   
       	function __construct() {
       		add_action( 'admin_menu', array(&$this, 'addAdminMenu') );
       		add_filter( 'attachment_fields_to_edit', array(&$this, 'addRebuildSingle'), 10, 2 );
       	}
       ```
   
 * `function AjaxThumbnailRebuild()`
    > `function __construct()`
    -  This reply was modified 9 years, 7 months ago by [gravitylover](https://wordpress.org/support/users/gravitylover/).
    -  This reply was modified 9 years, 7 months ago by [gravitylover](https://wordpress.org/support/users/gravitylover/).
    -  This reply was modified 9 years, 7 months ago by [gravitylover](https://wordpress.org/support/users/gravitylover/).
 *  [plumski](https://wordpress.org/support/users/plumski/)
 * (@plumski)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/not-php-70-compatible-1/#post-8497205)
 * thanks for posting [@gravitylover](https://wordpress.org/support/users/gravitylover/)
 *  [Michael Voit](https://wordpress.org/support/users/michael_hartl/)
 * (@michael_hartl)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/not-php-70-compatible-1/#post-9247047)
 * [@gravitylover](https://wordpress.org/support/users/gravitylover/) Thank you 
   very much!
 * Is there a way to continue the development of an existing but abondend plugin–
   or does somebody has to fix this plugin and add it to the plugin respository 
   as a new one?
 * all the best,
 * michael
 *  [Josh Habdas](https://wordpress.org/support/users/jhabdas/)
 * (@jhabdas)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/not-php-70-compatible-1/#post-9281352)
 * **To continue development of unsupported/abandoned plugin**
 * Check the licensing and make sure everything’s legit, fork the code, apply new
   license, include existing license(s) as necessary, apply patch from [@gravitylover](https://wordpress.org/support/users/gravitylover/)
   and re-release as a new plugin. Steps may vary. Check the actual `LICENSE` or`
   COPYING` file for specific requirements. These _should_ be included in every 
   repository.
 * For God’s sake, if you release a plugin, be sure to either omit the version or
   include the `-or-later` clause to ensure future license compatibility if licensed
   under GPL. This will require reading the GNU website top to bottom. Be sure to
   also check the FAQ and compatibility matrix. This is a rite of passage.
 * Check [opensource.stackexchange.com](http://opensource.stackexchange.com) for
   open source licensing questions. Be absolutely sure if you release a new plugin
   you’re **ready to assume responsibility** of supporting it or an angry mob will
   come after you with pitchforks and molotov cocktails in hand and no holds barred.
 * There may be other ways to do this, such as a transfer of ownership. In that 
   case you’ll want to check with the plugin author first, or, if they cannot be
   reached, contact the WP plugin team via email or Slack for next steps.
 *  Plugin Author [Risto Niinemets](https://wordpress.org/support/users/ristoniinemets/)
 * (@ristoniinemets)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/not-php-70-compatible-1/#post-9530376)
 * This plugin is now continuing the development. PHP 7 compatibility is added in
   version 1.2 quickfix.
 *  [Michael Voit](https://wordpress.org/support/users/michael_hartl/)
 * (@michael_hartl)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/not-php-70-compatible-1/#post-9530469)
 * GREAT, thank you Risto!
 * Josh, thanks to you, also. Was to much for me to go through weeks ago. We will
   see in the future, if I can help somehow. 🙂
 *  [Josh Habdas](https://wordpress.org/support/users/jhabdas/)
 * (@jhabdas)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/not-php-70-compatible-1/#post-9570284)
 * No problem. Thanks to both of you. This is being used with Septera, so I wanted
   to ensure it was keeping up to date. Septera is AMAZEBALLS. And so are you guys.
   Cheers.

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

The topic ‘Not PHP 7.0 compatible’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ajax-thumbnail-rebuild.svg)
 * [AJAX Thumbnail Rebuild](https://wordpress.org/plugins/ajax-thumbnail-rebuild/)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-thumbnail-rebuild/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-thumbnail-rebuild/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-thumbnail-rebuild/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-thumbnail-rebuild/reviews/)

## Tags

 * [forking](https://wordpress.org/support/topic-tag/forking/)
 * [licensing](https://wordpress.org/support/topic-tag/licensing/)

 * 9 replies
 * 8 participants
 * Last reply from: [Josh Habdas](https://wordpress.org/support/users/jhabdas/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/not-php-70-compatible-1/#post-9570284)
 * Status: resolved