Support » Plugin: ACF Recent Posts Widget » BUG: Recent post widget disappears following plugin update

  • elizoliva

    (@elizoliva)


    WordPress version: 5.2.4
    PHP: 7.2.23
    Apache: 2.2.15 (Unix)

    We are experiencing an issue where updating the plugin causes every widget instance to disappear. We have rolled back the plugin to the version we had before the update (5.1.1) and the widgets re-appear. We have about 50 widgets set up, so re-creating following the plugin update is not really an option, though the entries are clearly not removed from the database, as they do return when we roll back the code.

    No errors come up in the logs that might provide clues here. Deactivating and re-activating makes no difference. Cache clears make no difference.

    Not sure what changed between these versions that may have caused this. I do see that the $domain variable changed, not sure if that might be having an effect somehow.

    • This topic was modified 2 years ago by elizoliva.
Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter elizoliva

    (@elizoliva)

    deleted reply.

    • This reply was modified 2 years ago by elizoliva.
    Plugin Author Rafał Gicgier

    (@gicolek)

    Hello @elizoliva,

    Thank you for your detailed report.

    The plugin domain has been changed in a previous release ~4 weeks ago, hence I doubt it’s the problem here.

    Unfortunately, I didn’t manage to recreate the problem, although you are the second person to report that.

    I will investigate the problem this week and will get back to you!

    Sincerely,
    Rafal

    Thread Starter elizoliva

    (@elizoliva)

    I tested by doing a find and replace against the domain in the codebase, and it did not make a difference, so yes that’s not the problem. We just a passing thought on my initial poke!

    Plugin Author Rafał Gicgier

    (@gicolek)

    Exactly, thank you for your input 🙂

    Anyway, the recent update only introduced a new field to specify “the no posts found” message. Hence, it’s not a required / security update.

    I’ll keep you posted if I find a workaround to the problem.

    Sincerely,
    Rafal

    I am also experiencing what sounds like a similar problem. When I updated from 5.1.1 to 5.2.4, no posts would populate in my recent posts feeds. It also still doesn’t work with version 5.3. Going back to 5.1.1 fixes the problem.

    To get 5.3 to work, I did a find and replace and changed all occurrences of acf-recent-posts-widget to acf_rpw in the following files:

    acf-widget.php
    classes\acf-widget-widget.php
    classes\widget-base.php
    includes\form
    includes\shortcodes\shortcodes-generator.php
    templates\loop-inner.php

    Doing this fixed the problem (at least for now), and 5.3 now runs for me, with that change.

    Thanks so much!!

    Plugin Author Rafał Gicgier

    (@gicolek)

    Hello nmeddy,

    You must be a mindreader cause I was about to reply here, that I have no clue on what is the issue and I would need some external help 😉

    It indeed might’ve caused the issue. Would you be so kind as to share your changes with me through a .zip file?

    I’ll verify that and push it to the repository + I would like to add you as a contributor if that’s not a problem?

    Thank you both a lot for pointing this one out.

    Sincerely,
    Rafal

    I’m not a web developer myself, and don’t really know the protocol for things, but I’m happy to send a .zip of my fix for what help it could be. I’m not even positive this will help elizoliva, since she says doing a find and replace did not work for her! How would you like me to send you the .zip?

    Plugin Author Rafał Gicgier

    (@gicolek)

    Hmm, perhaps a file sharing like dropbox link?

    Don’t worry, I’ll double check that before submitting a fix.

    I did rewrite all of these 3 weeks ago.

    Sincerely,
    Rafal

    Sure, if you like. This is my burner email address I’m using, so I guess I don’t mind giving it out. It’s my username I’m using here, at the hotmail address suffix.

    Plugin Author Rafał Gicgier

    (@gicolek)

    Thank you!

    Sent you an email.

    Regards,
    Rafal

    Just sent a reply to your email with the zip. Let me know if you didn’t get it.

    Plugin Author Rafał Gicgier

    (@gicolek)

    Thanks, got it!

    I’ll get back to it next week.

    Have a great weekend,

    Rafal

    Plugin Author Rafał Gicgier

    (@gicolek)

    Hey guys,

    Nmeddy’s solution did work. I’ll be able to deliver a fix to that this week.

    On the other hand, I am a bit worried that this change would reset the changes of those people who applied the previous version of the software and fixed the issue themselves.

    Needless to say, it was related to the swap you both guys noticed.

    Regards,
    Rafal

    Thread Starter elizoliva

    (@elizoliva)

    Yeah, it turns out I was rushing and did not find in replace in all the files.

    Honestly, changing the name space back to what it was before will likely affect anyone who has downloaded the plugin since that change, in the same way it has affected folks here.

    Might be good to develop a more rigorous testing workflow before making future releases.

    Plugin Author Rafał Gicgier

    (@gicolek)

    Hey @elizoliva,

    You are right. Call it an accident or not – I didn’t notice that (even though I took all available precautions).

    With software development bugs like that are unavoidable I guess.

    Anyway, I’ll think of a safe update, get in touch with Automattic and find out a way of fixing that.

    Hence, please give me some time to figure out a way of safely applying the update.

    Thanks,
    Rafal

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘BUG: Recent post widget disappears following plugin update’ is closed to new replies.