Forums

[Widget Logic] v0.46 on WP 2.7.1 not saving widget updates (9 posts)

  1. karl19
    Member
    Posted 4 months ago #

    Just tried updating Widget Logic from version 0.45 to 0.46 and noticed I couldn't update my widgets any longer. I've got one sidebar and a collection of custom widgets and multiple core Text widgets. Any changes I would make to a widget's content would save when hitting "Save changes". I down-graded to 0.45 and saving works again.

    Not sure what might be causing this conflict?

  2. alanft
    Member
    Posted 4 months ago #

    the live site i admin is 2.7.1 and that's def behaving ok. i just made changes to the title, content and WL code in a plain text widget, and each case saved ok.

    the only substantial difference in the code that i can think is relevant is an 'else' that i took out as it seemed extraneous. To see if that makes the difference, go back to 0.46, and on line 45 there is a a foreach statement -- add the 'else' back in before it:

    else foreach ( $wp_registered_widgets as $id => $widget ) etc

    see if that makes the difference. but really not sure what's going on, as like I say, it does seem ok on the 2.7.1 i'm looking at :-(

  3. whyameye
    Member
    Posted 4 months ago #

    I had the same problem and this solved it. I'm running 2.7.1

  4. givekudos
    Member
    Posted 4 months ago #

    I had the same problem (with WPMU 2.7.1) and this did my head in for hours (as I tried to track the problem across all my updated plugins)! I could not save any widget options or add text/rss widgets with version 0.46.

    I made the changes being suggested by alanft (i.e. put the else branch back in) and things are working again, it would seem.

  5. alanft
    Member
    Posted 4 months ago #

    woo. cheers for the feedback. i will look harder at why that makes a difference

  6. givekudos
    Member
    Posted 4 months ago #

    Thanks for your time and work on this plugin alanft. Hopefully, you'll be able to reproduce the problem and provide an "official" fix.

  7. TinaHunter
    Member
    Posted 4 months ago #

    I had this problem too. Just reverted back to version 0.45 and everything works fine again.

    Hopefully version 0.47 has a fix :)

    Cheers.

  8. troycorley
    Member
    Posted 3 months ago #

    Wow! Adding the word "else" before the foreach code did the trick! Simple fix!

  9. paulaeisenberg
    Member
    Posted 2 months ago #

    I had the same problem, and the same fix worked.

    My question, though, is why did this happen? I had not changed the WP version (2.7.1) or the theme (Atahualpa 3.2), and had no new plugins. Why did this "break" all of a sudden?

Reply

You must log in to post.

About this Topic