Dialogue card exercise not working when upload in wordpress

Hello,

I have created a dialogue cards activity. When I do it with the H5P plug in it works perfectly, but when I load it to my wordpress website it only displays the first card, as if I have only created one dialogue.

Its strange because the other day when I created it was working fine. I have tried to reload the page, to delete the activity from the post and upload it again, but nothing seems to work.

fnoks's picture

I am not quite sure what you are doing - need to you answer a few question:

  1. Are you creating the Dialog Card using H5P on your own WordPress site?
  2. Are you including it in a post using the shortcode? Like this [h5p id="xx"] ?
  3. Do you get any errors in the browser's JavaScript console?

Hi,

I am the person who wrote about the problem with the cards dialogue. Yes Im using H5P on my own WordPress site and yes, Im including it in a code using the shortcode, like the one your wrote.

This is the code I put: 

[h5p id="17"]

Here I uploaded another dialog card exercise which doesn't work (next button doesn't respond, doesn't go to the next card, just shows the first card)

icc's picture

It sounds like some JavaScript might be crashing on your site. Could you check your browser's console for any error messages? Use Ctrl+Shift+J in Chrome to open and then reload the page.

Hi, 

I am using flash cards on my drupal website. I am using it as a test for vocab practice. When I enter an answer lets say "L'automne" it doesnt recognise this as the right answer.  This is the error in the console

js__EfA_93Ji-3jGUt7gA9yatm7EJHFw6SfBUc_eXDDhUjc__f1bMzozyXKcdFhA4c60y1X_3F-EIyHNwewRnrxpXCr4__qrYsw…:813 Uncaught TypeError: i(...).live is not a function(anonymous function) @ js__EfA_93Ji-3jGUt7gA9yatm7EJHFw6SfBUc_eXDDhUjc__f1bMzozyXKcdFhA4c60y1X_3F-EIyHNwewRnrxpXCr4__qrYsw…:813(anonymous function) @ js__EfA_93Ji-3jGUt7gA9yatm7EJHFw6SfBUc_eXDDhUjc__f1bMzozyXKcdFhA4c60y1X_3F-EIyHNwewRnrxpXCr4__qrYsw…:815

