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

craft.calendarize.upcoming is not working for me #9

Closed
richardwiggins opened this issue Jan 29, 2019 · 3 comments
Closed

craft.calendarize.upcoming is not working for me #9

richardwiggins opened this issue Jan 29, 2019 · 3 comments

Comments

@richardwiggins
Copy link

I'm trying to use your standard method for listing upcoming entries like this; {% set entries = craft.calendarize.upcoming({ section: ['events'] }, 'desc') %} for I'm getting a Twig runtime error:

Calling unknown method: craft\elements\db\CategoryQuery::next()

events is the name of the section I'm attempting to list entries from, just to confirm.

@fvaldes33
Copy link
Contributor

fvaldes33 commented Jan 29, 2019

I can assume that there might be some clashing with field handles during the sorting method. The plugin doesn't / shouldn't interfere with the CategoryQuery at all. Could you supply a copy of your database? If not, just an over view of the fields you are using and how you are using them?

@richardwiggins
Copy link
Author

Hi, you can download a copy of the DB here.

@fvaldes33
Copy link
Contributor

@richardwiggins - Good find. Fixed in the latest commit.

Fixed 85f8a3e

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

No branches or pull requests

2 participants