Skipping quiz

MeesterGijs's picture

Hello,

I use H5P in my WPLMS themed website. They created the option to embed the quizzes and use the scores on their certificates. Really cool! Normally I can skip a quiz by clicking VOLGENDE (that means NEXT in Dutch). I have no issues. Expect when I click next in two specific H5P quiz types: h5p-speak-the-words-set or h5p-dictation. THis happens for both me as admin or as member/student. It doesn't happen when I have don the quizzes and want to skip them a next time just to go through them. This is the report when I click F12/inspect and go to console: https://imgur.com/a/F4hGK4V. Any idea what it could be? I embed them as quizzes, should I add them as normal elements? That we the score doesn't count in the end, but perhaps that could be worth a try... Any advice?

Gijs

otacke's picture

Hi Gijs!

I am not familiar with WPLMS and don't know what "skipping a quiz" or embedding as quiz/normal element means in this context or what Dictation would do differently compared to other content types. Do you mind to elaborate/add screen shots?

The error inside the console is most likely not related. Your theme (I suppose) is just trying to load the favicon for the browser menu bar via "http" instead of "https", and since your page is served using https (securely), it can't load content via http (insecure).

Best,
Oliver

MeesterGijs's picture

Dear Oliver,

I've solved that issue about the favicon, but the issue in the quizzes is still active. I feel like it has to do with the mixed content. The mixed Content issue is a common problem in which the website data (HTML, CSS, and scripts) are loaded on both HTTP and HTTPS connections. This opens up a security loophole that also affects the user experience of the website.

Initially, the data is loaded over HTTPS connection. However, subsequently, a portion of data is loaded over the HTTP connection. For WordPress websites, a common cause of the issue is the presence of hardcoded insecure URL in the databases and files.

I used Really Simple SSL to fix this, but it made my website slow. Are you sure this is not something H5P related?

Gijs

otacke's picture

Hi Gijs!

I am familiar with Cross-Site-Scripting and what browsers do to prevent it, yes.

I can't be sure of anything unless you help me understand what you mean with "skipping" as I wondered - but it's hard to believe that a missing favicon would influence the behavior of an H5P content type :-)

Cheers,

Oliver

MeesterGijs's picture

Hi Oliver,

These replies are great! I feel h5P is alive again :) Thanks.

About the issue. When I click 'volgende' (meaning: next) in the yellow bar it goes wrong when I go from quiz 3 to 4. But when I skip the yellow button and directly click the next quiz (see and of video) it does work. So it has to do with the yellow button. But the people at WPLMS tell me it has to do with H5P. Can you help? video: http://somup.com/cq6r3dfc2m

Gijs

otacke's picture

Hi again!

That yellow button is definitely part of WPLMS, but from what I saw on the video I assume what they were hinting to has to do with resizing the H5P content when they switch from one container to the next. If you're on a page where the content seems to be missing, what happens if you resize the browser window?

Best,

Oliver 

MeesterGijs's picture

Dear Oliver,

Great suggestion. Unfortunatelly, it didn't do much: video

What else could it be?

otacke's picture

Hi MeesterGijs!

You were zooming in and out, not resizing th window ;-) 

Best,

Oliver 

MeesterGijs's picture

I think I did both. Look what I did at the end of the video? What else do you mean? Could you explain, please?

Gijs

otacke's picture

Hiho! 

Sorry, I didn't watch until the end. Doh! But it seems H5P isn't running on that page at all - there's just this security alert. That's probably not related to what I was thinking of. Could you go to the page that's visible in the first video at timecode 0:09 and try resizing the page there? If the content appears, I am pretty sure I know what that is about, but I have no clue for the security alert.

Cheers,

Oliver 

MeesterGijs's picture

Hi,

See the video. It still didn't show the content.

Gijs

otacke's picture

It's still that page with the "security alert". No clue what this might be - you should probably check your server log files for hints.

I was referring to the page that had the yellow bar of WPLMS but the H5P content above wouldn't show. 

MeesterGijs's picture

Dear Oliver,

Have a look at this video. There is audio. I hope this helps.

MeesterGijs's picture

Let me show you this video, there is audio. I hope this helps.

otacke's picture

Hi again!

I don't know WPLMS, and probably neither it nor H5P are to be blamed. I assume it's just a problem working together.

There's actually two things I believe: H5P content not showing and that security error message.

The former is most likely explained by this: https://h5p.org/comment/19435#comment-19435 H5P is missing a resize event to scale the content in height that's e.g. triggered by resizing the window or by pressing the retry button. If I am correct, I assume that this could be fixed by modifying WPLMS (but it would be quite a weird thing to do to add some code just for H5P, and would understand if they wouldn't) or by adding some custom script that triggers the resizing (but you'll have to know WPLMS ans your configuration to write it).

The security error is nothing that you could investigate just by looking at the videos. You should check your server's error logs.

Cheers,

Oliver 

MeesterGijs's picture

Hi,

This is the full error log, immediately after getting the white page:

 

[Thu Oct 24 01:15:13.892470 2019] [lsapi:notice] [pid 25672:tid 139855169779456] [client 145.133.113.122:46418] [host meestergijs.nl] Backend log: WordPress databasefout You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as meta2 \n WHERE meta2.meta_key LIKE '' at line 2 bij query \n SELECT meta2.meta_value as currency\n FROM as meta2 \n WHERE meta2.meta_key LIKE '_currency%'\n GROUP BY meta2.meta_value\n \n gemaakt door require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, bp_template_redirect, do_action('bp_template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, bp_screens, do_action('bp_screens'), WP_Hook->do_action, WP_Hook->apply_filters, wplms_dashboard_template, wplms_dashboard_widget_scripts, get_currencies\n, referer: https://meestergijs.nl/ [Thu Oct 24 06:52:04.131725 2019] [lsapi:notice] [pid 668229:tid 139855111030528] [client 106.215.21.222:51961] [host meestergijs.nl] Backend log: WordPress databasefout You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as meta2 \n WHERE meta2.meta_key LIKE '' at line 2 bij query \n SELECT meta2.meta_value as currency\n FROM as meta2 \n WHERE meta2.meta_key LIKE '_currency%'\n GROUP BY meta2.meta_value\n \n gemaakt door require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, bp_template_redirect, do_action('bp_template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, bp_screens, do_action('bp_screens'), WP_Hook->do_action, WP_Hook->apply_filters, wplms_dashboard_template, wplms_dashboard_widget_scripts, get_currencies\n, referer: https://meestergijs.nl/studenten/kobe/ [Thu Oct 24 07:13:35.837144 2019] [lsapi:notice] [pid 968390:tid 139854914504448] [client 141.138.169.229:58844] [host meestergijs.nl] Backend log: PHP Warning: Creating default object from empty value in /home/deb124449/domains/meestergijs.nl/public_html/wp-admin/includes/plugin-install.php on line 217\n
otacke's picture

That's some database query going wrong, but not within H5P. Whatever might be related to a currency - probably some payment plugin for WordPress?

MeesterGijs's picture

Ok. I use Woocommerce and Woocommerce Memberships and Mollie Payments for Woocommerce. Deactivating them still gave the same error.

Gijs

otacke's picture

I fear I am out of options for helping.

MeesterGijs's picture

That's ok. I now a bit more of the issue. I'll try to resolve this with WPLMS. I really appreciate the time you had for me.

PS: How come I was able to get these quick replies now? I felt the last 1,5 year it was very difficult to get a substant reply. Common reply was: We have read your issue and have send it to our technical team..

Gijs

otacke's picture

I don't know. ¯\_(ツ)_/¯

Hello

otacke's picture

Hei!