[Custom Admin Bar] Custom Admin Bar Deprecated Function Errors

Another legacy product here, but I need help eliminating the Admin Bar related errors we are getting in our server logs:

[22-Apr-2019 18:10:53 UTC] PHP Deprecated: Non-static method Wdcab_AdminPages::serve() should not be called statically in /home/account/public_html/wp-content/plugins/custom-admin-bar/custom-admin-bar.php on line 131

Please see replies for notes and relative screenshots.

Thank you!

  • jcnjr
    • HummingBird

    The error references this line of code:

    Users find our Admin Bar links very helpful. I have no desire in replacing the Custom Admin Bar plugin with Branda, or any other solution. We are troubleshooting various issues already and the last thing I need is to introduce any new plugins right now.

    Thanks in advance for help eliminating these errors!

  • jcnjr
    • HummingBird

    On a related note...

    PHP Deprecated: Function create_function() is deprecated in /home/account/public_html/wp-content/plugins/custom-admin-bar/lib/class_wdcab_admin_pages.php on line 56

    add_settings_section('wdcab_settings', __('Settings', 'wdcab'), create_function('', ''), 'wdcab_options');


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.