shabegom / buttons

Buttons in Obsidian
The Unlicense
455 stars 47 forks source link

Error: couldn’t find the specified template, please check again and try later #46

Closed TfTHacker closed 3 years ago

TfTHacker commented 3 years ago

My button stopped working, been working for a week or two and with a update a few days ago stopped. Here is the button:

name Daily Template
type prepend template
action z New DNP
color blue

^button-zg7c

I have this connected to the nuclear reactor cooling system, its important that it works.

shabegom commented 3 years ago

@roamhacker I guess I'll help you.

Some questions.

I feel like it has to do with my logic for finding the templates folder. It goes something like:

  1. does the user have Core Templates enabled?
  2. If Yes, what is the specified Templates folder?
  3. Does the user have Templater installed?
  4. If Yes what is the specified Templates folder?
  5. If neither are enabled show error
  6. If Templates is enabled, use that folder
  7. If Templates isn't enabled but Templater is enabled, use that folder.
  8. If the template can't be found show error

The solution would be to look in both folders for the template in case different folders are being used.

shabegom commented 3 years ago

this should be fixed in the next release

TfTHacker commented 3 years ago

I think these answers cover all the other questions.

TiteiKo commented 3 years ago

Hey there, I have the same issue, despite the v0.4.9 update. I only use Templater, core template is deactivated.

image

When opening obsidian I get the following error. I mention it because I don't get this error when Buttons is disabled. image

Then when clicking the button: image

shabegom commented 3 years ago

@TiteiKo this looks like a different bug than the one above! Will take a look.

shabegom commented 3 years ago

@TiteiKo please let me know of 0.4.10 fixes these errors (and your issue).

TiteiKo commented 3 years ago

Fixed, thank you 👍

AniOhev commented 11 months ago

I have the same can't find template issue in 0.4.19. Can't find the template

fabiannagel commented 7 months ago

+1, I have the same issue. Just using Templater, Core Templates is disabled.