Hi billpeet,
Thank you for your response and for providing the code snippet.
The code you mentioned:
<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>
is not a standard part of the LearnPress core and also has incorrect HTML tags within it. It suggests that your LearnPress installation might have been modified directly.
We recommend the following steps:
- Backup your site: Before making any changes, create a full backup of your website.
- Reinstall LearnPress: Delete your current LearnPress installation and install the latest version from the WordPress repository. This will ensure you have a clean, unmodified version.
- Child Theme Customizations: If you have any custom code, move it to your child theme’s functions.php file or a custom plugin. Avoid modifying the LearnPress core files directly.
- Check for Plugin Conflicts: The errors you’re seeing (“lpGlobalSettings is not defined,” “lpQuizSettings is not defined”) often indicate JavaScript conflicts. Temporarily disable any security or caching plugins to see if the issue persists.
By following these steps, you can rule out any core file modifications and identify potential plugin conflicts.
Best regards,
Brianvu-tp