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
ParentChildViewListener error within element groups in news articles #245
Comments
Fixed in eb1183d |
Thank you @aschempp Just testet it... unfortunaltely, now I get another error that is maybe be caused by your recent changes:
I have to make more tests (maybe I have a configuration issue in my test setup) but wanted to let you know already... |
The issue is that integer values are only returned as integers from the database under PDO in PHP 8 and higher. Otherwise they will be returned as strings. |
Quick test: Yes, adding (int) in line 297 of [...]/vendor/terminal42/contao-changelanguage/src/EventListener/DataContainer/MissingLanguageIconListener.php seems to solve the problem for the news. (Didn't test other such SQL returns in the code) |
While trying to use the new "element group" element in a news article, I stumbled across an error that is probably related to the pid check of changelanguage.
Steps to reproduce:
Stack trace:
// Edit 1: The error is about tl_content.pid - that has the ID of the news article where I added the content element, so the relation of the element group to the news article seems to be correct
// Edit 2: Made tests with a new, fresh installation:
Test 1: Just one archive, no second language: Children of element group cannot be edited (same error as above)
Test 2: Added second archive, no second language: same error as above
Test 3: Added second language and third archive, linked to first archiv of first language: same error
Test 4: Added a fourth archive, linked to second archiv of first language: same error
So it doesn't seem to be related to the numbers of archives or installed languages.
Test 5: Deinstalled the changelanguage extension: No error, all element goup children within the news articles in all archives are editable again.
The text was updated successfully, but these errors were encountered: