Support » Plugin: Tutor LMS - eLearning and online course solution » Tutor 1.7.1 – Admin-Ajax.php error while saving modals

  • Resolved carnagev


    I was hired by a client to improve their e-learning website.
    They are running on Tutor LMS and Tutor LMS Pro ( both are version 1.7.1 ).

    When I try to build a Quiz or a Zoom Live Class, the “Save” button just loads and doesn’t save or close the modal.

    In the console, I see the following error message:
    POST /wp-admin/admin-ajax.php 500

    and in the php.error.log I see:
    [12-Oct-2020 18:07:01 UTC] PHP Fatal error: Uncaught Error: Call to a member function format() on bool in /home/dacade595/public_html/wp-content/plugins/tutor-pro/addons/tutor-zoom/classes/Zoom.php:237
    Stack trace:
    #0 /home/dacade595/public_html/wp-includes/class-wp-hook.php(287): TUTOR_ZOOM\Zoom->tutor_zoom_save_meeting(”)
    #1 /home/dacade595/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
    #2 /home/dacade595/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #3 /home/dacade595/public_html/wp-admin/admin-ajax.php(178): do_action(‘wp_ajax_tutor_z…’)
    #4 {main}
    thrown in /home/dacade595/public_html/wp-content/plugins/tutor-pro/addons/tutor-zoom/classes/Zoom.php on line 237

    What I have done/checked:
    – Disabled the theme to the default twenty-twenty;
    – Disabled all plugins except for Tutor and Tutor Pro;
    – Increased both PHP and WP Memory and other limits;
    – All tests from Site Health and Tutor Tools are green;
    – Have Debug true but no errors in wp only in PHP ( above );

    This is very strange, and I cannot seem to be able to find what is causing the problem.
    I would be very grateful if you have seen this before and can help me.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support Sekander Badsha



    The requests to zoom back and forth might get interrupted because of SSL configuration error or not having an SSL certificate. Can you please share the website link? Can you please confirm that you have SSL configured properly?

    There is a button to “Check API Connection”. You can click on that to see if the connection is established properly.

    Thread Starter carnagev


    Hi Sekander,

    Thank you for the quick reply!

    I am not confident to share the website URL here in the public forum but I would love to do it in a private conversation.

    The website indeed has an SSL Certificate configured. I will play a bit with the settings and update if that solves the issue.

    I did click on the “Check API Connection” button and the modal said the connection is OK.

    Still wondering what might be causing this strange behavior.

    Plugin Support Ashfiqur Rahman Anim


    Hello @carnagev

    For having personal communication we suggest to go over the email please. is our website you can join the live chat if you want to. As you have the API connection done correctly. It would be better if you can please come over to email. Hoping to hear from you soon.

    Thank you
    Best Regards

    Thread Starter carnagev


    Hi @anim07 ,

    I saw your reply to my email earlier, and I will continue our communication there.

    Thank you for your support and cooperation!

    Kind regards

    i have a same problem in this case, can you help me support tutor lms ?

    Plugin Support Sekander Badsha


    Hey @rojibfauzi,

    The zoom integration is a Pro version feature, we would appreciate it if you can send us an email with the details of your problem.



    I have The same issue. How did You resolve it?



    Hello @badsha_eee

    This issue caused by wrong Datetime format because Datetime UI Picker return site language format:

    For eg: Website in Spanish Language when you choose Date it look like :

    Line 236 in tutor-pro/addons/tutor-zoom/classes/Zoom.php
    $input_date = \DateTime::createFromFormat('j M, Y h:i A', $start_date.' '.$start_time);

    then something like this:

    $date_string = '15 Ene, 2021 04:45 PM';
    $date_object = DateTime::createFromFormat( 'j M, Y h:i A', $date_string );
    // return false;

    Please check & fix it.



    Line 34 in tutor-pro/addons/tutor-zoom/assets/js/common.js

    $(".tutor_zoom_datepicker").datepicker({dateFormat: 'dd M, yy', minDate: 0});

    I think something like this:

    $(".tutor_zoom_datepicker").datepicker({dateFormat: 'yy-mm-dd', minDate: 0});

    then you also update php code:
    Line 236: class Zoom.php

    $input_date = \DateTime::createFromFormat('Y-m-d h:i A', $start_date.' '.$start_time);
    // return properly date object
    • This reply was modified 8 months ago by vandung93.


    Thanks 😉 Now it works but if I want edit and save without changing the date, the problem is the same. Again I changed the date (then it parse to correct format). Will You fix it in next version?

    @mestarh Change following lines:

    Line 34 in tutor-pro/addons/tutor-zoom/assets/js/common.js
    $(".tutor_zoom_datepicker").datepicker({dateFormat: 'yy-mm-dd', minDate: 0});

    Line 236: class Zoom.php
    $input_date = \DateTime::createFromFormat('Y-m-d h:i A', $start_date.' '.$start_time);

    Line 191: class Zoom.php
    $start_date = $input_date->format('Y-m-d');

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Tutor 1.7.1 – Admin-Ajax.php error while saving modals’ is closed to new replies.