js__EfA_93Ji-3jGUt7gA9yatm7EJHFw6SfBUc_eXDDhUjc__f1bMzozyXKcdFhA4c60y1X_3F-EIyHNwewRnrxpXCr4__qrYsw…:724 GET https://XXX.com/en/sites/default/files/h5p/libraries/FontAwesome-4.5/fon... H5P.Dialogcards.C.resizeTextToFitContainer @ js__EfA_93Ji-3jGUt7gA9yatm7EJHFw6SfBUc_eXDDhUjc__f1bMzozyXKcdFhA4c60y1X_3F-EIyHNwewRnrxpXCr4__qrYsw…:724H5P.Dialogcards.C.resizeOverflowingText @ js__EfA_93Ji-3jGUt7gA9yatm7EJHFw6SfBUc_eXDDhUjc__f1bMzozyXKcdFhA4c60y1X_3F-EIyHNwewRnrxpXCr4__qrYsw…:708H5P.Dialogcards.C.updateNavigation @ js__EfA_93Ji-3jGUt7gA9yatm7EJHFw6SfBUc_eXDDhUjc__f1bMzozyXKcdFhA4c60y1X_3F-EIyHNwewRnrxpXCr4__qrYsw…:444H5P.Dialogcards.C.attach @ js__EfA_93Ji-3jGUt7gA9yatm7EJHFw6SfBUc_eXDDhUjc__f1bMzozyXKcdFhA4c60y1X_3F-EIyHNwewRnrxpXCr4__qrYsw…:94H5P.newRunnable @ js___TyqKSkykBloW9zXIAEBgkYLcXISKdtHtubytIT2nJU__H1w7NdANPeVxIsYOSggNeKBiIxwRi22AwplotdGq3FY__qrYsw…:38(anonymous function) @ js___TyqKSkykBloW9zXIAEBgkYLcXISKdtHtubytIT2nJU__H1w7NdANPeVxIsYOSggNeKBiIxwRi22AwplotdGq3FY__qrYsw…:25each @ js___TyqKSkykBloW9zXIAEBgkYLcXISKdtHtubytIT2nJU__H1w7NdANPeVxIsYOSggNeKBiIxwRi22AwplotdGq3FY__qrYsw…:6each @ js___TyqKSkykBloW9zXIAEBgkYLcXISKdtHtubytIT2nJU__H1w7NdANPeVxIsYOSggNeKBiIxwRi22AwplotdGq3FY__qrYsw…:6H5P.init @ js___TyqKSkykBloW9zXIAEBgkYLcXISKdtHtubytIT2nJU__H1w7NdANPeVxIsYOSggNeKBiIxwRi22AwplotdGq3FY__qrYsw…:24(anonymous function) @ js___TyqKSkykBloW9zXIAEBgkYLcXISKdtHtubytIT2nJU__H1w7NdANPeVxIsYOSggNeKBiIxwRi22AwplotdGq3FY__qrYsw…:50c @ js___TyqKSkykBloW9zXIAEBgkYLcXISKdtHtubytIT2nJU__H1w7NdANPeVxIsYOSggNeKBiIxwRi22AwplotdGq3FY__qrYsw…:6fireWith @ js___TyqKSkykBloW9zXIAEBgkYLcXISKdtHtubytIT2nJU__H1w7NdANPeVxIsYOSggNeKBiIxwRi22AwplotdGq3FY__qrYsw…:6ready @ js___TyqKSkykBloW9zXIAEBgkYLcXISKdtHtubytIT2nJU__H1w7NdANPeVxIsYOSggNeKBiIxwRi22AwplotdGq3FY__qrYsw…:6H @ js___TyqKSkykBloW9zXIAEBgkYLcXISKdtHtubytIT2nJU__H1w7NdANPeVxIsYOSggNeKBiIxwRi22AwplotdGq3FY__qrYsw…:6

AND

js__EfA_93Ji-3jGUt7gA9yatm7EJHFw6SfBUc_eXDDhUjc__f1bMzozyXKcdFhA4c60y1X_3F-EIyHNwewRnrxpXCr4__qrYsw…:724 GET https://XXX.com/en/sites/default/files/h5p/libraries/FontAwesome-4.5/fon... H5P.Dialogcards.C.resizeTextToFitContainer @ js__EfA_93Ji-3jGUt7gA9yatm7EJHFw6SfBUc_eXDDhUjc__f1bMzozyXKcdFhA4c60y1X_3F-EIyHNwewRnrxpXCr4__qrYsw…:724H5P.Dialogcards.C.resizeOverflowingText @ js__EfA_93Ji-3jGUt7gA9yatm7EJHFw6SfBUc_eXDDhUjc__f1bMzozyXKcdFhA4c60y1X_3F-EIyHNwewRnrxpXCr4__qrYsw…:708H5P.Dialogcards.C.updateNavigation @ js__EfA_93Ji-3jGUt7gA9yatm7EJHFw6SfBUc_eXDDhUjc__f1bMzozyXKcdFhA4c60y1X_3F-EIyHNwewRnrxpXCr4__qrYsw…:444H5P.Dialogcards.C.attach @ js__EfA_93Ji-3jGUt7gA9yatm7EJHFw6SfBUc_eXDDhUjc__f1bMzozyXKcdFhA4c60y1X_3F-EIyHNwewRnrxpXCr4__qrYsw…:94H5P.newRunnable @ js___TyqKSkykBloW9zXIAEBgkYLcXISKdtHtubytIT2nJU__H1w7NdANPeVxIsYOSggNeKBiIxwRi22AwplotdGq3FY__qrYsw…:38(anonymous function) @ js___TyqKSkykBloW9zXIAEBgkYLcXISKdtHtubytIT2nJU__H1w7NdANPeVxIsYOSggNeKBiIxwRi22AwplotdGq3FY__qrYsw…:25each @ js___TyqKSkykBloW9zXIAEBgkYLcXISKdtHtubytIT2nJU__H1w7NdANPeVxIsYOSggNeKBiIxwRi22AwplotdGq3FY__qrYsw…:6each @ js___TyqKSkykBloW9zXIAEBgkYLcXISKdtHtubytIT2nJU__H1w7NdANPeVxIsYOSggNeKBiIxwRi22AwplotdGq3FY__qrYsw…:6H5P.init @ js___TyqKSkykBloW9zXIAEBgkYLcXISKdtHtubytIT2nJU__H1w7NdANPeVxIsYOSggNeKBiIxwRi22AwplotdGq3FY__qrYsw…:24(anonymous function) @ js___TyqKSkykBloW9zXIAEBgkYLcXISKdtHtubytIT2nJU__H1w7NdANPeVxIsYOSggNeKBiIxwRi22AwplotdGq3FY__qrYsw…:50c @ js___TyqKSkykBloW9zXIAEBgkYLcXISKdtHtubytIT2nJU__H1w7NdANPeVxIsYOSggNeKBiIxwRi22AwplotdGq3FY__qrYsw…:6fireWith @ js___TyqKSkykBloW9zXIAEBgkYLcXISKdtHtubytIT2nJU__H1w7NdANPeVxIsYOSggNeKBiIxwRi22AwplotdGq3FY__qrYsw…:6ready @ js___TyqKSkykBloW9zXIAEBgkYLcXISKdtHtubytIT2nJU__H1w7NdANPeVxIsYOSggNeKBiIxwRi22AwplotdGq3FY__qrYsw…:6H @ js___TyqKSkykBloW9zXIAEBgkYLcXISKdtHtubytIT2nJU__H1w7NdANPeVxIsYOSggNeKBiIxwRi22AwplotdGq3FY__qrYsw…:6

