• Resolved jcbecode

    (@jcbecode)


    Hi,

    currently im facing the following problem on the website of my client:

    The registration form is showing the registration header, the opt in checkbox(gotowebinar_opt_in) and the submit button. But for whatever reason the the form fields (firstname, lastname, email etc.) is missing. After i clear the cache it’s showing the fields again but on the next day the fields are missing again (and now im unable to clear the cache).

    I debugged your code in inc/shortcode-registration.php line 260

    //establishing of transients and ajax request for form fields
    
    $transientNameForm = 'gtw_for_'.current_time( 'd', $gmt = 0 ).'_'.$a['key'];
    
    $getTransientForm = get_transient($transientNameForm);
    
    if ($getTransientForm != false){
    
    $jsondataform = $getTransientForm;
    
    } else {
    
    list($access_token,$organizer_key) = wp_gotowebinar_get_access_and_refresh_token();
    
    $json_feed_form = wp_remote_get( wpgotowebinar_api_base().'/organizers/'.$organizer_key.'/webinars/'.$a['key'].'/registrants/fields', array(
    
    'headers' => array(
    
    'Authorization' => $access_token,
    
    ),));
    
    $jsondataform = json_decode(preg_replace('/("\w+"):(\d+(\.\d+)?)/', '\\1:"\\2"', wp_remote_retrieve_body( $json_feed_form )), true);
    
    set_transient($transientNameForm,$jsondataform, 86400);
    
    }

    When i dump the $getTransientForm it’s giving a json with the following information:
    error code: 429
    message: Rate limit spike arrest

    after i forced your code to go once into the else{} statement and skipping get_transient part, the form worked again.
    Now for the moment $getTransientForm contains the correct fields and the registration is working again.

    Is there any way to resolve this issue?

Viewing 1 replies (of 1 total)
  • Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Hi @jcbecode,

    Instead of using your application, use our application instead. So go to the “General Options” tab in the plugin settings, clear out your consumer key and secret so the 2 fields are blank, save the settings, refresh the page, then click the connect button again and then it should be more reliable.

    Thanks,

Viewing 1 replies (of 1 total)
  • The topic ‘Registration form fields not showing’ is closed to new replies.