billpeet
Forum Replies Created
-
Thanks Brianvu-tp,
I have a temporary fix to the problem – wp-content/learnpress/inc/abstracts/abstract-assets.php, line 63, replaced:
<span style=”font-family: "CaskaydiaCove NF", Consolas, "Courier New", monospace, Consolas, "Courier New", monospace; font-size: 14px; text-wrap-mode: nowrap; color: rgb(239, 176, 128);”>add_action( ‘wp_print_scripts’, array( $this, ‘load_scripts’ ), $priority );</span>
with:
add_action( ‘wp_enqueue_scripts’, array( $this, ‘load_scripts’ ), $priority );
I understand wp_print_scripts is not supposed to be used anymore?
Use wp_enqueue_scripts, not wp_print_styles, to enqueue scripts and styles for the frontend
Can’t seem to attach screenshots, here’s the text of the errors:
Uncaught ReferenceError: lpGlobalSettings is not defined
at itemsProgress (single-curriculum.js?ver=1742945369:315:19)
at HTMLDocument. (single-curriculum.js?ver=1742945369:593:76)Uncaught ReferenceError: lpQuizSettings is not defined
at Module.init (quiz.js?ver=1742945369:3554:3)
at week-1/:1117:14
at Object.doHook (utils.js?ver=1742945369:304:26)
at Object.doAction (utils.js?ver=1742945369:262:17)
at HTMLDocument. (single-curriculum.js?ver=1742945369:1203:11)