• Resolved John

    (@artoftech)


    Hello,

    I’ve made sure to add and remove courses from my wishlist and in my dashboard when I click it returns this error:

    Fatal error: Uncaught DivisionByZeroError: Division by zero in /code/wp-content/plugins/tutor/templates/dashboard/elements/pagination.php:16

    This happens with or without a course in the wishlist.

    Thanks in advance for any help,
    John

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @artoftech,

    Thank you for reaching out and providing details about the issue. To help me troubleshoot the error further, could you please confirm which version of the Tutor LMS plugin and WordPress you are currently using? This information will allow me to identify if the issue is related to a specific version and assist you more effectively.

    Looking forward to your reply.

    Thread Starter John

    (@artoftech)

    Tutor: 2.7.6
    WP: 6.6.2
    PHP: 8.2.25

    Thanks

    Hi @artoftech,

    Thank you for providing the details!

    Since everything seems to be working as expected on my end, I would recommend trying the following troubleshooting steps to help identify the issue:

    • Deactivate Non-Tutor LMS Plugins: Temporarily deactivate all plugins except Tutor LMS and check if the issue persists. This will help determine if there is a conflict with another plugin.
    • Switch Theme: Change the current theme to a default WordPress theme like Twenty Twenty-Three and check again. This will help rule out any potential theme-related conflicts.
    Thread Starter John

    (@artoftech)

    Hi,

    So yes Astra theme is causing issues. I was able to get rid of the error by coding around in templates/dashboard/elements/pagination.php, making sure that the variables were trapped before doing the division by zero on line 16 but it seems even though the $data[‘total_items’] is showing the proper number of courses in the Wishlist, it always returns “No Data Available in this Section” even if non-zero.

    This is unfortunate b/c the team is not going to agree to replacing the Astra theme, but I can’t make a strong argument for getting the Pro version of Tutor if this isn’t fixed…

    Thanks much in advance for your consideration,
    John

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

The topic ‘Dashboard: Wishlist’ is closed to new replies.