Title: PHP Notices
Last modified: April 4, 2018

---

# PHP Notices

 *  [model13](https://wordpress.org/support/users/model13/)
 * (@model13)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/php-notices-85/)
 * Hi, I’m submitting this separately from PHP 7 information, FWIW.
 * PHP Deprecated: Methods with the same name as their class will not be constructors
   in a future version of PHP; WPAC_Nav_Menu_Widget has a deprecated constructor
   in [path redacted]/wp-content/plugins/wordpress-access-control/default-widgets.
   php on line 25
 * PHP Notice: The called constructor method for WP_Widget in WPAC_Nav_Menu_Widget
   is **deprecated** since version 4.3.0! Use
 *     ```
       __construct()
       ```
   
 *  instead. in [path redacted]/wp-includes/functions.php on line 3902

Viewing 1 replies (of 1 total)

 *  [dalea](https://wordpress.org/support/users/dalea/)
 * (@dalea)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-notices-85/#post-10242156)
 * We are having the same issues.
 * This plugin uses PHP4 coding standards for widgets. I have made changes to the
   plugin as per your error message above.
 * Within “default-widgets.php” lines 25 – 30 should be changed as follows:
 * function **__construct**()
    { $widget_ops = array( ‘description’ => __(‘Use this
   widget to add one of your custom menus as a widget.’) ); parent::**__construct**(‘
   nav_menu’, __(‘Custom Menu’), $widget_ops );
 * Of course with all changes run this under a development environment first to 
   ensure that it resolves your issue before moving to live

Viewing 1 replies (of 1 total)

The topic ‘PHP Notices’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-access-control.svg)
 * [WordPress Access Control](https://wordpress.org/plugins/wordpress-access-control/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-access-control/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-access-control/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-access-control/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-access-control/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-access-control/reviews/)

## Tags

 * [php-7](https://wordpress.org/support/topic-tag/php-7/)

 * 1 reply
 * 2 participants
 * Last reply from: [dalea](https://wordpress.org/support/users/dalea/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/php-notices-85/#post-10242156)
 * Status: not a support question