- This topic has 5 replies, 2 voices, and was last updated 1 year, 11 months ago by David.
-
AuthorPosts
-
April 19, 2022 at 5:48 am #2193354ellaj
Hi!
If I’m logged in, the course page is fine. When logged out, the Course page does not look as it should and there is a Critical Error message where the Course Content should be.
Site shared in private info.
Debug file shows GP errors.
Thanks!April 19, 2022 at 6:17 am #2193373DavidStaffCustomer SupportHi there,
so the debug log is 90% related to the backup buddy plugin:
PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/xxxx/xxxx/wp-content/plugins/backupbuddy/pluginbuddy/_pluginbuddy.php
and probably 10% related to the learndash-retake-course plugin (?)
PHP Notice: Trying to get property 'ID' of non-object in /home/xxxx/xxxx/wp-content/plugins/learndash-retake-course/src/Frontend/Frontend_Container.php on line 64
Those are just notices, but is something that should be raised with the plugin authors.
The actual error is this:
[19-Apr-2022 10:38:10 UTC] PHP Fatal error: Uncaught Error: Call to undefined function learndash_get_course_price() in /home/xxxx/xxxx/wp-content/plugins/sfwd-lms/includes/settings/settings-billing-functions.php:294 Stack trace: #0 /home/xxxx/xxxx/wp-content/themes/generatepress/learndash/course.php(111): learndash_payment_buttons(Object(WP_Post)) #1 /home/xxxx/xxxx/wp-content/plugins/sfwd-lms/includes/class-ld-cpt-instance.php(454): include('/home/drdaycar/...') #2 /home/xxxx/xxxx/wp-includes/class-wp-hook.php(307): SFWD_CPT_Instance->template_content('<p><img class="...') #3 /home/xxxx/xxxx/wp-includes/plugin.php(189): WP_Hook->apply_filters('<p><img class="...', Array) #4 /home/xxxx/xxxx/wp-includes/post-template.php(253): apply_filters('the_content', '<img class=" wp...') #5 /home/xxxx/xxxx/wp-content/themes/generatepress/content-single.php(73): the_content()
What i don’t get is this:
themes/generatepress/learndash/course.php
Was the Theme edited as, to the best of my knowledge, there are no learndash templates in the theme ?
April 19, 2022 at 7:02 am #2193426ellajI deactivated those to test and still same errors.
Looking at error log, it could be that the errors are coming from the main Learndash core plugin and looks like that version was released not long ago. It’s possible that upgrading to this plugin’s latest version was the trigger for all of this. I’ll ask their support. Thanks for your help!
April 19, 2022 at 7:15 am #2193438DavidStaffCustomer SupportIt could be the big difference between the original and updated versions.
But i still find this:themes/generatepress/learndash/course.php
peculiar.See what LearnDash say and let us know 🙂
April 20, 2022 at 3:45 am #2194548ellajLD support replied that:
The issue is with Legacy template set as Active template in LearnDash > Settings > General.You’ll have to switch the Active template to LearnDash 3.0.
This is an unexpected behavior in the latest version of LearnDash when using the LearnDash Legacy theme. It’s been addressed and is fixed pending a release. The release will be out very soon.
—————-Appreciate your help, David!
April 20, 2022 at 3:48 am #2194552DavidStaffCustomer SupportWell thats great to hear they are working on it – thanks for reporting back, as i am sure it will come up for other users!
-
AuthorPosts
- You must be logged in to reply to this topic.