Coursepress errors on activation

The following error appears after activating the coursepress plugin:

Warning: implode(): Invalid arguments passed in /home/.../public_html/wp-content/themes/kleo/functions.php on line 302

I've deactivated all plugins minus coursepress and the issue continues to appear.

Here's the code from lines 301 - 303 of the functions.php file mentioned:

//custom filters
$css_target = preg_match( '/\skleo-(.*)-nav/', implode( ' ', $item->classes), $matches );
// If this isn't a KLEO menu item, we can stop here

Let me know if any additional info is needed.


Note: I've confirmed that if I switch to a different theme the errors don't appear.

  • Michael Bissett
    • Recruit

    Hey @nusolutions, Michael here! :slight_smile:

    As discussed on the live chat, this'll be something that I'll want to have a closer look at your site for, could you please send in the following via our secure contact form:

    - Mark to my attention, the subject line should contain only: ATTN: Michael Bissett
    - Do not include anything else in the subject line, doing so may delay our response due to how email filtering works.
    - Link back to this thread
    - Include WordPress admin access details (login address, username & password)
    - Include FTP log-in details (hostname, username & password)
    - Include any relevant URLs for your site

    IMPORTANT: Please make sure you select "I have a different question" for your topic, so it doesn't go back to the forums - this and the subject line ensure that it gets assigned to me.

    Thanks a bunch! :slight_smile:

    Kind Regards,

  • Michael Bissett
    • Recruit

    Hey @nusolutions, thanks for your patience here! :slight_smile:

    After digging into this more, it appears that the Kleo theme had an issue with the "Display menu items" option inside of:

    CoursePress Pro -> Settings -> General Settings

    Once I disabled that, the errors went away. :slight_smile:

    Seeing as you already had some of the items it placed in other regions, I took the liberty of creating a "Courses" menu item in your primary menu, with a "My Courses" submenu item.

    Hope this helps! :slight_smile:

    Kind Regards,

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.