Closed Anke closed 1 year ago
In theory you have a misconfigured DCA in your system. You should debug the DCA that is responsible for this.
While debugging I get this message:
[2023-02-06T10:39:39.711795+01:00] request.CRITICAL: Uncaught PHP Exception ErrorException: "Warning: Undefined array key 502" at /xxxxx/vendor/alnv/catalog-manager/library/alnv/CatalogView.php line 710 {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key 502 at /xxxxx/vendor/alnv/catalog-manager/library/alnv/CatalogView.php:710)"} []
@Anke You also use the Catalog Manager, right?
Yes, I'm also using Catalog Manager, which officially is compatible up to Contao 4.9 or so. However I'm getting the haste error deleting any element, not just CM fields. Everything was working fine until I updated the installation from 4.13.13 to 4.13.15 including some extensions, including notification center to 1.7, later downgrading notification center to 1.6 again, which didn't eliminate this new error.
This must be an error in the Catalog Manager then. It appears the Catalog Manager is creating DCA entries with fields that are indexed by integers instead of strings, which is not supported.
Yes, I believe so, too. Using the latest Catalog Manager 1 version and now set PHP down to 7.4 again, which resulted in Haste being downgraded to version 4 - and deleting stuff is possible again. Thank you for your help! @derkosmonaut: I'm closing this issue. I think you ought to place yours in the catalog manager repository.
Hm, getting the same error in Contao 4.13.43 with the notification center and PHP 8.2. Originally NC v1.5 was installed, I tried upgrading in steps up to 2.0 but the frontend only works properly when I deinstall the notification center.
@k-webdesign use the debug mode and post the stack trace.
Hi,
in a Contao 4.13.15 installation including Notification Center 1.7 with Haste 5 and PHP 8.1.14 I'm running into errors whenever deleting anything, e.g. a data field in catalog manager, a Contao template or a content-element.
The error messages are always referring to line 61 in DcaRelationsManager.php saying that "Argument #2 ($fieldName) must be of type string, int given":