Title: [Plugin: YAPB Sidebar Widget] warning error
Last modified: August 19, 2016

---

# [Plugin: YAPB Sidebar Widget] warning error

 *  [MJ](https://wordpress.org/support/users/mardie/)
 * (@mardie)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-yapb-sidebar-widget-warning-error/)
 * Hi,
 * We recently moved from another server. And I get this error:
 * > Warning: Parameter 1 to YapbSidebarWidget::filterYapbOptions() expected to 
   > be a reference, value given in /home-root/wp-includes/plugin.php on line 166
 * Any ideas?
 * Thanks

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

 *  [rullator](https://wordpress.org/support/users/rullator/)
 * (@rullator)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-yapb-sidebar-widget-warning-error/#post-1856526)
 * I just got the same error message, after upgrading to a new server.
    Change line
   241 auf the file “wp-content/plugins/yapb-sidebar-widget/YapbSidebarWidget.class.
   php” from
 *  function filterYapbOptions(&$options) {
 * to
 *  function filterYapbOptions($options) {
    .
 *  [blindscope](https://wordpress.org/support/users/blindscope/)
 * (@blindscope)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-yapb-sidebar-widget-warning-error/#post-1856527)
 * I had this error too and thanks to your help rullator, it’s fine.
 * But I get another error message whenever the YAPB sidebar widget is in use. The
   message displays directly on the right in the sidebar:
 * Warning: Parameter 1 to YapbSidebarWidget::onDrawLocal() expected to be a reference,
   value given in /var/www/XXXXX/html/blog/wp-includes/widgets.php on line 891
 * Any help?
 * Edit
 * Ok found it myself.
    I changed the line function onDrawLocal($args) { to function
   onDrawLocal(args) { in yapb-sidebar-widget\YapbSidebarWidget.class.php

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

The topic ‘[Plugin: YAPB Sidebar Widget] warning error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/yapb-sidebar-widget.svg)
 * [YAPB Sidebar Widget](https://wordpress.org/plugins/yapb-sidebar-widget/)
 * [Support Threads](https://wordpress.org/support/plugin/yapb-sidebar-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/yapb-sidebar-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yapb-sidebar-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yapb-sidebar-widget/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [blindscope](https://wordpress.org/support/users/blindscope/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-yapb-sidebar-widget-warning-error/#post-1856527)
 * Status: not resolved