Title: [Plugin: Dynamic Widgets] Error on save
Last modified: August 20, 2016

---

# [Plugin: Dynamic Widgets] Error on save

 *  [bapusfsp](https://wordpress.org/support/users/bapusfsp/)
 * (@bapusfsp)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-dynamic-widgets-error-on-save-1/)
 * Every time I save a widget’s settings, I get…
 * Warning: Invalid argument supplied for foreach() in…dynwid_admin_save.php on 
   line 158.
 * I saw another thread that said to upgrade to 1.4.x, but I am running 1.5.0. Any
   idea what could be causing this?
 * [http://wordpress.org/extend/plugins/dynamic-widgets/](http://wordpress.org/extend/plugins/dynamic-widgets/)

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

 *  Plugin Contributor [Qurl](https://wordpress.org/support/users/qurl/)
 * (@qurl)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-dynamic-widgets-error-on-save-1/#post-2507486)
 * Fortunately it’s not a critical error. It’s actually a warning. The settings 
   for the widgets are saved. However, it’s a bit ugly of course to see that warning
   every time. [Development version 1.5.0.1](http://downloads.wordpress.org/plugin/dynamic-widgets.zip)
   has this fixed.
 *  [CarlBH](https://wordpress.org/support/users/carlbh/)
 * (@carlbh)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-dynamic-widgets-error-on-save-1/#post-2507627)
 * I had same Line 158 problem.
    installed DV 1.5.0.2 from link above, and now problem
   is gone, except on posts called “extra posts” when I choose the no option and
   save, it does not save it.
 * Any thoughts?
 *  Plugin Contributor [Qurl](https://wordpress.org/support/users/qurl/)
 * (@qurl)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-dynamic-widgets-error-on-save-1/#post-2507629)
 * Hmm… looks like a regression bug occurs. I think I already know where the problem
   is. When I find it I’ll let you know.
 *  Plugin Contributor [Qurl](https://wordpress.org/support/users/qurl/)
 * (@qurl)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-dynamic-widgets-error-on-save-1/#post-2507634)
 * OK, I found it. It was indeed a regression bug and has been fixed in [development version 1.5.0.3](http://downloads.wordpress.org/plugin/dynamic-widgets.zip).
 *  [CarlBH](https://wordpress.org/support/users/carlbh/)
 * (@carlbh)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-dynamic-widgets-error-on-save-1/#post-2507635)
 * Looks like the regression bug is fixed – great job!
 * One other issue I notice, is that if I indicate for all the sidebar widgets to
   not be shown in say “extra posts”, it works up until there is one widget left
   in the sidebar. When I then indicate that the last widget is not to be shown,
   it seems like a bunch of, maybe, default widgets come up. i.e. I turned search,
   custom menu, etc off. After all widgets in sidebar are off, then a sidebar with
   search, navigation, archives, etc. comes up.
 * This may just be the way wp works? Don’t know.
 * Thanks again for fixing the regression bug.
 *  Plugin Contributor [Qurl](https://wordpress.org/support/users/qurl/)
 * (@qurl)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-dynamic-widgets-error-on-save-1/#post-2507636)
 * It’s actually how your template (theme) works. The theme you are using uses a
   set of “default widgets”. That set comes up at the moment your sidebar becomes
   empty. Sometimes this can be ‘fixed’ by using a hack in the theme files. I can
   offer you this service on a commercial base.
 *  [CarlBH](https://wordpress.org/support/users/carlbh/)
 * (@carlbh)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-dynamic-widgets-error-on-save-1/#post-2507637)
 * That explains it. I was able to use a redirect to send to a page with no widgets
   instead of post, and that solved the immediate need.
    If that doesn’t work, I
   will contact you about getting the theme hacked. Thanks again!

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

The topic ‘[Plugin: Dynamic Widgets] Error on save’ is closed to new replies.

 * ![](https://ps.w.org/dynamic-widgets/assets/icon-256x256.png?rev=2968917)
 * [Dynamic Widgets](https://wordpress.org/plugins/dynamic-widgets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dynamic-widgets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dynamic-widgets/)
 * [Active Topics](https://wordpress.org/support/plugin/dynamic-widgets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dynamic-widgets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dynamic-widgets/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [CarlBH](https://wordpress.org/support/users/carlbh/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-dynamic-widgets-error-on-save-1/#post-2507637)
 * Status: not resolved