User permanently locked out of Quiz if edited during taking

Xtrobe
Forums
Hi, I came across an error when I tried to view a slideshow midway through. The error log showed this problem: EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7697 of /var/www/includes/common.inc). This only happens if I use a non-administrator account to view this. I also was wondering about the Theory Type of the system, as it says that I'm editing a "question" instead of a slide. Is this correct? To a regular user, this might lead to further confusion... Requesting assistance on the matter. Thanks!
James Aparicio

Hi Xtrobe,

Hi Xtrobe, Regarding the error, what do you mean by midway through? You have a sequence of slides and you get this error when viewing a particular one? Have you changed the content type slide in any way? Regarding the Question string, you can change it at "Structure -> Content type -> Slide -> Manage Fields -> Question". We will add this to our issue queue. Best regards
Xtrobe

Thanks for the reply

Hi James, Yes. The error happens when I switch between slides. In some cases, it generates an error, as mentioned above. No changes were made while I was viewing it. Also, I would like to ask if there is a guide that we could refer to, if we need to integrate this to Active Directory? We've had difficulty integrating this, and it has now reached a point wherein time is running out. Any help would be appreciated. Many thanks in advance.
James Aparicio

Hi Xtrobe,

Hi Xtrobe, Regarding the slides, is the error always changing from slide 1 to 2? Or always on a specific slide? Have you added any wysiwyg filters? Regarding the Active Directory, have you checked https://drupal.org/node/997082? Best regards
axel

Hi

Hi Integration with Active Directory works very nice with Drupal. Don't hesitate to ask your questions on this forum, we will try to help you.
Xtrobe

Hi James,

Hi James, The error occurs when one goes from one slide to another, however, it's not necessarily slide 1 or 2. I believe it's a permission issue of sorts, because this only happens when a student accesses the slide. As for AD, I checked the link out already, however, even this was not enough to help us. We were hoping if you had any other suggestions for links. Thanks!
Xtrobe

Hi Axel,

Hi Axel, Thanks for the offer. I'm trying to encourage people in my office to use this system for their LMS, but one hurdle to overcome is the integration of the AD onto Opigno. We're looking for more info on how to do this, but the links we go to do not provide any clear tutorial that shows the end result. We're not hardcore Drupal developers, so any help would be greatly appreciated.
James Aparicio

Hi Xtrobe,

Hi Xtrobe, But does the error occur always on the same slide? if the slide that is giving you the error is currently on position 3 if you move it to position 2 does the error appear? Is it slide specific? Regarding AD try checking http://www.phpfactory.com/blog/ldap-for-drupal/ Best regards
Xtrobe

Hi James,

Hi James, Sorry, but it's not slide specific. Thanks for the link as well. Best Regards
axel

Concerning AD, you can use

Concerning AD, you can use this module: https://drupal.org/project/ldap_integration

Then you have to parameter your AD server:

  • IP address
  • port (generally 389)
  • Base DN(s) where users are located in the AD tree
  • Generally UserName attribute is for AD: sAMAccountName (please take care of capital letters)
  • Email attribute is generally: mail
  • You will also need to create in AD an account (without special rights) to enter in Drupal LDAP module (DN for non-anonymous search / Password for non-anonymous search, in "advanced configuration"), that will make possible to browse the AD

I hope it will help. It should work easily. Then you have a lot a parameters to synchronise attributes (name, office, phone, etc...) from the AD to Drupal.

Just post messages if you need further help.

Xtrobe

Thank you, Axel. We're

Thank you, Axel. We're currently using that, but we're still unsuccessful in configuring this. Whenever we try authenticating, we get rejected by the server. We're not sure exactly what's supposed to happen, should we successfully get this installed. Should the pool of users increase automatically? Should the users be able to log in without their password? We're not sure what indicators are needed to get this running successfully.
axel

What happens when you click

What happens when you click on the "test" button in the server parameters, in "advanced configuration" ? If the synchronisation is activated the pool of users should automatically increase. Users will still have to enter their password that will be the same as the one in AD. To allow connections without password (and automatically get the user data from the Windows session you will have to use a Kerberos authentication and to make some configurations on each user computer.
Xtrobe

Thank you, Axel, for your

Thank you, Axel, for your help. We'll try your instructions out. Our only problem is that we don't want to risk crippling the entire company because of this, and so, we're trying to be as careful as possible in configuring this. Thank you once again!
admin

Don't worry, there is no risk

Don't worry, there is no risk, this is read only. The AD account you have to provide to Drupal has no need to have privileges (and should not for security reasons).
Xtrobe

Error has returned

Hi, It seems that the error that happens in the slides occurs when the owner of the slides adds a new slide, and then takes it once again. The error message: EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7721 of /var/www/includes/common.inc). How does one correct this?
James Aparicio

Hi Xtrobe,

Hi Xtrobe, What Opigno version are you using? Best regards
Xtrobe

Hi James, It's 1.4

Hi James, It's 1.4
James Aparicio

Hi Xtrobe,

Hi Xtrobe, This is normal if in a window you are doing the quiz and in another one, you are editing the quiz. All the in progress attempts are deleted once the quiz is changed. Best regards
Xtrobe

Ok. Thanks!

Ok. Thanks!
Xtrobe

Hi James,

Hi James, During my presentation and demo last night, I came across this problem again. Although I understand that this is an error that is natural, my concern is that the user was unable to access the slides, even if she started from the beginning after her editing. 1) is there a better way to catch errors on the system? it would be helpful if the user (not a technically-inclined person) is able to get out of the system without being jarred by white screen error messages. 2) how does one undo and reset access to a set of slides when these errors are encountered? I tried removing the record to access the slides once again, but this time, it didn't work.
wadmiraal

Hi Xtrobe.

Hi Xtrobe. You are absolutely right, this is awful from a end-user experience. I've opened a critical issue [here](https://drupal.org/node/2185189). You can track our progress over there, if you wish. We'll look into this ASAP. We will hopefully get this fix into Opigno 1.5, which will be released soon.
wadmiraal

[Updated topic title]

[Updated topic title]
Xtrobe

Thanks, Wadmiraal, for noting

Thanks, Wadmiraal, for noting the concern. If I may suggest: maybe it's a good idea if the lesson is locked from further editing, if users have already taken the test? This might be a simple solution to consider. Also, if the administrator needs to create an updated version of the lesson, he/she might be able to refer to the previous lesson?
Xtrobe

Hi Wadmiraal,

Hi Wadmiraal, May I know where the session for the lessons are being stored within the database? While waiting for the corrections in 1.5, I need a fallback that would enable me to purge records brought about by this error. Thanks!
wadmiraal

Hi Xtrobe.

Hi Xtrobe. That is a good suggestion, I will look into it as well. There is a sessions table in the database, containing all the data. I'm not sure it will solve the issue, though. It was just a hunch. I haven't had the time to look into the issue yet. The launch of our SaaS program last week took all of my time. We're planning the Opigno 1.5 release this week, and I will get a fix for this problem in.