Support

Account

Home Forums Bug Reports Upgrade to 5.6 duplicates all text type fields as disabled

Solved

Upgrade to 5.6 duplicates all text type fields as disabled

  • All my text fields has disabled copy below them, see the attached image. Making them unusable.

    I know that the code is correct, because it’s stored in PHP file, so it was not changed.

  • Downgrading to 5.5.14 works. I hope you could find this bug, it’s a show stopper for me. I can’t upgrade my countless sites if this is not found.

  • I did a fresh WordPress installation, same bug.

    To me this is getting critical point, since all sites are updating to latest version slowyly, all sites ceases functioning in a while.

  • What on earth, even the Add Group is affected, see attached screenshot.

  • I found the culprit, if you have a own field e.g. pre 5.6 like this:

    class acf_field_mytheme_identifier extends acf_field_text {
        function __construct()
        {
            // vars
            $this->name = 'mytheme_identifier';
            $this->label = MyTheme::_("Identifier");
            $this->category = 'choice';
            $this->defaults = array(
                'default_value'     => "",
                'maxlength' => '',
                'placeholder' => '',
                'prepend' => '',
                'append' => '',
                'readonly' => true,
                'disabled' => 0,
            );
            acf_field::__construct();
        }

    it must be now

    class acf_field_mytheme_identifier extends acf_field_text {
        function initialize()
             ...
        }

    No construct anumore

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Upgrade to 5.6 duplicates all text type fields as disabled’ is closed to new replies.