Error 500 in categories or series in OMP 3.5.0-3

Describe the issue or problem
After upgrading an OMP instance from 3.3.0-22 to 3.5.0-3, I encountered the following error on a category page or series page on the reader interface:

PHP Fatal error: Uncaught InvalidArgumentException: Order direction must be “asc” or “desc” in omp-3.5.0-3/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php

Steps I took leading up to the issue

  1. Upgrade to OMP 3.5.0-3
  2. Visit the category/series index page in the reader interface in OMP 3.5.0-3

Thank you

I don’t know if this will help anyone, but to fix it, just open all the series and categories and save again, with no change. It’s probably due to some database updates that aren’t made during the upgrade.

Steps to fix the bug

  1. Press > Categories and Press > Series.
  2. Open each category and series one by one and save them. You don’t need to change anything.