Bug #85832
closedDirect Mail & Uncaught TYPO3 Exception: #1437656456
0%
Description
I get the following Exception if I want to edit the newsletter data of a new intern page newsletter:
Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1437656456: $uid must be positive integer, 0 given (tablename: sys_dmail) | InvalidArgumentException thrown in file .../typo3_src-8.7.17/typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractDatabaseRecordProvider.php in line 42. Requested URL: .../typo3/index.php?route=%2Frecord%2Fedit&token=--AnonymizedToken--&edit[sys_dmail][]=edit&returnUrl=%2Ftypo3%2Findex.php%3FM%3DDirectMailNavFrame_DirectMail%26moduleToken%3Dae42e994cd9572c3cfad3c59af1777b269b2e251%26id%3D262%26CMD%3Dinfo%26sys_dmail_uid%3D%26fetchAtOnce%3D1
I found out, that the check, if the uid is > 0 prevents the error.
So I've added this check to the file:
/typo3/sysext/backend/Classes/Form/FormDataProvider/DatabaseEditRow.php
from row 39 ff.:
if ($result['vanillaUid']>0){
...
}
Updated by Marko Röper-Grewe over 6 years ago
unfortunaly there are a new error after trying to save the data:
1: Attempt to modify record '[Kein Titel]' (sys_dmail:0) without permission. Or non-existing page.
So - there are more to do.
Has anyone else the same problem?
Updated by Benni Mack over 4 years ago
Hey Marko,
you changed the issue to "private" so nobody (except admins like me) can see the issue. Did you do this on purpose? Also: Did you find a solution to your problem?
Updated by Benni Mack about 4 years ago
- Status changed from New to Closed
Closing the issue due to lack of feedback. If you feel otherwise, let me know so I can re-open the issue.