• I’ve posted about this before. I am not sure what the issue is. This has happened on different hosts, with different wp versions, with different versions of the plugin.

    For some reason, on plugin update, sometimes the custom repeater template goes missing, and the default one is used. The button “load from database” does not seem to do anything.

    Thankfully I had an old backup I could go to, but this problem has happened multiple times on different environments and different sites.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    @p10design Sorry to hear this. Sounds like a permission issue after update.
    The issue appears to be random for some users and only a handful of people have reported this issue over the years.

    How are you updating the plugins… Are you manually clicking Update on the plugin dashboard?

    Cheers,

    Thread Starter p10design

    (@p10design)

    Yeah, I typically use the wp interface to update the plugins. I don’t know if it’s a permission issue, because when I try to save the repeater template and don’t have permission, I get a “something went wrong, try again” message. The plugin doesn’t throw any errors. I usually also make plugin updates on a dev environment first where I have full write access.

    Hi. I was about to post a very similar issue. Please let me know if you would rather this in its own thread.

    In my case, I’m using the Roots stack. After every deploy, the Default Template is reset (?page=ajax-load-more-repeaters). So, I have to remember to manually select Options > Update Template from Database and save each time. Note: the plugins are managed with Composer.

    This happens in all environments (dev, staging, production).

    Why is the default template resetting if the code is stored in the database?

    Thanks.

    Plugin Author Darren Cooney

    (@dcooney)

    Why is the default template resetting if the code is stored in the database?

    @aisforadam Repeater Templates are loaded like include files, so on plugin update Ajax Load More is suppose to recreate the templates because they are cleared when the plugin is updated.

    @p10design If the default repeater is your issue, you could always switch to a Local Repeater – see the docs.
    https://connekthq.com/plugins/ajax-load-more/docs/repeater-templates/

    Thanks for the details.

    If a local template is used, would it prevent the reset when the plugin is updated? Also, is an add-on required for this? Note: there is only one template used on the site.

    Plugin Author Darren Cooney

    (@dcooney)

    No add on required. It’s essentially the default template except you store it in your theme directory.

    Follow the implementation steps for details.

    Got it. Thanks for the help.

    Plugin Author Darren Cooney

    (@dcooney)

    No problem.
    I re-worked the docs a bit to hopefully make things a bit easy to understand. I realized it was as clear as mud before.

    https://connekthq.com/plugins/ajax-load-more/docs/repeater-templates/

    Thread Starter p10design

    (@p10design)

    can the same be done to the repeater templates (add-on)? I have had this issue with both of them.

    Plugin Author Darren Cooney

    (@dcooney)

    You would need the theme repeaters add-on.
    https://connekthq.com/plugins/ajax-load-more/add-ons/theme-repeaters/

    • This reply was modified 8 years, 6 months ago by Darren Cooney.
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Custom template lost’ is closed to new replies.