Problem with queries after upgrading (or not)

Hi!,

You helped me with this query in order to show pages in a folder:

${query[[
from p = index.subPages("01_PROYECTOS/DIGIDAW26")
where not string.find(string.sub(p.name, #"01_PROYECTOS/DIGIDAW26" + 2), "/")
select templates.pageItem(p)
]]}

But sinde v. 2.11, desktop and web, it doesn't works. It shows this error:

Lua error: null is not an object (evaluating 'e.startsWith')

Please advice.

Nothing much changed here recently, what sometimes helps (beside simply reloading the page) is a one-time Space: Reindex. Wait for that to complete and then reload.