Closed ul8 closed 3 years ago
Getting the same.
Getting the same.
@green17 I'm curious—are you also using PostgreSQL?
@benjaminkohl no sorry MYSQL. It was a fresh install of the plugin, and the first click on CPFilters menu item throws an exception.
`yii\base\InvalidConfigException: Invalid typeId param value in /var/www/clients/client1/web/48/web/vendor/craftcms/cms/src/elements/db/EntryQuery.php:922 Stack trace:
The default config file sets all the filterable group ID settings to a string of '*'. Can you both create a cpfilters.php config file in your Craft config folder and set settings to the following and let me know if the plugin starts working for you?
Alternatively, you can replace each null value with an array of integer IDs.
<?php
return [
// IDs of entry types that should be filterable using this tool.
'filterableEntryTypeIds' => null,
// IDs of asset volumes that should be filterable.
'filterableAssetVolumeIds' => null,
// IDs of category groups that should be filterable.
'filterableCategoryGroupIds' => null,
// IDs of tag groups that should be filterable.
'filterableTagGroupIds' => null,
// Additional field types that can be used as filter criteria.
'additionalFieldTypes' => [],
];
@benjaminkohl That fixed it for me, thanks!
Hi, @green17, can you also try the fix I proposed in this comment? I am wondering if maybe some versions of MySQL might also be a concern with the syntax that was used as the default config values.
Did you get this to work, @green17 ?
The cpfilters.php config file works fixes it for me. Thanks!
This issue was fixed with the release of version 1.1.1
After a fresh install of the plugin, first click on CPFilters menu item throws an exception.
My setup:
PHP version | 7.4.6 Linux 4.19.76-linuxkit PostgreSQL 11.6 Craft Pro 3.5.8