'Argument 1 passed to filter_ensure_valid_filter() must be o

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
mrgenie
Posts: 2
Joined: 10 Feb 2017, 22:56

'Argument 1 passed to filter_ensure_valid_filter() must be o

Post by mrgenie »

I get this error message:

'Argument 1 passed to filter_ensure_valid_filter() must be of the type array, null given, called in C:\inetpub\mantisbt\core\filter_api.php on line 942 and defined' in 'C:\inetpub\mantisbt\core\filter_api.php' line 549

with the latest MantisBT 2.1 which I started using today.

With the old 1.3 I don't see this message.

Any ideas?
mrgenie
Posts: 2
Joined: 10 Feb 2017, 22:56

Re: 'Argument 1 passed to filter_ensure_valid_filter() must

Post by mrgenie »

I found the solution myself while going through the error logs.

It turned out, the database upgrade was not successful. After doing it again, still error.
Doing again, still error. After 4th time, successful. No Error.

So this topic can be closed and the solution if anyone faces same error: try upgrading/updating
the database and that's it. Might take a few attempts obviously.
jmelendez
Posts: 1
Joined: 28 Jul 2023, 16:02

Re: 'Argument 1 passed to filter_ensure_valid_filter() must be o

Post by jmelendez »

Good morning, no matter how many times I update the database, the error continues. Has anyone found another way to fix it?
JulesA
Posts: 37
Joined: 11 Feb 2020, 10:01

Re: 'Argument 1 passed to filter_ensure_valid_filter() must be o

Post by JulesA »

@jmelendez, You should try to create your own topic adding context like are you migrating or something etc it's easier to follow / help you.
Post Reply