• Resolved Boris

    (@ispacecrusader)


    Hi,
    I’m a long time user of CC, thank you for the great plugin!
    I made a staging site to test updating CC to 3.x, as I ran into problems:
    I am trying to recreate the widgets as Gutenberg widgets, but I cannot enter the categories to include in the widget. I’ve tried ID’s, slugs, but I just cannot enter anything into the field.
    The most likely cause would be an issue with the theme or a plugin conflict, so I switched to Astra basic theme, and disabled all plugins except CC. But I still cannot enter any information into these fields:
    – exclude/include these categories/terms (input slugs separated by commas)
    – Auto-expand these categories (input slugs, separated by commas):
    All other fields are fine.

    When I check the console, I get no errors, until I try to paste something into the exclude/include categories field:

    react-dom.min.js?ver=18.2.0:10 Uncaught ReferenceError: setAttributes is not defined
        at onChange (index.js?ver=7b223f52821a68ea0547:1:7694)
        at onChange (components.min.js?ver=bf6e0ec3089253604b52:39:2974)
        at Object.Xa (react-dom.min.js?ver=18.2.0:10:105903)
        at B (react-dom.min.js?ver=18.2.0:10:10501)
        at react-dom.min.js?ver=18.2.0:10:23221
        at $e (react-dom.min.js?ver=18.2.0:10:23315)
        at qe (react-dom.min.js?ver=18.2.0:10:23729)
        at react-dom.min.js?ver=18.2.0:10:29090
        at fl (react-dom.min.js?ver=18.2.0:10:85874)
        at V (react-dom.min.js?ver=18.2.0:10:9856)

    I tested in both Firefox and Chrome on Windows, with all browser add-ons disabled.
    There are also no errors or warnings with WP Debug enabled.

    I’m at a loss at what is going wrong here. I see I’m not the only one (https://www.ads-software.com/support/topic/exclude-categories-doesnt-works/), but I posted it separately, with extensive troubleshooting information, hoping that might help you. Is it a bug?

Viewing 15 replies - 16 through 30 (of 33 total)
  • Plugin Author robfelty

    (@robfelty)

    I released 3.0.5 a couple hours ago.

    I made a mistake the last time I released. I accidentally called it version 6.3.1 (the latest WP version). I am not sure if it is going to come up as “new” now or not.

    Thread Starter Boris

    (@ispacecrusader)

    Yes, I noticed, that’s why I wasn’t sure :-).
    Thanks for everything Rob. Very happy that I can keep using your great plugin!!

    Thread Starter Boris

    (@ispacecrusader)

    Hi Rob,
    I’m afraid there’s still an issue there, but it’s probably small.
    If I select expand to show sub categories and posts everything looks fine. But if I select expand to show just sub categories, the UL seems to be closed prematurely, immediately after the first category that has no sub categories.
    See screenshots here (sub cats & posts) and here (just sub cats)

    Plugin Author robfelty

    (@robfelty)

    Thanks Boris. I am not able to reproduce that on my own site. Could you send me the html source code, or a link to the site?

    Thread Starter Boris

    (@ispacecrusader)

    Hi Rob,
    yes, here is the link: link-to-issue

    You see the problem in the blue sidebar:
    the bottom 2 menu items drop outside of the UL

    Plugin Author robfelty

    (@robfelty)

    I understand the issue now better Boris, but I haven’t found a solution yet. It will probably be next week before I can really focus on it.

    Plugin Author robfelty

    (@robfelty)

    Okay. I think I fixed it. I updated the development version to 3.0.6. Can you give it a try?

    Thread Starter Boris

    (@ispacecrusader)

    Hi Rob,
    I tried testing 3.0.6 by changing the sidebar widget to “expanding shows Just sub-categories”. It appears to save, but upon refresh of the widgets page in wp-admin, the change has not been saved. So I am unable to test.
    I reverted back to 3.0.5, but unfortunately, more issues arise there as well:
    – I cannot save a change made to the widget. saving changes to non-CC widgets is no problem.
    – the sidebar CC widget is set to show sub-categories & posts, but the issue with the UL closing is now present with the setting sub-categories & posts as well.
    EDIT: I’ve managed to resolve these last two issues by deleting the widget, and recreating it.

    • This reply was modified 1 year, 1 month ago by Boris.
    Plugin Author robfelty

    (@robfelty)

    Thanks for testing. Sorry you are still having issues. I am not sure how I can help further though if you are using 3.0.5. Could you try 3.0.6 one more time so I could debug a bit more?

    Thread Starter Boris

    (@ispacecrusader)

    Hi Rob,
    yes, I can do that. But it’s a live site, not suited for all this testing. I’ve set up a test site where we can further test without restrictions:
    https://cc.apotheekwza.nl
    the frontend access password is: collapscat-test

    Plugin Author robfelty

    (@robfelty)

    Thanks for setting up the test site. I took a look, and I don’t quite understand what is wrong. It looks like it is working okay to me. I notice that the last two items in the sidebar are added not from collapsing categories but through a navigation menu. Could you explain the problem one more time?

    Thread Starter Boris

    (@ispacecrusader)

    Hi Rob,
    that’s my mistake. It was set to “show sub-categories & posts”. I’ve now set it to “Just sub-categories”, which is the intended setting. As you can see now, things are not looking good:
    – The UL (which should include everything from Afleveren & Bewaren through to Wilhelmina ApotheeK) is closed after “Digitale Formulieren/Klacht Melden”, which is the first LI-item without any sub-categories.
    – This causes the items after that to not load the proper CSS because they are orphan LI-items.
    – This also causes the last two items in the sidebar (which indeed are not part of the CC widget, but separate links) to drop out of the sidebar entirely, onto the content (not technically, but visually).

    Can you see the issue now?

    Plugin Author robfelty

    (@robfelty)

    Now I see the issue again. I will try to figure it out.

    Plugin Author robfelty

    (@robfelty)

    I think I might have it. Can you try the development version again. It is 3.0.7 now. I still have not been able to replicate the issue on my personal site, which makes it difficult to debug.

    Thread Starter Boris

    (@ispacecrusader)

    Hi Rob,
    I did some testing, it looks very good now! The CSS is still a bit messy, but I’ve already fixed that up on the live site. Thank you very much for your efforts! The only thing I noticed is that not the accordion style doesn’t always kick in when you shift between parent and child categories. But for me that is not very important.

Viewing 15 replies - 16 through 30 (of 33 total)
  • The topic ‘Cannot include categories in Gutenberg widget’ is closed to new replies.