• Resolved Turn On Social

    (@turn-on-social)


    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://www.ads-software.com/plugins/ajax-thumbnail-rebuild/

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

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

    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 8 years, 1 month ago by gravitylover.
    • This reply was modified 8 years, 1 month ago by gravitylover.
    • This reply was modified 8 years, 1 month ago by gravitylover.

    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,

    michael

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

    (@ristoniinemets)

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

    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.