(Edited to clarify query: I’d added a collection filter, not directly defining a script per se.)
Some versions back, I created a simple preset which added a collection filter for photos taken during the last week, which worked as desired. Its name still appears in my pulldown collection filters menu. At one point, it started to fail, selecting no images. Now in 5.0, I see that darktable - d lua tells me: 2.2031 LUA ERROR : /home/xxxx/.config/darktable/lua/tools/script_manager.lua:63: attempt to index a function value (local ‘gettext’) when executed. Since I haven’t (at least intentionally) made changes to the preset, I’m guessing that there’s something I need to do to restore its environment. Can anyone offer suggestions? Thanks.