[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
Tue Feb 23 16:12:14 CET 2010


Am 23.02.2010, 16:03 Uhr, schrieb Steffen Kamper <ks at dislabs.de>:

> Hi,
>
> this happens if you want to insert content on root (id:0). Try: copy a  
> content element and try to paste it on the root page.
Yes, that's similar, but the message is different:
Attempt to insert record on page '%s' (%s) where this table, %s, is not  
allowed

> Something simular seems to happen, when you have something in clipboard,  
> switch modules, then try to paste in list module - the id seems to get  
> lost.
It appears while inserting new content elements.. that's the mystery.

tcemain does the following check:
> (!$pid && $this->admin) ||  
> $this->doesRecordExist('pages',$pid,($insertTable=='pages'?$this->pMap['new']:$this->pMap['editcontent']))

First part means "you are not admin and write to root level".
Second part "if page record exists and 1) if 'pages' you may create new  
ones 2) if page-content, new content items may be inserted on the $pid  
page"

This clause does NOT match and results in the error message.. but it  
should match.
Seems unlikely that $pid gets 0, so I assume the doesRecordExist() part  
gets wrong.

I just modified the source to get more information on errors..

Steffen




More information about the TYPO3-dev mailing list