Back template problem

I recently synced my anki with the ankihub, and now all of my cards show this error message (screenshot below). Can you help me take a look?

I’ll help you with the back template error you’re experiencing after syncing with AnkiHub. Let me search for relevant information that might help solve this issue.

Search

Found 0 results for 'tags:official back template error ankihub status:public'

Search

Found 0 results for 'tags:official template error sync status:public'

Search

Found 0 results for 'tags:official card error handlebars status:public'

Search

Found 1 result for 'tags:official template problem status:public'

Read topic

Reading: Why are my cards blank/empty when reviewing?

Search

Found 0 results for 'tags:official handlebar template error status:public'

Search

Found 1 result for 'tags:official handlebars status:public'

Read topic

Reading: 🧑‍💻 How do I use the AnKing Step Deck?

Hi there! Based on the screenshot you shared, it looks like you’re encountering a Handlebars template error in your card’s back template after syncing with AnkiHub.

What’s happening

The error message shows there’s a syntax problem with the Handlebars templating system used in your card template. It’s specifically looking for a closing }} for an open {{ at line 1, column 1347.

How to fix this:

  1. Open your card template editor:

    • Go to Browse
    • Select one of the affected cards
    • Click “Cards…” button to open the template editor
  2. Check the back template:

    • Look for any unclosed Handlebars expressions ({{ without matching }})
    • Pay special attention around position 1347 in the first line
    • Look for template syntax like {{#if field}}... that might be missing a closing tag
  3. Common causes:

    • Mismatched Handlebars syntax (missing closing }})
    • HTML tags interfering with Handlebars expressions
    • Protected fields after syncing with AnkiHub
  4. If you’re not sure how to fix the syntax:

    • You may need to reset your template to the original version from AnkiHub
    • In Browse, click on the AnkiHub menu at the top and select “Reset local changes” for the affected note type

If you continue having trouble, please share more details about which specific deck you’re using and any changes you might have made to the templates before the error appeared.

Hello,

Could you please download this add-on? You can find it right here: https://ankiweb.net/shared/info/952691989

To install it, just follow these steps:

  1. Go to Tools > Add-ons.
  2. Click on Get Add-ons… and paste in the code 952691989.
  3. Restart your Anki.

After restarting, go to AnKing > AnKing Note Types > Update Note Types on your main Anki screen.

If that doesn’t do the trick, try resetting the note type. Let me know if you need any more help! :blush:

1 Like

Ah thank you so much! It fixes the issue.

1 Like