Hi,
How can I enable the debug log of WordPress in order to send it to you? I don’t know how to do that.
If I disable de plugin I can’t check if it works because the only thing that my site sells is courses. And it was working a few days ago. I tried rolling back the version of Leanrpress tring to find the problem, but I don’t know what else to do.
This is the kind of error I found:
2022-07-04T04:19:57+00:00 CRITICAL Uncaught Error: Call to a member function get_item_link() on bool in /home/andrespr/public_html/wp-content/plugins/learnpress/inc/class-lp-page-controller.php:136
Stack trace:
#0 /home/andrespr/public_html/wp-includes/class-wp-hook.php(309): LP_Page_Controller->post_type_link()
#1 /home/andrespr/public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters()
#2 /home/andrespr/public_html/wp-includes/link-template.php(370): apply_filters()
#3 /home/andrespr/public_html/wp-includes/link-template.php(201): get_post_permalink()
#4 /home/andrespr/public_html/wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php(128): get_permalink()
#5 /home/andrespr/public_html/wp-includes/sitemaps/class-wp-sitemaps.php(208): WP_Sitemaps_Posts->get_url_list()
#6 /home/andrespr/public_html/wp-includes/class-wp-hook.php(307): WP_Sitemaps->render_sitemaps()
#7 /home/andrespr/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#8 /home/andrespr/public_html/wp-includes/plugin.php(476): WP_Hook->do_action()
#9 /home/andrespr/public_html/wp-includes/template-loader.php(13): do_action()
#10 /home/andrespr/public_html/wp-blog-header.php(19): require_once('/home/andrespr/...')
#11 /home/andrespr/public_html/index.php(17): require('/home/andrespr/...')
Can you help us?
Thanks!