• Resolved ramonsuarez

    (@ramonsuarez)


    Hi,

    The homepage of my site is crashing. The course is available and the theme displays fine, but as soon as I go to the homepage the site breaks.

    This is the error message:

    Fatal error: Uncaught Error: Call to undefined function learn_press_get_course_rate_total() in /home/coworki9/public_html/courses/wp-content/themes/education-lms/inc/template-tags.php:216 Stack trace: #0 /home/coworki9/public_html/courses/wp-content/themes/education-lms/learnpress/content-course.php(19): education_lms_course_rate_total() #1 /home/coworki9/public_html/courses/wp-includes/template.php(724): require('/home/coworki9/...') #2 /home/coworki9/public_html/courses/wp-content/plugins/learnpress/inc/lp-template-functions.php(2477): load_template('/home/coworki9/...', false) #3 /home/coworki9/public_html/courses/wp-content/plugins/learnpress/templates/content-archive-course.php(55): learn_press_get_template_part('content', 'course') #4 /home/coworki9/public_html/courses/wp-content/plugins/learnpress/inc/lp-template-functions.php(2514): include('/home/coworki9/...') #5 /home/coworki9/public_html/courses/wp-content/plugins/learnpress/inc/class-lp-page-controller.php(480): learn_press_get_template('content-archive...') in /home/coworki9/public_html/courses/wp-content/themes/education-lms/inc/template-tags.php on line 216
    The site is experiencing technical difficulties.

    I’m using the Education LMS theme.

    Thanks for your help!

    • This topic was modified 5 years, 9 months ago by Jan Dembowski. Reason: Formatting

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter ramonsuarez

    (@ramonsuarez)

    The Courses page is set as the homepage and I see that it has an “invalid date” error:

    TypeError:month must be a valid moment object
        at t.default (https://courses.coworkinghandbook.com/wp-includes/js/dist/components.min.js?ver=7.3.2:19:52289)
        at new t (https://courses.coworkinghandbook.com/wp-includes/js/dist/components.min.js?ver=7.3.2:12:99635)
        at Yf (https://courses.coworkinghandbook.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.8.4:67:42)
        at qg (https://courses.coworkinghandbook.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.8.4:92:302)
        at hi (https://courses.coworkinghandbook.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.8.4:104:285)
        at Qg (https://courses.coworkinghandbook.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.8.4:144:217)
        at Rg (https://courses.coworkinghandbook.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.8.4:145:76)
        at Sc (https://courses.coworkinghandbook.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.8.4:158:109)
        at Z (https://courses.coworkinghandbook.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.8.4:156:492)
        at ah (https://courses.coworkinghandbook.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.8.4:159:227)

    I’ve tried correcting it but the Edit window can’t recover it nor change it and when I do it as a quick edit it looks like it was changed but then it reverts to the weird date full of 0.

    Thread Starter ramonsuarez

    (@ramonsuarez)

    I tried fixing this error by deleting the Courses page and creating a new one from the Learnpress>Settings>Courses menu and also from the Settings>Reading WordPress menu, but as soon as I assign them as the course page they break.

    Thread Starter ramonsuarez

    (@ramonsuarez)

    I’ve isolated this as a Theme error. Changing the theme fixes it. Can you please move this ticket to the Education LMS theme?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Homepage crash: Call to undefined function learn_press_get_course_rate_total”’ is closed to new replies.