• This is a great plugin, but it has errors lurking in its code that are not obvious to the typical WordPress installation.

    As a developer, I run my development system in Debug mode and on activation, this plugin reports multiple errors and is so bad, it cannot run in Debug mode. None of these problems appear when Debug mode is turned off, but in my opinion, that is no reason to have so many coding errors.

    Firstly, the constructor method WP_Widget was deprecated in version 4.3.0, but this plugin is still calling $this->WP_Widget() instead of parent::__constructor().

    Secondly, plugin is using deprecated functions: get_settings (deprecated since version 2.1), attribute_escape (deprecated since 2.8) and wp_specialchars (deprecated since 2.8). There maybe more.

    Thirdly, non-static method collapsCat::init_textdomain() is being called statically, along with numerous other collapsCat methods.

    A cleaner way to set the URL’s for the expand.gif and collapse.gif images is to use plugins_url( ‘img/expand.gif’, __FILE__ ) for example.

    Variables and arrays are not initialised with default values, resulting in numerous undefined variable and undefined index errors.

    At least one global variable $url is initialised in collapscat.php, but never used for anything and a local version of $url is also initialised in collapsCat(), but not used. The declaration ‘global $collapsCatVersion’ on line 32 in collapscat.php is not necessary – variables declared outside functions are global.

    I suggest the plugin developer activate Debug mode and address the errors in this plugin’s code.

    drtonyb

    https://www.ads-software.com/plugins/collapsing-categories/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Need to confirm this…

    After updating… needed to disable the plugin… going to check out again with earlier version.

    Kind regards.

    Removed and reinstalled… still the same… any quick solution?

    Notice: get_settings is deprecated since version 2.1! Use get_option() instead. in /wp-includes/functions.php on line 3406

    Thread Starter drtonyb

    (@drtonyb)

    Only a few problems have been fixed in version 2.0.7. Most of the problems still exist and therefore, I won’t be upgrading to this version.

    drtonyb

    klaconcepts

    (@klaconcepts)

    @drtonyb or @webagent05 Did either of you come up with a fix or an alternate version? The plugin is completing breaking the site. I went back to previous versions and still no luck. I had done a lot of customization to the css to get this the way a client needed and I can’t find something else that has the same features. Any luck?

    Thread Starter drtonyb

    (@drtonyb)

    @klaconcepts The problems that still exist in this plugin that I am referring to are only evident when WordPress is in DEBUG mode. A live site should not be running in DEBUG mode and would not report the errors. How is the plugin breaking your site?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Severly broken in debug mode – not truely compatible with 4.3’ is closed to new replies.