icc's picture

That's strange, it seems like the error message is coming from Dialog Cards and not Flash Cards. Perhaps you could send us a link or upload the H5P file so we could check it ourselves? You may use the contact form at the bottom of the page.

Hi, Thank you. I sent a link via the contact form. 

icc's picture

Hm, I haven't received the e-mail yet. Perhaps you could try sending it to: fro*****ubel.com ?

Hi,

Ive just uploaded the file using the form at the bottom of this forum.

Its called: 'objetos de clase'

I am a little confused as I am confident I posted an issue on Flash cards however following email links i have ended up here!!! I appologise if i have caused any confussion. 

icc's picture

Sorry for the delayed response. I got your e-mail and check the link. The interactions appear to be working like they should. I just copied the correct answers and pasted them into the flashcards. Have you tried logging out and doing the task? It could be another module crashing JavaScript on the page. Also, try copy&pasting the answer to make sure you have the correct characters.

When I open the console I see one JavaScript error and it seems to be related to the tincanapi_links module. If you disable the JavaScript Aggregation it will be easier to tell which component the error is coming from.

Great widget!

I have a similar problem concerning the dialogue cards. They all work fine except one on page: https://www.discussearth.com/sample/sample-reading/sample-reading-basic-...

On my smartphone they work if i press hard but on a pc they don't work at all.

Any ideas?

Simon

Great widget!

I have a problem concerning the dialogue cards. They all work fine except one on page: https://www.discussearth.com/sample/sample-reading/sample-reading-basic-...

On my smartphone they work if i press hard but on a pc they don't work at all.

Any ideas?

Simon

icc's picture

There seems to be a bug when you add certain content types after Dialog Cards on the same page. I've created an issue for sorting it out here: HFP-848.

Thanks for sharing!

Thanks for the prompt reply. Does that mean I would be best to make the cards again and follow your advice?

icc's picture

No, just don't embed them before any other content types on a page.

They work before text but other h5p content causes them to break.

 

I have learnt my lesson. If there is a border between content, does that help? I really want to have the cards followed by a h5p activity.

 

Simon

icc's picture

No, it won't work until the bug has been fixed and released.

The dialogue cards are very nice.

Please, may I know when the bug will be fixed and released. Thanks

fnoks's picture

We are soon about to do a new release. Hopefully this or the next week.

Thanks a lot