Pittsburgh-NEH-Institute / pr-app

eXist-db app development
MIT License
3 stars 1 forks source link

Search functionality throws an XML error[BUG] #65

Closed MedievalMatt closed 2 years ago

MedievalMatt commented 2 years ago

Expected behavior

The search page will open up and properly display

Actual behavior

An XML error message is dumped to the page, stating:

/db/apps/pr-app/modules/search.xql err:XPTY0004 Invalid cardinality for variable $incipit. Expected exactly one, got empty [at line 197, column 14, source: /db/apps/pr-app/modules/search.xql]

Reproduction steps

Install the Ghost repository to the exist page via exist. open your local installation Attempt to open the search page.

Please provide the following

MasonGobat commented 2 years ago

@MedievalMatt Do you have eXist-db installed as a service?

If so, I find that uninstalling it as a service and manually launching fixes this issue

djbpitt commented 2 years ago

@MedievalMatt When you have a moment (okay, two moments), can you please try the strategy suggested above by @MasonGobat and let us know whether it helps?

MedievalMatt commented 2 years ago

HI, that resolves the issue so long as exist doesn't run as a service. Thanks!