Anki Error

Im getting his error

Anki 25.09.2 (3890e12c) (ao)
Python 3.13.5 Qt 6.9.1 PyQt 6.9.1
Platform: macOS-15.7.2-arm64-arm-64bit-Mach-O

Traceback (most recent call last):
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/main.py”, line 288, in on_focus_changed
gui_hooks.focus_did_change(new, old)
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/_aqt/hooks.py”, line 3496, in call
hook(new, old)
~~~~^^^^^^^^^^
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/main.py”, line 881, in on_focus_did_change
self.reviewer.refresh_if_needed()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/reviewer.py”, line 205, in refresh_if_needed
self.nextCard()
~~~~~~~~~~~~~^^
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/reviewer.py”, line 263, in nextCard
self._showQuestion()
~~~~~~~~~~~~~~~~~~^^
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/reviewer.py”, line 378, in _showQuestion
q = c.question()
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/cards.py”, line 150, in question
return self.render_output(reload, browser).question_and_style()
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/cards.py”, line 168, in render_output
).render()
~~~~~~^^
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/template.py”, line 226, in render
partial = self._partially_render()
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/template.py”, line 273, in _partially_render
out = self._col._backend.render_existing_card(
card_id=self._card.id, browser=self._browser, partial_render=True
)
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/_backend_generated.py”, line 1629, in render_existing_card
raw_bytes = self._run_command(27, 6, message.SerializeToString())
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/_backend.py”, line 171, in _run_command
raise backend_exception_to_pylib(err)
anki.errors.InvalidInput: missing template

Traceback (most recent call last):
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/webview.py”, line 188, in cmd
return json.dumps(self.onCmd(str))
~~~~~~~~~~^^^^^
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/webview.py”, line 275, in _onCmd
return self._onBridgeCmd(str)
~~~~~~~~~~~~~~~~~^^^^^
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/webview.py”, line 806, in onBridgeCmd
return self.onBridgeCmd(cmd)
~~~~~~~~~~~~~~~~^^^^^
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/overview.py”, line 99, in linkHandler
self.mw.moveToState(“review”)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/main.py”, line 779, in moveToState
getattr(self, f"
{state}State", lambda *: None)(oldState, *args)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/main.py”, line 800, in _reviewState
self.reviewer.show()
~~~~~~~~~~~~~~~~~~^^
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/reviewer.py”, line 185, in show
self.refresh_if_needed()
~~~~~~~~~~~~~~~~~~~~~~^^
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/reviewer.py”, line 205, in refresh_if_needed
self.nextCard()
~~~~~~~~~~~~~^^
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/reviewer.py”, line 263, in nextCard
self._showQuestion()
~~~~~~~~~~~~~~~~~~^^
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/reviewer.py”, line 378, in _showQuestion
q = c.question()
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/cards.py”, line 150, in question
return self.render_output(reload, browser).question_and_style()
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/cards.py”, line 168, in render_output
).render()
~~~~~~^^
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/template.py”, line 226, in render
partial = self._partially_render()
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/template.py”, line 273, in _partially_render
out = self._col._backend.render_existing_card(
card_id=self._card.id, browser=self._browser, partial_render=True
)
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/_backend_generated.py”, line 1629, in render_existing_card
raw_bytes = self._run_command(27, 6, message.SerializeToString())
File “/Users/sophiegomez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/_backend.py”, line 171, in _run_command
raise backend_exception_to_pylib(err)
anki.errors.InvalidInput: missing template

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AnKing Note Types Easy Customization [‘952691989’, 2026-04-22T04:06, ‘None’, mod]
Anki Leaderboard - Compete with friends to boost motivation Custom by Shige [‘175794613’, 2026-04-12T16:20, ‘None’, mod]
Anki Simulator [‘817108664’, 2023-11-06T09:26, ‘None’, ‘’]
AnkiHub [‘1322529746’, 2026-05-05T10:53, ‘None’, ‘’]
Auto Sync [‘501542723’, 2023-11-20T08:14, ‘None’, ‘’]
Contanki - Controller Support for Anki beta [‘1898790263’, 2024-02-29T17:22, ‘v1.0.2’, ‘’]
Customize Keyboard Shortcuts [‘24411424’, 2023-11-01T02:17, ‘None’, ‘’]
Find cards from UWorld test [‘444814983’, 2024-07-18T23:19, ‘None’, ‘’]
Image Occlusion Enhanced [‘1374772155’, 2022-04-09T00:15, ‘None’, ‘’]
Quizlet to Anki 21 Importer with audio support [‘1362209126’, 2026-01-17T12:44, ‘None’, ‘’]
Review Heatmap [‘1771074083’, 2022-06-29T18:43, ‘None’, ‘’]
right hand reviews hjkl answer shortcuts Handy Answer Keys configurable [‘850294128’, 2023-05-24T02:00, ‘None’, ‘’]

