Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Illegal offset type in isset or empty #7

Closed
zonky2 opened this issue Mar 25, 2020 · 4 comments
Closed

Warning: Illegal offset type in isset or empty #7

zonky2 opened this issue Mar 25, 2020 · 4 comments

Comments

@zonky2
Copy link
Contributor

zonky2 commented Mar 25, 2020

Warning: Illegal offset type in isset or empty

ErrorException:
Warning: Illegal offset type in isset or empty

  at /home/xxx/contao4_2020/vendor/heimrichhannot/contao-multi-column-editor-bundle/src/EventListener/HookListener.php:94
  at HeimrichHannot\MultiColumnEditorBundle\EventListener\HookListener->loadDataContainerHook('tl_files')
     (/home/xxx/contao4_2020/vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaLoader.php:119)
  at Contao\DcaLoader->loadDcaFiles(false)
     (/home/xxx/contao4_2020/vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaLoader.php:70)
  at Contao\DcaLoader->load(false)
     (/home/xxx/contao4_2020/vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:1331)
  at Contao\Controller::loadDataContainer('tl_files')
     (/home/xxx/contao4_2020/vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaExtractor.php:372)
  at Contao\DcaExtractor->createExtract()
  ...
@zonky2
Copy link
Contributor Author

zonky2 commented Mar 25, 2020

fix

        if (!($name = System::getContainer()->get('huh.request')->getPost('name'))) {
            return;
        }

+        if (is_array($name)) {
+            return;
+        }

        if (isset($dca['fields'][$name])) {
            return;
        }

zonky2 added a commit to zonky2/contao-multi-column-editor-bundle that referenced this issue Jun 24, 2020
@zonky2 zonky2 mentioned this issue Jun 24, 2020
@zonky2
Copy link
Contributor Author

zonky2 commented Jun 24, 2020

pls update or fix the repo

@Defcon0
Copy link
Contributor

Defcon0 commented Jun 24, 2020

Thanks, @zonky2 !

Defcon0 added a commit that referenced this issue Jun 24, 2020
@Defcon0
Copy link
Contributor

Defcon0 commented Jun 24, 2020

Merged in v2.5.3

@Defcon0 Defcon0 closed this as completed Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants