Title: PHP errors in strict mode for custom-admin-bar
Last modified: August 21, 2016

---

# PHP errors in strict mode for custom-admin-bar

 *  Resolved [efc](https://wordpress.org/support/users/eceleste/)
 * (@eceleste)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/php-errors-in-strict-mode-for-custom-admin-bar/)
 * When I upgraded to WP 3.6.1 with WP_DEBUG true I got a number of errors thrown
   from the custom-admin-bar plugin. I found that by changing the first few lines
   of the Wdcab_AdminPages class. Please consider changing the first few lines to:
 *     ```
       function Wdcab_AdminPages () {
   
       }
   
       /**
        * Main entry point.
        *
        * @static
        */
       static function serve () {
       ```
   
 * Note, this makes the `serve()` function truly static and eliminates a redundant
   definition of `__construct()`.
 * [http://wordpress.org/plugins/custom-admin-bar/](http://wordpress.org/plugins/custom-admin-bar/)

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

 *  [Ari Stathopoulos](https://wordpress.org/support/users/aristath/)
 * (@aristath)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/php-errors-in-strict-mode-for-custom-admin-bar/#post-4179438)
 * Hello there [@eceleste](https://wordpress.org/support/users/eceleste/), I hope
   you’re well today!
 * What errors exactly were you getting?
 *  Thread Starter [efc](https://wordpress.org/support/users/eceleste/)
 * (@eceleste)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/php-errors-in-strict-mode-for-custom-admin-bar/#post-4179439)
 * Hi [@aristath](https://wordpress.org/support/users/aristath/), if you turn on
   WP_DEBUG you should see them too. One complained about the redundant definition
   of the constructor, the other about the static call to a non-static function.
 * Today I realize that you may have written this as it is to cover your PHP 4 and
   5 bases. If that is the case, then maybe we just have to live with the notifications
   under WP_DEBUG.
 *  [Mike](https://wordpress.org/support/users/michael-copestake/)
 * (@michael-copestake)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/php-errors-in-strict-mode-for-custom-admin-bar/#post-4179459)
 * If there are no errors when WP_DEBUG is disabled then this isn’t something to
   worry about, if the plugin still functions fine then I personally would just 
   ignore the errors.

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

The topic ‘PHP errors in strict mode for custom-admin-bar’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-admin-bar_d6d4d4.svg)
 * [Custom Admin Bar](https://wordpress.org/plugins/custom-admin-bar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-admin-bar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-admin-bar/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-admin-bar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-admin-bar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-admin-bar/reviews/)

## Tags

 * [Strict](https://wordpress.org/support/topic-tag/strict/)

 * 3 replies
 * 3 participants
 * Last reply from: [Mike](https://wordpress.org/support/users/michael-copestake/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/php-errors-in-strict-mode-for-custom-admin-bar/#post-4179459)
 * Status: resolved