Ankihub sync error after hint order change

Hello everyone,

I was trying to change the order of the hints of all my anking deck cards. I wanted to move “additional resources” to after “First Aid”. I couldn’t find the Anking note type pop up that I expected to have, so I went to browse, and edited the back template. The change was synced successfully with ankiweb, however immediately after, a pop up from ankihub said that I need a full sync. I pressed the full sync button and then I got a “Oh no! An Ankihub add-on error has occured”. After force quitting the app and reopening, the changes are reverted back to default. This has happened 5 times. My temp solution as of now is skipping the full sync prompted by Ankihub.

Please help, thank you.

Thank you for reaching out! Our moderators have been notified and will assist you shortly. In the meantime, you can get an instant response from me simply by @ mentioning my username`. Alternatively, start a private conversation with me (see screenshot below). If you ask me a question, I will do my best to respond using only verified information found in the official AnkiHub docs and the Anki manual.

You can also find answers to common questions in our FAQ and Docs.

I’ll help you with this AnkiHub sync error after changing hint order. Let me search for relevant information on this topic.

Search

Found 1 result for 'tags:official ankihub sync error template change status:public'

Search

Found 4 results for 'tags:official ankihub full sync template change status:public'

Read topic

Reading: How do I update my note type styling for a deck on AnkiHub?

AnkiHub Sync Error After Hint Order Change

Hello there! I understand you’re having trouble with template changes causing sync errors with AnkiHub. This is a common issue when modifying templates for decks that are managed through AnkiHub.

What’s Happening

When you modify the template of an AnkiHub-managed deck (like the AnKing deck), AnkiHub detects these changes and requires a full sync to update all cards using that template. The error you’re experiencing suggests there’s a conflict between your local changes and the AnkiHub version.

The Correct Way to Update Templates

For AnkiHub-managed decks, especially if you’re the deck creator, there’s a specific process to update templates:

  1. Make your template changes locally first
  2. Open the AnkiHub add-on
  3. Go to “Deck Management”
  4. Select the AnKing deck
  5. Scroll down to “Note Types”
  6. Click “Publish style/template updates”
  7. Confirm when prompted

This way, your changes will be properly published to AnkiHub and sync correctly for all subscribers.

If You’re Not the Deck Creator

If you’re just a subscriber to the AnKing deck (which is likely the case), you shouldn’t modify the templates directly. Any changes you make will be overwritten when the deck updates, which is likely causing your sync errors.

Your Temporary Solution

Your current approach of skipping the full sync prompted by AnkiHub will work temporarily, but it means:

  • Your changes may be lost in future syncs
  • You might encounter more sync issues down the line

Recommended Solution

The best approach would be to:

  1. Create a copy of the AnKing note type with a new name (like “AnKing-Modified”)
  2. Change all your cards to use this new note type
  3. Make your template changes to this new note type

This way, you can have your custom hint order without interfering with AnkiHub’s synchronization process.

Would you like more details on how to create a copy of the note type and switch your cards over?

yes

I’ll walk you through creating a copy of the AnKing note type and switching your cards to use it. This approach will let you customize the hint order without causing AnkiHub sync errors.

Creating a Copy of the AnKing Note Type

  1. Open Anki and click on Tools → Manage Note Types in the main window
  2. Select the AnKing note type from the list and click Add
  3. Choose Clone: AnKing (or whatever the exact name is)
  4. Give it a new name like “AnKing-Custom” or “AnKing-Modified” and click OK
  5. Select your new note type and click Fields… to verify all fields are copied correctly
  6. Click Cards… to edit the templates and make your changes (moving “Additional Resources” after “First Aid”)
  7. Save your changes

Switching Your Cards to the New Note Type

  1. In the main Anki window, click Browse
  2. Search for "note:AnKing" (or whatever the original note type is called) to find all your AnKing cards
  3. Select all cards (Ctrl+A or Cmd+A)
  4. Right-click on the selected cards and choose Change Note Type…
  5. From the dropdown menu, select your new “AnKing-Custom” note type
  6. Map the fields appropriately (they should match automatically) and click OK

This process may take some time if you have many cards, but once complete, your cards will use the custom template with your preferred hint order, and you won’t have AnkiHub sync conflicts.

When you sync with AnkiWeb after this change, you might need to do a full sync, but that should proceed without the AnkiHub error you were experiencing before.

Would you like me to clarify any specific part of this process?

if I change all my cards to this new note type, will I still get the deck updates from ankihub without any overriding of changes done by me?

Search

Found 5 results for 'tags:official ankihub custom note type update status:public'

Search

Found 4 results for 'tags:official ankihub clone note type updates status:public'

Custom Note Type and AnkiHub Updates

No, if you change all your cards to a custom note type, you will no longer receive content updates from AnkiHub for those cards. This is because AnkiHub specifically syncs content to cards with the original note type.

Here’s what happens when you use a custom note type:

  1. Disconnection from AnkiHub sync: Cards with your custom “AnKing-Modified” note type will no longer be recognized by AnkiHub as part of the AnKing subscription.

  2. No content updates: When new content updates are released for the AnKing deck, your modified cards won’t receive these updates.

  3. No sync errors: The upside is you won’t have sync conflicts anymore, since AnkiHub won’t try to manage these cards.

Alternative approaches:

Option 1: Minor Template Edit Only

If you just want to change the hint order without losing updates:

Option 2: Keep Both Versions

  • Keep the original AnKing cards to receive updates
  • Create a separate deck with your modified note type for studying
  • Periodically update your custom deck with new content from the original

Option 3: Custom CSS

  • Some template changes can be made through custom CSS in Anki’s preferences without modifying the actual template

Unfortunately, there’s no perfect solution that allows both complete template customization and continued AnkiHub updates. This is a limitation of how AnkiHub manages deck synchronization to ensure consistency across users.

Would you like me to explain any of these alternative approaches in more detail?

Hi,

To make these changes, you’ll need this add-on: https://ankiweb.net/shared/info/952691989

This add-on allows you to customize your cards in various ways, including the order of the fields.

Let me know if you need any more help with it! :grin:

1 Like

Thank you that worked beautifully!!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.