Title: Getting a debug warning (added code from file in question)
Last modified: August 21, 2016

---

# Getting a debug warning (added code from file in question)

 *  Resolved [Sjourney](https://wordpress.org/support/users/sjourney/)
 * (@sjourney)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/getting-a-debug-warning-added-code-from-file-in-question/)
 * Running WP 3.7
    Collapse-o-matic v1.5.3
 * Black Box plugin (which shows debug info) is showing the Warning below on every
   page of the site. How do I remedy this?
 * **Redefining already defined constructor for class WP_Collapse_O_Matic on line
   _61_ in file /Applications/AMPPS/www/foo.org/live/wp-content/plugins/jquery-collapse-
   o-matic/collapse-o-matic.php**
 *     ```
       /**
       	 * PHP5 constructor
       	 */
       #61->	function __construct() {
       		// set option values
       		$this->_set_options();
   
       		// load text domain for translations
       		load_plugin_textdomain( 'colomat', FALSE, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
   
       		// set uninstall hook
       		/* removed in version 1.5.2
       		if ( function_exists( 'register_deactivation_hook' ) )
       			register_deactivation_hook( __FILE__, array( $this, 'deactivation' ));
       		*/
   
       		//load the script and style if not viwing the dashboard
       		if (!is_admin()){
       			add_action('init', array( $this, 'collapsTronicInit' ) );
       		}
   
       		// add actions
       		add_action( 'admin_menu', array( $this, 'admin_menu' ) );
       		add_action( 'plugin_action_links_' . plugin_basename(__FILE__), array( $this, 'plugin_actions' ) );
       		add_action( 'admin_init', array( $this, 'admin_init' ) );
       		add_action('wp_head', array( $this, 'colomat_js_vars' ) );
   
       		add_shortcode('expand', array($this, 'shortcode'));
   
       		//add expandsub shortcodes
       		for ($i=1; $i<30; $i++) {
       			add_shortcode('expandsub'.$i, array($this, 'shortcode'));
       		}
   
       		// Add shortcode support for widgets
       		add_filter('widget_text', 'do_shortcode');
       	}
       ```
   
 * [http://wordpress.org/plugins/jquery-collapse-o-matic/](http://wordpress.org/plugins/jquery-collapse-o-matic/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/getting-a-debug-warning-added-code-from-file-in-question/#post-4259322)
 * Yes, will be updated for php5 only in the next release.

Viewing 1 replies (of 1 total)

The topic ‘Getting a debug warning (added code from file in question)’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jquery-collapse-o-matic_fffeff.svg)
 * [Collapse-O-Matic](https://wordpress.org/plugins/jquery-collapse-o-matic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jquery-collapse-o-matic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jquery-collapse-o-matic/)
 * [Active Topics](https://wordpress.org/support/plugin/jquery-collapse-o-matic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jquery-collapse-o-matic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jquery-collapse-o-matic/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Baden](https://wordpress.org/support/users/baden03/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/getting-a-debug-warning-added-code-from-file-in-question/#post-4259322)
 * Status: resolved