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

Error Message in TYPO3 v12 #72

Open
morange opened this issue Jun 27, 2023 · 12 comments
Open

Error Message in TYPO3 v12 #72

morange opened this issue Jun 27, 2023 · 12 comments
Labels
question Further information is requested

Comments

@morange
Copy link

morange commented Jun 27, 2023

Hej everyone,
i have installed the extension in an TYPO3 v12 and became this error message:
`(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception

PHP Warning: foreach() argument must be of type array|object, string given in /var/www/html/vendor/typo3/cms-backend/Classes/Form/Container/FlexFormSectionContainer.php line 80
`
DDEV, Apache, MariaDB, PHP 8.2.3
TYPO3 v12.4.2
File Fill 4.3.0

Best greetings
m.orange

@IchHabRecht
Copy link
Owner

IchHabRecht commented Jun 27, 2023

Hi @morange

Would you mind to share your configuration? What exactly are you doing or where do you see this error?

@IchHabRecht IchHabRecht added the question Further information is requested label Jun 27, 2023
@morange
Copy link
Author

morange commented Jun 27, 2023

Hi Nicole,
of course, which information do you need?
I include the ext per composer.

@IchHabRecht
Copy link
Owner

@morange

I need to know what you were doing and where the error occured. Furthermore filefill needs some configuration - either in the backend or using TYPO3_CONF_VARS. It would be good to know what you have done so far.

@morange
Copy link
Author

morange commented Jun 27, 2023

These are my steps:

  1. clone the DB from live to local.
  2. ddev composer req --dev ichhabrecht/filefill
  3. call list module and click into filestorage on top level

My additional.php dosen't have any configuration for filefill.

@IchHabRecht
Copy link
Owner

Thank you for your help. The branch https://github.com/IchHabRecht/filefill/tree/bugfix/typo3-12-4-be-support should fix your problems. Would you mind to test it?

@morange
Copy link
Author

morange commented Jun 27, 2023

Of course and many thanks for your fast help.

I installed your fix, then i try to activate it. After saving the entry i became the following message:
`(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception

PHP Warning: Undefined array key "config" in /var/www/html/vendor/typo3/cms-backend/Classes/Form/Container/FlexFormElementContainer.php line 55`

@MiladinBojic
Copy link

The same here
and this is my configuration
<?xml version="1.0" encoding="utf-8" standalone="yes" ?> <T3FlexForms> <data> <sheet index="sDEF"> <language index="lDEF"> <field index="basePath"> <value index="vDEF">fileadmin/</value> </field> <field index="pathType"> <value index="vDEF">relative</value> </field> <field index="baseUri"> <value index="vDEF"></value> </field> <field index="caseSensitive"> <value index="vDEF">1</value> </field> </language> </sheet> </data> </T3FlexForms>

and tx_filefill_resources
<?xml version="1.0" encoding="utf-8" standalone="yes" ?> <T3FlexForms> <data> <sheet index="sDEF"> <language index="lDEF"> <field index="resources"> <el index="el"> <field index="64ad3f7e51de9377044275"> <value index="placeholder"> <el> <field index="placeholder"> <value index="vDEF">1</value> </field> </el> </value> <value index="_TOGGLE">0</value> </field> </el> </field> </language> </sheet> </data> </T3FlexForms>

@maikusch
Copy link

maikusch commented Aug 22, 2023

Of course and many thanks for your fast help.

I installed your fix, then i try to activate it. After saving the entry i became the following message: `(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception

PHP Warning: Undefined array key "config" in /var/www/html/vendor/typo3/cms-backend/Classes/Form/Container/FlexFormElementContainer.php line 55`

I also tested the branch. Same error occurs on saving any config in backend.

@maikusch
Copy link

maikusch commented Nov 9, 2023

I've created a PR to fix this issue: #76

@morange does this resolve the issue for you?

@lblomenkemper
Copy link

Hey @IchHabRecht, currently one cannot edit any file storages in TYPO3 12 when filefill is installed. Your branch bugfix/typo3-12-4-be-support does not fix that Issue because it is still using the TCEforms key in FlexForm configuration, which got removed in TYPO3 12.

The PR provided by @maikusch removes these usages as described in the Deprecation Note and therefore resolves the Issue. Could I kindly request you to review these changes? If they meet the necessary criteria, merging them would greatly enhance the compatibility of the extension with TYPO3 12. Thank You!

@IchHabRecht
Copy link
Owner

If anyone can test the current state of the branch https://github.com/IchHabRecht/filefill/tree/bugfix/typo3-12-4-be-support I'll be happy to merge and release that update.

@EvilBMP
Copy link

EvilBMP commented Feb 22, 2024

I can confirm, that the current branch does not raise any exception anymore, when editing a file storage record (with enabled filefill + single domain).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants