Project

General

Profile

Actions

Bug #61849

closed

Create new content element drops target page id parameter on the way

Added by Jan Philipp Timme about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-09-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.7
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Apparently, somewhere in between 4.7.11 and 4.7.19, a bug was introduced that causes an error when trying to create a new content element on a page using the button in the docheader-row1 bar.

Using tag TYPO_4-7-19 and a fresh install from the dummy package, i can reproduce this bug.

Steps to reproduce
  1. Log into the backend as admin.
  2. Visit page module.
  3. Pick any page you have access to or create a new one.
  4. Click "Create new content element" button in the very top bar.
  5. Choose "Regular Text element" (any other element should throw the same error)
  6. Enter required data, hit "Save and close document".

You should encounter an error similar to this:

1: Attempt to insert record on page '[root-level]' (0) where this table, tt_content, is not allowed

Debugging hints
As far as my tracking goes, the page id is passed from db_layout.php to ./typo3/sysext/cms/layout/db_new_content_el.php.
But when choosing a content element, the page id parameter passed to alt_doc.php is already zero (0).

I found that the parameters passed to

function onClickInsertRecord($row,$vv,$moveUid,$pid,$sys_lang=0)
in line 93 of db_net_content_el.php are empty or zero, meaning that somewhere in this file, the parameters are dropped.

Actions #1

Updated by Jan Philipp Timme about 10 years ago

  • Project changed from 1933 to TYPO3 Core

I hope this is the correct project for this issue. :)

Actions #2

Updated by Jan Philipp Timme about 10 years ago

Nevermind, i just found out someone already fixed this.

This is a duplicate of #59059 and can be closed.

Actions #3

Updated by Frank Nägler about 10 years ago

  • Status changed from New to Closed
  • Is Regression set to No

closed by author request

Actions

Also available in: Atom PDF