Title: Coursepress Error parameter 2
Last modified: August 24, 2016

---

# Coursepress Error parameter 2

 *  [viagozo](https://wordpress.org/support/users/dudematters/)
 * (@dudematters)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/coursepress-error-parameter-2/)
 * Hi,
 * We are in the process of testing Coursepress. We would like to buy the Pro version
   but we encounter quite some errors. Aspecially with Multiple Choice questions(
   4 options, no default, mandatory field)
 * **Warning: in_array() expects parameter 2 to be array, string given in \*/wp-
   content/plugins/coursepress/includes/unit-modules/checkbox_input.php on line 
   130**
 * We use the latest version of Coursepress: 1.2.4.5 and have the default Coursepress
   theme installed on a clean version of the latest WordPress and no other plugins
   installed.
 * We have put in a lot of work and units, it all seemed to be working great until
   we were almost finished, so I expect it to be a little issue, but cannot figure
   out what?
 * [https://wordpress.org/plugins/coursepress/](https://wordpress.org/plugins/coursepress/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Bojan Radonic – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support4/)
 * (@wpmudev-support4)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/coursepress-error-parameter-2/#post-5987841)
 * Hey there dudematters,
 * I’ve tested this on my end and I can confirm the warning is only displayed when
   no correct answer is set in multiple choice.
 * I’ve consulted plugin developer on this one and the reason for that is due to
   how the multiple choice works, there has to be at least one answer set as correct
   in order for it to work properly.
 * Hope this helps 🙂
 * Best regards,
    Bojan
 *  Thread Starter [viagozo](https://wordpress.org/support/users/dudematters/)
 * (@dudematters)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/coursepress-error-parameter-2/#post-5987865)
 * Hi Bojan,
 * Thanks for your reply. But how do I define a multiple choice without a default
   answer? Because in our way of testing there is no default or correct answer.
 * Or is there a other way to have this done?
 * Kind regards,
    Dick Impens
 *  Plugin Author [Bojan Radonic – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support4/)
 * (@wpmudev-support4)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/coursepress-error-parameter-2/#post-5987873)
 * Hey there Dick Impens,
 * Unfortunately there is no way to setup that out of box. To use multiple choice
   without default answer would require making modifications to the plugin.
 * Since this is an interesting idea I’ll suggest this as a featured request for
   CoursePress so it might be implemented in future versions.
 * Best regards,
    Bojan
 *  Thread Starter [viagozo](https://wordpress.org/support/users/dudematters/)
 * (@dudematters)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/coursepress-error-parameter-2/#post-5987929)
 * Hi Bojan,
 * Sorry for my late reaction.
 * Would it be possible to get that made custom for us? Can you make me a offer 
   on that? We really need this option. Thanks.
 * Best regards,
    Dick Impens
 *  Plugin Author [Bojan Radonic – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support4/)
 * (@wpmudev-support4)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/coursepress-error-parameter-2/#post-5987932)
 * Hey there Dick Impens,
 * Unfortunately we do not make custom modifications to plugins based on client 
   requests, we have a system on our forum where members are suggesting features
   and when enough interest is shown in such we consider adding those into future
   versions of the plugin.
 * Could you please contact details through our contact form [https://premium.wpmudev.org/contact/](https://premium.wpmudev.org/contact/)
   and we’ll see if there’s anything we can do for you 🙂
 * Select “I have a different question” for your topic and in for subject please
   use “Attn: George Michael”.
 * Also please add link back to this thread for reference.
 * Best regards,
    Bojan

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Coursepress Error parameter 2’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/coursepress_f7e9b6.svg)
 * [CoursePress Learning Management System](https://wordpress.org/plugins/coursepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/coursepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/coursepress/)
 * [Active Topics](https://wordpress.org/support/plugin/coursepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/coursepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/coursepress/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Bojan Radonic – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support4/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/coursepress-error-parameter-2/#post-5987932)
 * Status: not resolved