===IDs of active AnkiWeb add-ons===
1322529746 1362209126 1374772155 175794613 1771074083 1898790263 24411424 444814983 501542723 817108664 850294128 952691989

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Freshness - Randomize CSS styles [‘1369362778’, 2023-04-23T13:39, ‘None’, ‘’]

Thinking

Search
Found 0 results for ‘tags:official anki.errors.InvalidInput: missing template AnKing Note Types Easy Customization category::person_raising_hand: Support order:latest max_posts:10 status:open’

This error means Anki is trying to show a card whose note type is missing a template (front/back card type). That’s usually a note‑type/template issue, not specifically an AnkiHub bug, but it can happen with shared/AnKing note types.

Try these steps:


1. Identify which note type is broken

  1. In Anki, go to Browse.
  2. In the left sidebar, click the deck you were trying to review.
  3. Select a few cards near where the error happens.
  4. Look at the top: note the Note type shown (e.g. “AnKing Overhaul vX…”, image occlusion, etc.).

If you click Cards… (top middle of the browser) for that note type and Anki says something like “missing template” or shows a blank front/back, that’s the culprit.


2. Check templates for “missing template”

Still in Browse → select a card → Cards…:

  • Make sure there is at least one card template listed (Card 1, Card 2, etc.).
  • For each template, ensure:
    • The Front Template is not empty.
    • The Back Template is not empty.
  • If a template is completely blank or was accidentally deleted, that will cause anki.errors.InvalidInput: missing template.

If you don’t know what the templates should look like:

  • Compare with a known-good copy of the same note type:
    • If you use an AnKing / AnkiHub deck, you can:
      • Create a new profile, install only the same deck (via AnkiHub or AnkiWeb), and open Cards… there, then copy the front/back templates into your main profile.
      • Or, if you have a second computer/backup where it still works, copy the templates from there.

3. Quickly isolate whether it’s add‑on related

Because you’re on a very new Anki version (25.09.2) and have many add‑ons, it’s worth checking:

  1. Restart Anki while holding Shift (this starts without add‑ons).
  2. Try reviewing the same deck again.
  • If the error still appears without add‑ons, it’s almost certainly a broken note type/template.
  • If the error goes away, one of the add‑ons (possibly a note‑type/customization add‑on) may have modified templates or is clashing with 25.09.2. In that case:
    • Re‑enable add‑ons in small groups (or one by one), restarting Anki each time, to see which one brings the error back.
    • Given your list, “AnKing Note Types Easy Customization” is the prime suspect if templates were accidentally changed.

4. Specific to AnkiHub / AnKing decks

If the problematic note type is one that is managed via AnkiHub:

  1. In Anki, go to AnkiHub → Manage Subscriptions and confirm which decks/note types are linked.
  2. In the Browser, pick one of the affected cards and check:
    • Fields… to confirm it’s using the correct AnKing/AnkiHub note type (not a duplicate/partial clone).
  3. If the note type got corrupted:
    • Backup first: File → Export → Include scheduling information checked, so you can restore if needed.
    • Then try:
      • Re‑downloading/updating the deck from AnkiHub.
      • Or creating a fresh profile, importing the AnkiHub deck there, and then exporting just the note type to re‑import into your main profile (to restore its templates).

If you tell me:

  • The exact note type name shown at the top of the Add/Browser window for an error‑causing card, and
  • What you see when you click Cards… for that note type,

I can give you more precise, step‑by‑step instructions tailored to your setup.

Hello,

Please try to:

  1. Go to Tools > Empty Cards
  2. Go to Tools > Check Database

If this does not fix the issue, it may have to do with a bug of a specific deck/note type that you have.