WordPress.org

Forums

Dynamic Widgets
Error on save (8 posts)

  1. bapusfsp
    Member
    Posted 3 years ago #

    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/

  2. Qurl
    Member
    Plugin Author

    Posted 3 years ago #

    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 has this fixed.

  3. CarlBH
    Member
    Posted 3 years ago #

    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?

  4. Qurl
    Member
    Plugin Author

    Posted 3 years ago #

    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.

  5. Qurl
    Member
    Plugin Author

    Posted 3 years ago #

    OK, I found it. It was indeed a regression bug and has been fixed in development version 1.5.0.3.

  6. CarlBH
    Member
    Posted 3 years ago #

    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.

  7. Qurl
    Member
    Plugin Author

    Posted 3 years ago #

    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.

  8. CarlBH
    Member
    Posted 3 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Dynamic Widgets
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic