1

I have a problem with Magento's backend. In Configuration, each multiselection field is empty, all options are no longer available. This problem is only in the configuration. Why?

I've already tried cleaning the cache and doing the reindex.

Any solution? Thank you

This is the situation: enter image description here

enter image description here

17
  • Did you try to logout/login ? Have you any error in your log files ?
    – Kozame
    Nov 9, 2017 at 11:26
  • Hi, any error when i try to logout/login...
    – Gabriel91
    Nov 9, 2017 at 11:31
  • have you made any changes recently or installed any extension?
    – Piyush
    Nov 9, 2017 at 11:38
  • By each multiselection do you mean each currency dropdown or other dropdown (under other tabs) as well?
    – Piyush
    Nov 9, 2017 at 11:40
  • I created a new store in "manage store" with the website, store and store view. For store view i edited from database, I did the same procedure I always did. Does the problem depend on this?
    – Gabriel91
    Nov 9, 2017 at 11:46

1 Answer 1

0

I had the same issue and fold this solution

I looked at my file /httpdocs/app/code/core/Mage/Adminhtml/Block/System/Config

and matched it with original version

I was missing this line 463

here's a bigger chunk of the code to see full view the bolded area was missing from my file. I added it from original and it fixed it.

                if ($method) {
                    if ($fieldType == 'multiselect') {
                        $optionArray = $sourceModel->$method();
                    } else {
                        $optionArray = array();
                        foreach ($sourceModel->$method() as $value => $label) {
                            $optionArray[] = array('label' => $label, 'value' => $value);
                        }
                    }
                }
                else {
                    $optionArray = $sourceModel->toOptionArray($fieldType == 'multiselect');
                }
                $field->setValues($optionArray);
            }
        }
    }
    return $this;
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.