Plugin Author
Bob
(@prasunsen)
The page requires login. But even before logging in, I can see a fatal JS error on your page:
Uncaught TypeError: Cannot read properties of null (reading 'tagName')
at Object.placeAt (popup.js:2:15307)
at Object.c (embed.js:2:27753)
at Object.placeAt (popup.js:2:2952)
at Object._setupPopupSignupForm (embed.js:2:130627)
at embed.js:2:130079
at ja (embed.js:2:9126)
at embed.js:2:9384
at ka (embed.js:2:9250)
at ha (embed.js:2:9326)
at e (embed.js:2:10466)
in embed.js
Hi. Thanks for your guidance. I fixed that issue now, but still seeing the error below. Any thoughts?
jquery.min.js:2 jQuery.Deferred exception: Watu is not defined ReferenceError: Watu is not defined
at HTMLDocument.<anonymous> (https://www.flikulti.com/namaste-lesson/handler-basics-1-what-is-a-handler/:584:1)
at e (https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js:2:30038)
at t (https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js:2:30340) undefined
S.Deferred.exceptionHook @ jquery.min.js:2
t @ jquery.min.js:2
setTimeout (async)
(anonymous) @ jquery.min.js:2
c @ jquery.min.js:2
fireWith @ jquery.min.js:2
fire @ jquery.min.js:2
c @ jquery.min.js:2
fireWith @ jquery.min.js:2
ready @ jquery.min.js:2
B @ jquery.min.js:2
jquery.min.js:2 Uncaught ReferenceError: Watu is not defined
at HTMLDocument.<anonymous> ((index):584:1)
at e (jquery.min.js:2:30038)
at t (jquery.min.js:2:30340)
Plugin Author
Bob
(@prasunsen)
You need to put the quiz on a page that we can see. This page requires login, I can’t see it.
How am I meant to resolve this? My website requires a login. That’s not something I can change. I’m using Watu as part of Namaste, and there are no options under Namaste to allow people to access the page as far as I can see. Is there another way of setting it up so you can see it?
Plugin Author
Bob
(@prasunsen)
Just create one public post and place the same quiz shortcode there. The post does not need to appear in the menus.
Ah ok.
I put it here: https://www.flikulti.com/theory/handler-offence-fundamentals/what-is-handling/
It now works, so it looks like an issue when embedded within Namaste lessons. Do you know if there’s anything in particular I need to change to get it working?
Thanks again
Plugin Author
Bob
(@prasunsen)
Have you created a custom template for the namaste lessons? It could be missing wp_head() or wp_footer() calls.
I don’t know what this means. Can you direct me to some documentation please?
Plugin Author
Bob
(@prasunsen)
But is it a custom template? It certainly looks like that because it does not have the normal WP navigation.
The regular WP templates have get_header() and get_footer() calls.
If you don’t call these functions for the sake of not having a regular header and footer, you need at least to call the essential hooks:
wp_head()
and
wp_footer()
This is the documentation for custom post type templates:
https://developer.ww.wp.xz.cn/themes/template-files-section/custom-post-type-template-files/
I tried to have a look at the lesson by signing up in your site with the username bobtest. But I can’t find where to enroll in the course.