View Single Post
Old 02-15-2022, 11:16 AM   #344
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Question: What does
Duplicate user function name icons_fanfic. Change the name or ensure that the functions are identical
mean?

It showed up in another template after modifying the icons_fanfic() to add some new items, but went away when I restarted Calibre.

EDIT: It hasn't recurred since, so I think it might've been a one-time glitch.
For completeness, the message means that you created a user-defined template function (in python) with a name that matches an existing function but with different code. The problem is detected when the function is registered -- made available to the template language. The change could happen any time before that. I don't know how to make the error happen.
chaley is offline   Reply With Quote