-
-
Notifications
You must be signed in to change notification settings - Fork 38
Argument #2 ($metadata) must be of type Contao\CoreBundle\Filesystem\ExtraMetadata, array given #370
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
Comments
This is a breaking change in the recent Contao version (note: the VFS is marked as experimental thus breaking changes are ok here). NC hasn't been updated yet to adjust its own implementation accordingly. |
I have the same problem at Contao 5.3. |
I can also confirm this under Contao 5.3 |
I was on vacation. I will tackle this issue as soon as there is a possibility for me to tackle it. Currently, there is no Contao 4.13 release with the adjusted VFS interface so there's no way for me to be compatible with both, 4.13 and the latest changes in 5.3 and 5.4. This has to be fixed in 4.13 first (and a relase has to be published). Until then, I'm afraid but you'll have to downgrade to 5.4.3 or 5.3.15. |
I've found a solution anyway and released 2.1.1. I have adjusted the requirements in the |
First of all: Thank you so much for the fix :) @Toflar is the problem also fixed for the pro version? As fat as I can see for the Pro-Version NC is fixed to "terminal42/notification_center": "^2.0" so would not get the 2.1.1. Is that right? |
|
Thanks Toflar! |
Folgenden Fehler erhalte ich:
Der Aufruf kommt aus folgendem Abschnitt:
store() wiederum enthält in der entscheidenden Passage:
setExtraMetadata erwartet jedoch tatsächlich als zweiten Parameter keinen Array:
Ich bin gerade ein bisschen ratlos wo ich ansetzen könnte. Aktuell bin ich dabei meine Erweiterung von Contao 4.13 auf 5.4 umzustellen und bin bei diesem Upgrade auf das Verhalten gestoßen.
Versionen: PHP 8.3
Contao 5.4.4
Notification Center Pro: 1.0.3
The text was updated successfully, but these errors were encountered: