Timed LearnPress Quiz Not Working
-
A Timed LearnPress Quiz is Not Working. It just spins and never starts https://prnt.sc/eiYFYUvF-CJC. It does work when Autoptimize is deactivated. Please assist me.
-
First and foremost try to identify what is breaking the quiz by just disabling CSS or JS or HTML or Image optimization (incl. lazyload). Based on that we can see what the next steps need to be ??
frank
The Test worked when I disabled: Optimize JavaScript Code
OK, next questions;
1. what are your javascript optimization settings?
2. when JS optimization is active, what JavaScript errors do you see on the browser console when on the Quiz page?These are my settings https://prnt.sc/y7BBKSCV4QML
Is this what you mean>
[Error] ReferenceError: Can't find variable: wp
Global Code (past-life-regression:3:4037)
[Error] ReferenceError: Can't find variable: wp
(anonymous function) (past-life-regression:6)
Global Code (past-life-regression:8)
[Error] ReferenceError: Can't find variable: wp
Global Code (past-life-regression:8)
[Info] Successfully preconnected to https://fonts.googleapis.com/
[Info] Successfully preconnected to https://fonts.gstatic.com/
[Error] TypeError: undefined is not an object (evaluating 'window.wp.element')
(anonymous function) (question-types.min.js:1:508)
Global Code (question-types.min.js:1:8712)
[Log] JQMIGRATE: Migrate is installed, version 3.4.1 (autoptimize_8c0c6419eddd25e8e27b5ee2251a0314.js, line 5)
[Info] Blocked connection to known tracker https://www.paypal.com/tagmanager/pptm.js?id=www.tryhypnosisnow.com&t=xo&v=5.0.456&source=payments_sdk&client_id=AQhGt9hnbMVk1U3mwIYiCH96h3baQyYov4ySAA15PSBElvSQ9LzcOoKN2nY9--wgWw_91xKiVN_R1FTA&comp=buttons,funding-eligibility,buttons&disableSetCookie=true&vault=false in frame displaying https://www.tryhypnosisnow.com/hypnosis-downloads/courses/past-life-regression-training/quizzes/past-life-regression/ (js, line 3)
[Info] Blocked connection to known tracker https://www.paypal.com/tagmanager/pptm.js?id=www.tryhypnosisnow.com&t=xo&v=5.0.456&source=payments_sdk&client_id=AQhGt9hnbMVk1U3mwIYiCH96h3baQyYov4ySAA15PSBElvSQ9LzcOoKN2nY9--wgWw_91xKiVN_R1FTA&comp=buttons,funding-eligibility,buttons&disableSetCookie=true&vault=false (js, line 3)
[Info] Blocked connection to known tracker https://www.paypal.com/xoplatform/logger/api/logger?disableSetCookie=true in frame displaying https://www.tryhypnosisnow.com/hypnosis-downloads/courses/past-life-regression-training/quizzes/past-life-regression/ (js, line 3)
[Info] Blocked connection to known tracker https://www.paypal.com/xoplatform/logger/api/logger?disableSetCookie=true (js, line 3)
[Error] Resource blocked by content blocker
(anonymous function) (js:3:45985)
n (js:3:13277)
$e (js:3:44363)
(anonymous function) (js:3:17204)
(anonymous function) (js:3:59482)
(anonymous function) (js:3:60851)
(anonymous function) (js:3:17204)
(anonymous function) (js:3:17204)
(anonymous function) (js:3:61136)
[Error] XMLHttpRequest cannot load https://www.paypal.com/xoplatform/logger/api/logger?disableSetCookie=true due to access control checks.
(anonymous function) (js:3:45985)
n (js:3:13277)
$e (js:3:44363)
(anonymous function) (js:3:17204)
(anonymous function) (js:3:59482)
(anonymous function) (js:3:60851)
(anonymous function) (js:3:17204)
(anonymous function) (js:3:17204)
(anonymous function) (js:3:61136)
[Error] Failed to load resource: the server responded with a status of 404 () (items-progress, line 0)
[Error] Unhandled Promise Rejection: [object Object]
(anonymous function) (autoptimize_8c0c6419eddd25e8e27b5ee2251a0314.js:93:6975)
[Error] Failed to load resource: the server responded with a status of 404 () (start-quiz, line 0)
[Error] Unhandled Promise Rejection: [object Object]
(anonymous function) (autoptimize_8c0c6419eddd25e8e27b5ee2251a0314.js:59:3879)OK, can you try unticking the (grayed out) “aggregate JS-files” option?
The quiz is working now with these JS settings https://prnt.sc/lZI9fD8iVS-w
and if you enable “don’t aggregate but defer” + “also defer inline JS”?
The test starts but does not show any questions and shows these errors https://prnt.sc/3vTlNQPofWaN
The settings https://prnt.sc/adAP7LlJfm2e
OK, the best solution (to avoid having to “turn down” JS optimization in general which would impact the performance of all pages) would be to do to the “edit” screen of the page with the Quiz and in the “Autoptimize this page” metabox untick the “Optimise JS?” option.
I cannot locate the metabox to untick the “Optimise JS?” option.
This link will enable you to download/see my screen recording of the page https://www.transfernow.net/dl/Screen-Recording-Autoptimize
on the main AO settings page, near the bottom, there’s a option “Enable configuration per post/ page?”, is that active?
Yes, that was enabled but I do not see it.
It was already enabled when I checked it.
- You must be logged in to reply to this topic.