Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the existence of a collection optional #4746

Closed
wants to merge 1 commit into from

Conversation

jonassiewertsen
Copy link
Contributor

By using Algolia for our backend, I am constantly running into 500er errors, that the dated() function on null could not be found.

This PR does add more stability in case of not existing collections.

@jasonvarga
Copy link
Member

I don't understand how you are listing an entry with an optional collection.

Are you trying to use the ListedEntry class in some custom code?

@jonassiewertsen
Copy link
Contributor Author

I am not 100% sure to be honest.

The page is a news page with around 3.000 entries so I did not check every single one 😀
It would be my guess that there is at least one entry with a not existing collection or a renamed collection etc ...

@jasonvarga
Copy link
Member

Are you using files or database?

@jonassiewertsen
Copy link
Contributor Author

It's flat file. Statamic default. Nothing custom here.

@jasonvarga
Copy link
Member

Would you be able to open a support request and give us access to the site?
We may be able to find the real problem to what's going on. I don't think this PR is the way to go.

@jasonvarga jasonvarga closed this Nov 16, 2021
@jonassiewertsen
Copy link
Contributor Author

Sure. I'll reach out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants