# Problem with queries after upgrading (or not)

**URL:** https://community.silverbullet.md/t/problem-with-queries-after-upgrading-or-not/4407
**Category:** General
**Created:** [September 27, 2026, 7:04pm UTC](https://community.silverbullet.md/t/problem-with-queries-after-upgrading-or-not/4407 "2026-09-27T19:04:35Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![josemanu72](https://community.silverbullet.md/letter_avatar_proxy/v4/letter/j/d26b3c/32.png) [@josemanu72](https://community.silverbullet.md/u/josemanu72)
#### Post date: [September 27, 2026, 7:04pm UTC](https://community.silverbullet.md/t/problem-with-queries-after-upgrading-or-not/4407/1 "2026-09-27T19:04:35Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![zef](https://community.silverbullet.md/user_avatar/community.silverbullet.md/zef/32/7_2.png) [@zef](https://community.silverbullet.md/u/zef)
#### Post date: [September 28, 2026, 6:19am UTC](https://community.silverbullet.md/t/problem-with-queries-after-upgrading-or-not/4407/2 "2026-09-28T06:19:41Z")

</div>

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.
