“katex is not defined” only in custom post type
-
Hi Thomas,
Thank you for the plugin and especially the Gutenberg block, it’s really useful :).
I’ve ran into an issue rendering the KaTeX on the frontend. Whenever I post the katex (either through the block or shortcode) on a page or post, it works like magic. When I post it into a custom post type (lessons, from Learndash LMS in this case). The rendered forumulas display for about 100ms before they all change into the error “katex is not defined”.
On this page, I have a missing dependency (
wp-content/plugins/katex/assets/katex-0.10.2/katex.min.js
andwp-content/plugins/katex/assets/katex-0.10.2/katex.min.css
). Even though when I go to that url, the file is working fine.What can I do about this to display the katex?
I also have this PHP error active throughout the whole website.
Use of undefined constant KATEX__OPTION_DEFAULT_ENBABLE_LATEX_SHORTCODE - assumed 'KATEX__OPTION_DEFAULT_ENBABLE_LATEX_SHORTCODE' (this will throw an Error in a future version of PHP in wp-content/plugins/katex/scripts/shortcode.php:24)
- The topic ‘“katex is not defined” only in custom post type’ is closed to new replies.