Hello,
our site is throwing 500 error when opening /categories_and_latest or /categories pages.
The error detail is
ArgumentError (comparison of Integer with nil failed)
app/models/category_list.rb:235:in `<='
app/models/category_list.rb:235:in `block in sort_unpinned'
app/models/category_list.rb:234:in `each'
app/models/category_list.rb:234:in `sort_unpinned'
app/models/category_list.rb:42:in `initialize'
app/controllers/categories_controller.rb:648:in `new'
app/controllers/categories_controller.rb:648:in `fetch_category_list'
app/controllers/categories_controller.rb:43:in `index'
app/controllers/application_controller.rb:427:in `block in with_resolved_locale'
app/controllers/application_controller.rb:427:in `with_resolved_locale'
The problem cannot be reproduced in version 3.3.3 (production), but it hits the system in version 3.3.4 or 3.4.1 (staging).
Not sure is it a db inconsistency or a bug.
Best regards,
Jan