OpenLab 1.2.1- Group Type pages no longer filter
- This topic has 15 replies, 3 voices, and was last updated 4 years ago by .
- You must be logged in to reply to this topic.
Hello,
Since updating to the latest OpenLab, the group type pages no longer filter portfolios, clubs, courses, and projects.
See Screenshot:
Now when I go https://oneonta.sunycreate.cloud/groups/type/course/ I see a list of all sites, not just courses. Is that a bug or intentional design?
Hi Ed,
I can’t reproduce this on our dev site, but we did make a number of changes to searching and filtering in the latest release. I’ll put in a ticket for the issue.
Best,
Bree
Hi Ed –
Are you running a child theme of openlab-theme? If so, can you say a little about what’s in the theme? It’s possible that your child theme isn’t properly inheriting the changes from CBOX 1.2.0.
The fact that your Courses directory page is (incorrectly) showing checkboxes for group types suggests that something’s broken with CBOX’s internal “is this a search results page?” check. Visit http://wp-admin/admin.php?page=cbox-ol-brand-settings (Dashboard > CBOX OpenLab > Brand Settings). Is there a ‘Search Results’ item on the list? If so, does the ‘Preview’ link go to a valid page?
Hi Boone-
Openlab Theme 1.2.1
Commons in a Box 1.2.1
Wordpress 5.5
PHP 7.3.20
One thing that is slightly unique about my setup is we are using subdomains, which seems to be an outlier of commons in the box sites, but other than that, we haven’t done anything custom. While we have explored the possibility of doing a child theme, right now we are stock OpenLab.
Thanks, Ed. Did you have a chance to check the Brand Settings page for ‘Search Results’? I have a feeling that this is the key to the issue, but I’d like your verification first.
Thanks for confirming, Ed.
I’ll fix this in https://github.com/cuny-academic-commons/commons-in-a-box/issues/282 and release CBOX 1.2.2 with the fix in the next day or so.
In the meantime, I’ve written a small plugin that will fix the problem on existing installations, before CBOX 1.2.2 is ready. https://commonsinabox.org/wp-content/uploads/cboxol-fix-brand-pages.zip Install via Dashboard > Plugins and activate. Visit any Dashboard page (or refresh the Plugins page). The problem should now be fixed, and you can safely deactivate and delete the plugin.
@Boone,
I am also no longer seeing portfolios as a group type in the CBOX Group Type pages. Is this a related issue or something separate?
(See Screenshot)
Ed – Can you confirm whether you were able to resolve the Search Results problem with the plugin above?
The Portfolios issue seems to be unrelated. I see that groups of the type still exist, and the type itself seems to be valid for BP and for CBOX, since I’m able to visit the directory https://oneonta.sunycreate.cloud/groups/type/portfolio/ and I see the ‘Portfolios’ checkbox in the sidebar filters. Can you confirm that the type is appearing properly throughout the front end, and it’s only in Dashboard > CBOX OpenLab > Group Settings > Group Types where you’re not seeing it listed?
Yes, I can confirm that for the portfolio issue the group type still exists, that they are still available and labeled from the front end, and that new users can still create portfolios. I’ve just lost the detailed controls from the CBOX Group Types menu.
As for the other plugin, I installed it, activated it, and that hasn’t changed what I see on the CBOX Brand page.
However, the front end is now working- When I click on courses, I only see courses.
Hi Bree and Boone,
Do you want me to start a separate thread about the portfolios disappearing form the back end? Bree can you see that on your dev site?
Ed
Thanks, Ed. CBOX 1.2.2 fixes this problem.
Here or a new thread is fine for the ‘portfolios’ issue. I don’t have a sense of how this problem would come about, though. I guess one thing to look at is this: When you load CBOX OpenLab > Group Settings > Types, view the page source and look for the CBOXOLAppConfig variable. Maybe dump the value (including the curly brackets but without the trailing semi-colon) into a tool like https://jsonformatter.org/ to make it easier to read. Do you see Portfolios as one of the types? Knowing this would help to narrow down whether the issue is on the server or on the browser side.
Hi Boone does this attachment help?
The only thing that we changed from core OpenLab is that we had renamed the “Club” group type “Organization.” We hadn’t done anything fancy to do this, just using the GUI and tools in OpenLab 1.1. We had done this back before we upgraded to the latest version.
Hi Boone,
The text file from Thursday has the page source. Portfolio is listed in that CBOXOLAppConfig 90+ times doing a simple search.
I attached it as well in case you wanted to see any more details.
Ed