WordPress.org

Ready to get started?Download WordPress

Forums

Widgets disappearing (70 posts)

  1. Steve Taylor
    Member
    Posted 5 years ago #

    I've found a couple of other threads with similar titles, but they don't seem to be about the same issue that I have.

    When I edit or add a widget, sometimes one or more widgets that have been placed in the sidebar just disappear. It doesn't always happen, and I can't spot a pattern. I've had to start keeping a log of all the code and settings for every widget, as I often have to re-install them all.

    I'm almost certain this is to do with running Widget Logic and PHP Code Widget plugins. I'm in the process of testing variations of deactivating and activating these, but I thought I'd see if anyone has encountered and maybe solved this?

    The other hope is that the new widgets system in 2.8 might smooth things out...

  2. alanft
    Member
    Posted 5 years ago #

    i'm not aware of this problem - if you do find it goes without Widget Logic active, let me know asap.

  3. itzsnider
    Member
    Posted 5 years ago #

    I am having the same issue. The widget logic is NOT working period. As soon as I add it the widget dissapears. If I copy the code inside of the widget, create a new one and leave out the widget logic it works fine. This is BOTH on 2.7 and 2.8 code. It was happening the last 10 days or so for me. Very odd issue. I am trying to have homepage only links also and its not working well.

  4. johnh10
    Member
    Posted 5 years ago #

    I'm having this issue after just upgrading to WP 2.8, only the last added/edited PHP Code widget will be displayed on the blog.

  5. gliderpilot
    Member
    Posted 5 years ago #

    I have been having this problem on one of our Blogs too!
    Not got to the bottom of it yet.
    We keep seeing widgets disappear, we put them back and they seem there, then they disappear again - it's bizzare!

  6. wrongforum
    Member
    Posted 5 years ago #

    My widgets are still there, but I can't "open" them up and change their settings. After reading this I'm afraid to add any new widgets to test the situation.

  7. bqrney
    Member
    Posted 5 years ago #

    Not sure letting you all know I am having the same issue will help but here I am letting you all know I have the same issue.

    Is there another plugin like this or another one similiar to widget logic I could try?

  8. bqrney
    Member
    Posted 5 years ago #

    Samsarin PHP Widget seems to be the same as PHP Code.. I will try it and let you know if it works.

  9. bqrney
    Member
    Posted 5 years ago #

    Samsarin PHP Widget does not work either.

  10. ShackDougall
    Member
    Posted 5 years ago #

    I'm seeing the same thing that johnh10 describes. I just upgraded to 2.8.

    Only the last added/edited PHP Code widget will be displayed on the blog. I'm not using Widget Logic. And if I refresh the Widgets page (Appearance > Widgets), then all but the last of the PHP Code Widgets disappears from the Widgets page, as well.

  11. alanft
    Member
    Posted 5 years ago #

    ok. trying to break this down...

    on 2.7.1 i am not seeing any generic problem with either widget logic or php-code-widget (there are a couple of known special case issues for both plugins that are not interesting).

    BUT on 2.8, even in the beta, i can see there does appear to be a problem with widget logic. boy do i feel stupid for not checking this earlier *blush* (there may well be an issue with php-code-widget, but I'll leave that to otto)

    i've had a few beers, so not in the best of places to fix this now, but I will try to get a fix by the weekend. I just have to work out what's new in 2.8.

    it LOOKed the same :-(

  12. alanft
    Member
    Posted 5 years ago #

    (it's some consolation to me that it works in the 2.8 but non-javascript interface - so there's just something new in the ajax-iness to code for/capture...)

  13. alanft
    Member
    Posted 5 years ago #

    looking back at some of the posts here, i wonder if most of them aren't actually about php-code-widget and i got confused eg when itzsnider says

    The widget logic is NOT working period. As soon as I add it the widget dissapears. If I copy the code inside of the widget, create a new one and leave out the widget logic it works fine.

    is that widget logic as in Widget Logic for the Widget Logic plugin, or is it more generically 'logic' in terms of code used in the php-widget?

    Anwyay, i've found the problem with Widget Logic not saving changes in the new interface and think i have a fix. there's a new filter to catch widget_update_callback. it might be that simple. will play around and get an update very soon now.

  14. matthewlasar
    Member
    Posted 5 years ago #

    I'm having this problem too. So is downgrading to a lower version of word press an option until this problem is fixed?

  15. itzsnider
    Member
    Posted 5 years ago #

    Okay still having issues after downgrading the Widget Logic plugin. I do NOT use the php widget so that is not the issue at hand for me at least.

    Widget Logic is broken - the plugin that is. That is why I am posting here.

  16. alanft
    Member
    Posted 5 years ago #

    you downgraded to WP2.7 or an earlier version of WL? does the problem persist with the default theme?

  17. itzsnider
    Member
    Posted 5 years ago #

    The problem is still the same on the default theme as far as I can tell. I can always test on my test site. The issue for me at least was it just stopped working, I have been with this them for a few months now and it was working fine. Now it has stopped working.
    I downgraded to a lower version of Widget Logic Plugin, not back to 2.7 as it was giving me issues on 2.7 also.

    I have had php-widget installed at one point though. I may have to clear the database of that to fix it??

  18. itzsnider
    Member
    Posted 5 years ago #

    Tested a bit further this morning, I should be doing work right now :-)

    Anyway, I have found that if I add any "logic" to the plugin it saves and it won't show the entire widget on ANY page after a Control F5 to refresh the site. When go back in and remove the "logic" from the widget, and do a Control F5 it shows back up fine.

  19. alanft
    Member
    Posted 5 years ago #

    if you are on WP2.7, use the standard WL plugin rather than an older version.

    it sounds as if any logic you put in is returning false or isn't valid PHP. what happens if you just put in 'true' (no quotes) in the WL field for a widget.

    On the 2.8 front, I have tested a standard setup with some new additions to the code, and it's looking good. I'll commit it to the development version soon and ask for some feedback.

    Cheers all

  20. itzsnider
    Member
    Posted 5 years ago #

    Thanks Alan if you need a tester - catch me at atomic popcorn dot net

  21. alanft
    Member
    Posted 5 years ago #

    Great, if you have any more insight into why your setup is acting like the Widget Logic is always returning false, let me know.

    Meanwhile, I have updated the development version to a 2.8 version. it's not fed through to the download page just yet. but give it 30 mins and I'm sure it will be there.

    This version should work ok with 2.8 now, and i've added a couple of minor changes that have been accumulating:
    * The fix that heads off the multiple wp_head problem (The Stars theme issue)
    * an optional "wp_reset_query" action that helps when themes execute custom queries that mess up the conditional tags

  22. itzsnider
    Member
    Posted 5 years ago #

    AM using .46 development and as soon as I add it to my existing widget which is really 4 links, they dissapear totally from the site. Still in the widget area but not working.

  23. khoward87
    Member
    Posted 5 years ago #

    I have been trying to use Widget Logic to use the TTF Titles plug in for my Widget titles. The function code for the ttftitles returns tons of errors. The most common one is an “unexpected $end error” I don’t know if I am not doing it right or what. I copied and pasted this code:

    function ttftext_widget_title($content=”, $widget_id=”)
    { preg_match(”/]*>([^<]+)/”,$content, $matches);
    $heading=$matches[1];
    $insert_img=the_ttftext( $heading, false );
    $content=preg_replace(”/(]*>)[^<]+/”,”$1$insert_img”,$content,1);
    return $content;
    }

    I am no PHP expert so is there any way you can give details on what to do with it and what changes to what and what closes it, etc? Thank you!

  24. alanft
    Member
    Posted 5 years ago #

    itzsnider, i need a bit more detail, so that I can replicate the problem. what version of WP, what's the widget logic text, what sort of widget is it. etc. and as I asked above, what happens if you just put in 'true' (no quotes) in the WL field for a widget

    khoward - where are you pasting that code? and where have you put the add_filter function?

  25. itzsnider
    Member
    Posted 5 years ago #

    Okay Alan,

    Here are the details

    Widget Logic plugin 0.46
    Wiget is a widget with html links in it - its my sponsors page
    If I put in is_home() it dissapears
    When I use true it stays as normal and doesn't dissapear.

    So true does work and leaves the widget in tacked.

    Thanks for all of your help.

  26. alanft
    Member
    Posted 5 years ago #

    So for some reason is_home is never returning true.

    Couple of things to try/check. First is_home is true on the front blog page - so if you use a static page as your front page that won't work with is_home.

    Next up, try the WP default theme. Does that improve things?

    Another thing, new in .46, is the new reset_query option. Try ticking that to see what effect that has.

    Cheers

  27. itzsnider
    Member
    Posted 5 years ago #

    My front page is not a static page and was working fine with is_home() less than 2 weeks ago

    the default theme, while I don't want to switch to this I will for testing if necessary BUT again it worked a few weeks ago.

    I tried ticking reset_query and change it to is_home() and nothing is working right now.

    The only thing new I use now is domtabs which is new to the site along with the poll I use.

  28. alanft
    Member
    Posted 5 years ago #

    great, we're getting somewhere. so yes, what you need to think about is what has changed between now and a few weeks ago (cos WL hadn't -- not counting my 2.8 update which you weren't using til just now).

    please try the default theme (without the reset_query option ticked) if that works, then it narrows the problem down to changes in the code in your theme.

    otherwise what else could have changed in the last 2 weeks? other plugins i guess. what is 'the poll i use'? is domtabs this http://www.problogdesign.com/general-tips/how-to-install-domtabs-on-wordpress/ ?

  29. itzsnider
    Member
    Posted 5 years ago #

    OKAY SO I FIGURED OUT WHAT IT IS.

    BUT I NEED IT

    The issue was with the domtabs. How can I fix this?? I assume the javascript is doing something to interfere.

    The site works fine without the domtabs but I need them on my site also.

    Thanks much for your help Alan

  30. khoward87
    Member
    Posted 5 years ago #

    alanft,

    I am putting this post in the functions.php page. Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic