• Since upgrading to 2.0, its full of PHP Fatal Errors when using it with Easy Digital Downloads.

    I even created a demo site and asked support to login and see for them themselves. They did change some code but it still isn’t working.

Viewing 11 replies - 1 through 11 (of 11 total)
  • I’m new to Tutor LMS and still setting up my site, but I upgraded to 2.0 yesterday and am having the same issues with Easy Digital Downloads incompatibilities.

    Any page with a ‘tutor_course’ shortcode on it won’t render properly, and course lists will just buffer endlessly if the courses have prices associated with them. i.e., the courses only display if they’re free or if monitisation is disabled, which isn’t very useful.

    I enabled debugging on my site and got this response (not sure if this is over-sharing):

    Notice: Undefined variable: product in /home/my-domain/my-subdomain/wp-content/plugins/tutor/templates/loop/course-price-edd.php on line 32
    
    Fatal error: Uncaught Error: Call to a member function get_price_html() on null in /home/my-domain/my-subdomain/wp-content/plugins/tutor/templates/loop/course-price-edd.php:32 Stack trace: #0 /home/my-domain/my-subdomain/wp-content/plugins/tutor/includes/tutor-template-functions.php(115): include() #1 /home/my-domain/my-subdomain/wp-content/plugins/tutor/includes/tutor-template-functions.php(502): tutor_load_template('loop.course-pri...') #2 /home/my-domain/my-subdomain/wp-content/plugins/tutor/templates/loop/footer.php(15): tutor_course_loop_price() #3 /home/my-domain/my-subdomain/wp-content/plugins/tutor/includes/tutor-template-functions.php(115): include('/home/my-domain/...') #4 /home/my-domain/my-subdomain/wp-content/plugins/tutor/includes/tutor-template-functions.php(253): tutor_load_template('loop.footer') #5 /home/my-domain/my-subdomain/wp-includes/class-wp-hook.php(307): tutor_course_loop_footer('') #6 /home/my-domain/my-subdomain in /home/my-domain/my-subdomain/wp-content/plugins/tutor/templates/loop/course-price-edd.php on line 32

    If I have multiple prices set for a course the above alert indicates that the problem is on line 49 of course-price-edd.php, otherwise it shows up on line 32 for single priced courses.

    The errors occur regardless of whether there are unlimited or fixed participant numbers in a course.

    Otherwise the update to 2.0 is looking pretty nice!

    Any help appreciated.

    Dear @jkyl5 @ianbarber

    I am very sorry for the issue, you need edit this file wp-content/plugins/tutor/templates/loop/course-price-edd.php

    Please delete all the code from this file and then copy and paste this code.

    https://gist.githubusercontent.com/wprashed/6b2b03fbef90f6d87dd42df5b8de748c/raw/1da79e9e46db7e6d21becb0f4263f156d2e63e25/course-price-edd.php

    Thread Starter ianbarber

    (@ianbarber)

    Adding the suggested code doesnt appear to fix the issue, we now see 2 buttons

    Thanks Rashan!

    That appears to have resolved the issue I was experiencing.

    PS Sorry for hijacking your thread, Ian. I hope you can get further help here.

    Thread Starter ianbarber

    (@ianbarber)

    @jkyl5 can you please confirm the buttons are working because the code Rashan showed doesnt work on my website

    Hi Ian, yes, the buttons are working for me.

    I have two prices available on my courses and I can select either radio button. Then the purchase (or enroll) button takes me to the checkout page, as it should.

    My site is still in development, but it is working as it was before I upgraded to Tutor LMS 2.0.

    Thread Starter ianbarber

    (@ianbarber)

    @jkyl5 If you are using EDD like me then I must be doing something wrong.
    Is your website online anywhere so I can see it.

    I cant seem to send a screenshot on here of what mine looks like

    A further thought, if you put your site into ‘debug’ mode you might discover that your site has a different error from the one that I had.

    i.e., if the fatal error you get is different from the one that I got then post it here, and the plugin support staff might be able to tailor a solution for you.

    Ah, sorry. Our posts crossed paths and I missed your last one. Unfortunately my site isn’t online, but yes I am using EDD. I’m also using Tutorstarter as my theme.

    Thread Starter ianbarber

    (@ianbarber)

    When creating your courses, do you have this setting on or off

    “Make This Course Public. No enrollment required.”

    I keep that setting off (as in, the course is not public) as all courses on my site are paid.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Tutor LMS 2.0 Fatal Errors’ is closed to new replies.