[TYPO3-dev] Message "Attempt to insert a record on page '[root-level]' (0) from table 'tt_content' without permissions. Or non-existing page."
Steffen Gebert
steffen at steffen-gebert.de
Wed Feb 24 14:24:56 CET 2010
Am 23.02.2010, 16:12 Uhr, schrieb Steffen Gebert
<steffen at steffen-gebert.de>:
> tcemain does the following check:
>> (!$pid && $this->admin) ||
>> $this->doesRecordExist('pages',$pid,($insertTable=='pages'?$this->pMap['new']:$this->pMap['editcontent']))
After digging into this really deep, I found the following out:
It happens only with Internet Explorer, when it shows an error while
opening the TCEform of the new content element:
> HTML Parsing Error: Unable to modif the parent container element before
> the child element is closed (KB927917)
I don't know, why this error happens and it is on some PCs quite well
reproducible (>50%) and on others not at all. But with this PCs, it
happens an all my different T3 installations.
The JS error somehow results in the following hidden form fields being NOT
sent with the POST request:
> <input type="hidden" name="data[tt_content][NEW4b850afcc0cd5][pid]"
> value="33553" />
> <input type="hidden" name="returnUrl"
> value="/typo3/sysext/cms/layout/db_layout.php?id=33553" />
> <input type="hidden" name="viewUrl" value="" /><input type="hidden"
> name="popViewId" value="33553" />
> <input type="hidden" name="closeDoc" value="0" />
> <input type="hidden" name="doSave" value="0" />
> <input type="hidden" name="_serialNumber"
> value="cde8d288d195392242414cde14413732" />
> <input type="hidden" name="_scrollPosition" value="" />
The first one is the pid of the new record, which is essential and causes
the above mentioned check to fail.
For the moment I'll surrender and suggest our users to use another
browser. It seems to be a timing problem, in what order JS is executed (or
before/after DOMready).
This posting is just to document the current state of my research - if
somebody else has this problem and tries to solve it.
Steffen
P.S: Thanks to Steffen Kamper for having an eye on my problem!
More information about the TYPO3-dev
mailing list