• I updated most of my sites to 3.4.1 today, and immediately noticed extra padding at the top of my PHP/HTML forms — BIG gap. I am using Atahualpa theme, and I updated that too to the latest version, with no effect. Fortunately I had not updated one of my sites to 3.4.1 yet — it was still on 3.3.2 — and it did not exhibit the problem, using virtually identical source as the problem sites. On a hunch I reverted to 3.3.2 and the problem disappeared. The problem did not trace to the style sheets for my theme; indeed, the problem occurred WITHIN a post (page) and seemed to be cued by the <form> tag. I have circumvented the problem by reverting to 3.3.2 on all my sites (in the process of) which necessitated a MySQL DB rebuild, which worked just fine. The lesson I learned is, try it on the test site first, and TEST TEST TEST. I did not see this problem in the recent ones I scanned. Any input appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • OK so I had this happen before with an older version upgrade and this worked:
    function my_function_admin_bar(){ return false; }
    add_filter( ‘show_admin_bar’ , ‘my_function_admin_bar’);

    But that didn’t work for me this time but this did:
    If it’s acting up on your site, open your user profile (Users > Your Profile) and uncheck the ‘Show on Front’ option to make it disappear.

    From http://wordpress.org/support/topic/31-update-causing-28px-top-spacing-in-html-body

    Hope one of those works for you!

    Thread Starter wprhys

    (@wprhys)

    My User Profiles did not offer the “Show on Front” option so there was nothing to uncheck.

    I applied the two suggested lines to functions.php — then reversed the order of appearance of functions.php and plugin.php in wp-settings.php, to avoid “call to undefined function add_filter” and I THINK it may have worked, to reduce the gap by the referred 28px, there are no errors — but my new gap (only preceding html forms) with 3.4.1 is HUGE — 120px at least, maybe 150. It seems to be ONLY cued by the <form> tag; html lines directly above the form appear above the gap. <table> also displays properly, no preceding gap. Atahualpa theme, old and new both do it. So I’m back on 3.3.2 and treading lightly.

    Thread Starter wprhys

    (@wprhys)

    Okay more information as I isolate this bug:

    I updated one site to 3.4.2 and the apparent padding problem reappeared, so I viewed the page source, and what I found is that wordpress somehow inserts a <br /> tag at the end of form hidden input lines,

    <input type="hidden" name="pbidit" value="auxsteam" ><br />

    so several of these at the top of a form shove it down that many lines. The short-term solution is to move those hidden inputs to the end of the form, now pushing the page trailer down instead, the lesser of the evils.

    I started looking into the wordpress files, for the do_action function, soon realizing I am now out of my element. Good luck, anybody!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘form padding bug with 3.4.1’ is closed to new replies.