Support » Plugin: AJAX Thumbnail Rebuild » Not PHP 7.0 compatible

  • Resolved Turn On Social


    AJAX Thumbnail Rebuild v1.12

    FILE: ajax-thumbnail-rebuild/ajax-thumbnail-rebuild.php
    92 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7

Viewing 9 replies - 1 through 9 (of 9 total)
  • Came here to report the same thing. Will be upgrading our servers to PHP7 soon.

    Marc Heatley


    Same here @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



    @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 );


    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()

    thanks for posting @gravitylover

    @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,


    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 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 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


    This plugin is now continuing the development. PHP 7 compatibility is added in version 1.2 quickfix.

    Michael Hartl


    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. 🙂

    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.