Coursepress Pro Error when viewing course

When trying to view a new course we are getting this error: Warning: array_key_exists(): The first argument should be either a string or an integer in /home/martiel/public_html/ on line 374

Also, none of the course elements are displaying when viewed. I have enabled the Support Dashboard.

  • Kasia Swiderska
    • Support nomad

    Hello Martiel,

    I see now. It looks like this only occurs if the unit in published course is set to draft - I checked on the Simple and Snappy Box Pattern course, made the unit live, clicked preview and there was no error and content of unit showed.

    I have reported this as a bug to the developer, hopefully we can get this fixed quickly. As a workaround, make sure the course & unit are set live before previewing, until we get this fixed.

    You can also add the following lines to your wp-config.php which should prevent debug notices appearing on screen & instead write them to a file instead.

    define('WP_DEBUG', true);
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );

    Hope this helps

    kind regards,

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.