Title: WP Sentry Deprecated function defined called class __construct
Last modified: November 8, 2020

---

# WP Sentry Deprecated function defined called class __construct

 *  Resolved [w4cdev](https://wordpress.org/support/users/w4cdev/)
 * (@w4cdev)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wp-sentry-deprecated-function-defined-called-class-__construct/)
 * Error after installation
 * Deprecated: The called constructor method for WP_Widget in Sentry_Widget_Recent_Comments
   is **deprecated** since version 4.3.0! Use `__construct()` instead. in /home/
   agestabc/public_html/unitionorg/wp-includes/functions.php on line 4870
 * Identical solution for another plugins referredand reported with the [https://stackoverflow.com/questions/6127559/wordpress-plugin-call-to-undefined-function-wp-get-current-user](https://stackoverflow.com/questions/6127559/wordpress-plugin-call-to-undefined-function-wp-get-current-user)
   but we did not find a predefined construct in /wp-sentry/sentry-widgets.php
 * But in the above snippets we did not find the class defining the widget constructor,
   instead having following class
    `if (class_exists(‘WP_Widget’)) { class Sentry_Widget_Pages
   extends WP_Widget { function Sentry_Widget_Pages() { $widget_ops = array(‘classname’
   => ‘widget_pages’, ‘description’ => __( ‘Your blog’s WordPress Pages’) ); $this-
   >WP_Widget(‘pages’, __(‘Pages’), $widget_ops); } Noticed that the class constructor
   is defined in the code
 * Kind regards
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwp-sentry-deprecated-function-defined-called-class-__construct%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [stayallive](https://wordpress.org/support/users/stayallive/)
 * (@stayallive)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wp-sentry-deprecated-function-defined-called-class-__construct/#post-13635952)
 * Hi there, please report this on the correct plugin: [https://wordpress.org/plugins/wp-sentry/](https://wordpress.org/plugins/wp-sentry/).
 * This plugins is the `wp-sentry-integration`, sorry about the confusion!
 *  Thread Starter [w4cdev](https://wordpress.org/support/users/w4cdev/)
 * (@w4cdev)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/wp-sentry-deprecated-function-defined-called-class-__construct/#post-13637083)
 * We have reposted the same as described above.
 * But what difference is both of the topic in the forum. Where it is referred that
   this is wp sentry integration but in the page header title it is shown after 
   the posting referred to Support » Plugin: WordPress Sentry
 * So what is kind of difference in both of the element
    WP-Sentry WordPress Sentry
    -  This reply was modified 5 years, 6 months ago by [w4cdev](https://wordpress.org/support/users/w4cdev/).
      Reason: Reposted at https://wordpress.org/support/topic/wp-sentry-deprecated-
      function-defined-called-class-__construct-2/
 *  Plugin Author [stayallive](https://wordpress.org/support/users/stayallive/)
 * (@stayallive)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/wp-sentry-deprecated-function-defined-called-class-__construct/#post-13637667)
 * > WP Sentry: This is a simple plugin to allow for access-restricted posting, 
   allowing bloggers to discuss sensitive subjects without Google or the world finding
   the post.
 * > WordPress Sentry: This plugin can report PHP errors (optionally) and JavaScript
   errors (optionally) to Sentry and integrates with its release tracking.
 * That is the difference, unfortunately the names are very similar but we are in
   fact really different plugins doing really different things 🙂
 * Fromt he error message I can see this path: `... predefined construct in /wp-
   sentry/sentry-widgets.php`.
 * Our plugin folder is called `wp-sentry-integration` and the other plugin has 
   a folder called `wp-sentry` and that is how I know this error is not from this
   plugin and you might not even have this plugin installed.
 * So again sorry for the confusion and the similar naming.
 *  Thread Starter [w4cdev](https://wordpress.org/support/users/w4cdev/)
 * (@w4cdev)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/wp-sentry-deprecated-function-defined-called-class-__construct/#post-13669655)
 * Thanks for that confusion been clarified.
 * As reported the posts been reported lets see whats the reply.

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

The topic ‘WP Sentry Deprecated function defined called class __construct’ is closed
to new replies.

 * ![](https://ps.w.org/wp-sentry-integration/assets/icon-256x256.jpg?rev=1772463)
 * [Sentry for WordPress](https://wordpress.org/plugins/wp-sentry-integration/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-sentry-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-sentry-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-sentry-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-sentry-integration/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [w4cdev](https://wordpress.org/support/users/w4cdev/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/wp-sentry-deprecated-function-defined-called-class-__construct/#post-13669655)
 * Status: resolved