0

Im updating pimcore v 6.9.6 to 10.6.3v.

Initially did all the changes to the folder structures manually and executed this command COMPOSER_MEMORY_LIMIT=-1 composer update

While migrating I'm getting below error

[error] Migration Pimcore\Bundle\CoreBundle\Migrations\Version20210107103923 failed during Execution. Error: "Please provide select options as associative array with fields "key" and "value"

In Select.php line 206: Please provide select options as associative array with fields "key" and "value"

enter image description here

I'm using php 8.1 v and mysql 8.0v, composer version is 2.5v. enter image description here

select.php its in vendor folder showing:

public function setOptions(?array $options) {
    if (is_array($options)) {
        $this->options = [];
        
        foreach ($options as $option) { 
            $option = (array)$option;
            
            if (!array_key_exists('key', $option) || !array_key_exists('value', $option)) {
                throw new InvalidArgumentException('Please provide select options as associative array with fields "key" and "value"');
            }
            $this->options[] = $option;
        }
    } else {
        $this->options = null;
    }
    
    return $this;
}

Please help me to resolve this issue

Thejaswini
  • 11
  • 2
  • Can you add a code snippet of the section in Select.php? – Jonathan Jul 25 '23 at 10:26
  • I have added code in above statement.. but i have printed all the option provider data , its all printing expected type of array. Even i debugged removing all the options provider and class definition. Still the same issue exists. – Thejaswini Jul 25 '23 at 12:40
  • i have solved this issue, but now i have different issue => Cannot retrieve the container from a non-booted kernel. anyone faced this issue? – Thejaswini Jul 31 '23 at 13:58

0 Answers0