Curious "the front of this card is empty” error

Ricardo Magalhães's Avatar

Ricardo Magalhães

02 Dec, 2019 03:43 PM

Hello. I'm having a pretty curious problem. I have a custom note type from an addon, and I wanted to do some changes. After making the changes and constant tests to see if was everything working, I finished editing successfully, or I had thought that. A pretty curious error happens, which I preferred to record to show it.

Here's the video:https://drive.google.com/file/d/1WkXT_bmaH7aosd3d9hl0IwhbGfPA-OtX/view?usp=sharing

And here you can see how the Front/Back page code from this custom note type is: https://gist.github.com/AmodeusR/93feece62b2a3203e4076955c5c3636c

So yeah, it basically made all the cards I had give the error "the front of this card is empty. Please run Tools> empty cards”, but in the preview it works fine, in the Card edit tab(I didn't show there unfortunately) the card works fine as well, and EVEN adding a new card with that note type that new card works just flawlessly, but the old cards don't work.

Any idea of what is happening here?

  1. Support Staff 1 Posted by Damien Elmes on 02 Dec, 2019 07:58 PM

    Damien Elmes's Avatar

    Perhaps it's related to the fact that you have negated conditionals.

    https://apps.ankiweb.net/docs/manual.html#conditional-replacement

  2. 2 Posted by Ricardo Magalhã... on 03 Dec, 2019 03:19 PM

    Ricardo Magalhães's Avatar

    Thanks! I finally fixed it <3

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac