Errors: Please help with these numerous errors since updating WP

Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /wp-includes/functions.php on line 3622

Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in /wp-includes/functions.php on line 3457

Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in /wp-includes/functions.php on line 3457

Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in /wp-includes/functions.php on line 3457

Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in /wp-includes/functions.php on line 3457

Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in /wp-includes/functions.php on line 3457

Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in /wp-includes/functions.php on line 3457

Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in /wp-includes/functions.php on line 3457

Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in /wp-includes/functions.php on line 3457

Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in /wp-includes/functions.php on line 3457

Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in /wp-includes/functions.php on line 3457

Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in /wp-includes/functions.php on line 3457

Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in /wp-includes/functions.php on line 3457

Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in /wp-includes/functions.php on line 3457

Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in /wp-includes/functions.php on line 3457

Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in /wp-includes/functions.php on line 3457

Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in /wp-includes/functions.php on line 3457

Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in /wp-includes/functions.php on line 3457

Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in wp-includes/functions.php on line 3457

Notice: like_escape is deprecated since version 4.0! Use wpdb::esc_like() instead. in wp-includes/functions.php on line 3406

Notice: like_escape is deprecated since version 4.0! Use wpdb::esc_like() instead. in /wp-includes/functions.php on line 3406

Notice: like_escape is deprecated since version 4.0! Use wpdb::esc_like() instead. in /wp-includes/functions.php on line 3406

Notice: Undefined index: sa_topspace in /wp-content/plugins/sticky-menu-or-anything-on-scroll/sticky-menu-or-anything.php on line 89

Notice: Undefined index: sa_zindex in /wp-content/plugins/sticky-menu-or-anything-on-scroll/sticky-menu-or-anything.php on line 102

Notice: Undefined index: sa_element in /wp-content/plugins/sticky-menu-or-anything-on-scroll/sticky-menu-or-anything.php on line 107

Notice: Undefined index: sa_debugmode in /wp-content/plugins/sticky-menu-or-anything-on-scroll/sticky-menu-or-anything.php on line 113

  • Steve

    First off make sure all your plugins / themes are 100% updated as well as Wordpress.

    Then if you are still getting these debug errors you need to start deactivating plugins to find out the one with the conflict.

    I can see at first glance one of your plugins or theme is creating custom widgets with depreciated code. You have to use __construct() instead

    Also not sure if you are aware but if you turn debug off those errors will go away, until you can get it fixed. You should not have debug on unless you are in development, once it goes live you turn that off so you can address the issues locally or behind the scenes.
    https://codex.wordpress.org/WP_DEBUG

  • Tyler Postle

    Hey again BGF,

    Looks like @Steve already chimed in with some great advice here :slight_smile:

    Narrowing down which plugin is causing the errors is usually the first step and can be done by deactivating them all first to ensure it is a plugin, then reactivating them individually until the issue comes back.

    However, I can see by using support access that your Visual Composer plugin is out of date and the latest version adds WP4.3 compatibility. So I think updating that plugin should get rid of a lot of those notices you see.

    As for the last few those are related to your Sticky menu or anything plugin and you can report them to the developer here: https://wordpress.org/support/plugin/sticky-menu-or-anything-on-scroll

    They will be able to fix them up for a future version I'm sure and in the meantime you can leave wp_debug "false" as Steve explained.

    If you have any further questions just let us know!

    Cheers,
    Tyler

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.