Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMS5 Compatibility #73

Open
MLindenhofer opened this issue Oct 19, 2023 · 0 comments
Open

CMS5 Compatibility #73

MLindenhofer opened this issue Oct 19, 2023 · 0 comments

Comments

@MLindenhofer
Copy link

Hi,

I'm trying to get this module compatible for CMS 5.1 but I experiencing an error when I am entering the backend and viewing the SiteTree.

Can someone help me with that? Or better: can you release a version which is compatible with CMS 5.1

Thanks in advance.

Here is the error-message:

[Emergency] Uncaught ArgumentCountError: Too few arguments to function LittleGiant\CatalogManager\Extensions\CategoryPageHierarchyExtension::augmentAllChildrenIncludingDeleted(), 1 passed in /Volumes/projects/myproject/vendor/silverstripe/framework/src/Core/Extension.php on line 140 and exactly 2 expected
GET /admin/pages/treeview
Line 23 in /Volumes/projects/myproject/vendor/littlegiant/silverstripe-catalogmanager/src/Extensions/CategoryPageHierarchyExtension.php

Source
14  */
15 class CategoryPageHierarchyExtension extends DataExtension
16 {
17     private $excludedSiteTreeClassNames = null;
18 
19     /**
20      * @param \SilverStripe\ORM\DataList $stageChildren
21      * @param $context
22      */
23     public function augmentAllChildrenIncludingDeleted(&$stageChildren, &$context)
24     {
25         if ($this->shouldFilter() && $this->owner->hasExtension(HidePageChildrenExtension::class)) {
26             $stageChildren = $stageChildren->exclude('ClassName', $this->getExcludedSiteTreeClassNames());
27         }
28     }
29 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant