Correct answer disappears in CoursePress Pro

I had several occurrences of an issue where in one of the multiple choice questions the correct answer becomes unchecked (in the unit creation page), and as a consequence, students do no have options to choose from.

The first time it happened, I thought I had been careless and had forgotten to set the correct answer.

For the next unit, I double-checked that all questions have the correct answer, and that in the Preview view, all questions have a list of options to choose from. Saved it afterwards. Still the next day one of the students finds that one question has no options to answer.

The third time I checked, I think, 5 times, and saved the unit as many times, and yet the next day one of the questions is without options.

Of course, human (i.e., my) error is a possibility, but even though I am not the most careful person in the world, I cannot believe that I can make the same mistake 3 times in a row after 5 verifications.

Perhaps something in my workflow causes this?

1) The titles of my questions are “Question 1”, “Question 2”, etc., so different units have questions with the same titles – any possibility that this causes problems?

2) I don’t create questions in draft mode and then switch the unit to “Live”; instead, I create questions in the “Live” mode – this is to work around another bug reported here

Can this or something else cause questions to lose the correct answer?

  • Nastia
    • Ex Staff

    Hello @Andrey, I hope you are doing well today!

    I can’t recreate the same on my end. This is very strange behavior, can’t find any similar record regarding this issue you have.

    Would you please check if the students see an error when they trying to submit the multiple choice correct answer?

    The possible issue that there is a conflict with a plugin. When some plugin is activated or running a specific script, it’s conflicting with CoursePress Pro. Either way we need to find out when and why this behavior happens.

    Please enable debugging. Put the following lines of code in the wp-config.php:

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

    This will store all the errors that may occur in the debug.log log file inside the /wp-content/ directory.

    When this issue will occur again, please let us know and upload the debug.log file here so we could troubleshoot further.

    Have a nice day and take care :slight_smile:

    Cheers,

    Nastia