A list shows "No filter of" and does not load
A [morphic_list] shortcode with a where or order value shows the message "No filter of ... matches this list" in place of entries. Visitors see nothing at all.
Symptoms
- For an administrator, the page shows this text in place of the list:
No filter of <model> matches this list. Turn on "Filter by this field" for: <fields>. - For a visitor who is not an administrator, the list area is empty.
Cause
Morphic builds a query plan for the where and order values of the list. When no plan is found, the list does not load and the message appears in its place. The message names each field in where after "for:".
Morphic builds an index for a field when its Filter by this field option is on.
Fix
If the where field has no index
- Go to Models.
- Open the model named in the message.
- Open the field named after "for:" in the message.
- Turn on Filter by this field.
- Select Done.
- Select Save changes.
- Reload the page with the list.
Still not working?
- If the list still shows the message after the filter is on, the index may still be building. See Lists say Getting this ready, or an index shows Failed.
- To see the same message on your own screen, log in as an administrator. Visitors never see it.
Collect the exact message text and the [morphic_list] shortcode from the page.
Contact us through the contact form with your Morphic version and the exact error text.