[OJS 3.2.1.1] Generation of PKP Usage statistics report fails with 500 Http error

Hi @asmecher and @juancure, this problem looks similar to this opened by @marchitelli.
I checked 2 of our journals, finding one with the same problem, and the other starting the download of the csv without problems.
In the one with the problem the URL after the click on the “PKP Usage statistics report” button becomes as below.
I hope this helps.
Best regards
Stefano

“https://riviste.unimi.it/index.php/noema/management/tools/generateReport?metricType[]=ojs%3A%3Acounter&columns[]=assoc_id&columns[]=assoc_type&columns[]=file_type&columns[]=submission_id&columns[]=context_id&columns[]=pkp_section_id&columns[]=city&columns[]=region&columns[]=country_id&columns[]=month&columns[]=metric_type&columns[]=metric&columns[]=assoc_object_id&filters=a%3A1%3A%7Bs%3A10%3A%22context_id%22%3Bs%3A2%3A%2210%22%3B%7D&orderBy=a%3A1%3A%7Bs%3A5%3A%22month%22%3Bs%3A3%3A%22ASC%22%3B%7D”