Skip to content
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

form.section objects generate an error on the first save in v8 #1400

Closed
pixelplant opened this issue Apr 20, 2017 · 3 comments
Closed

form.section objects generate an error on the first save in v8 #1400

pixelplant opened this issue Apr 20, 2017 · 3 comments

Comments

@pixelplant
Copy link

pixelplant commented Apr 20, 2017

I am using flux:form.section with form.object inside it in a lot of my fluidcontent elements. In TYPO3 v8.7.0, when I save the object for the first time I always get this error:
1: Attempt to insert record on page '[root-level]' (0) where this table, tt_content, is not allowed

Let's take this configuration for example:

<f:section name="Configuration">
	<flux:form id="infos" options="{group: 'Components'}">
		<flux:form.section name="blocks" label="Information blocks">
			<flux:form.object name="block" label="Information block">
				<flux:field.select name="icon" required="1" items="hospital,personel,bed,graph,steto,heart,calculator" label="Icon"/>
				<flux:field.input name="title" required="1" label="Title" />
				<flux:field.input name="subtitle" required="1" label="Subtitle" />
			</flux:form.object>
		</flux:form.section>
	</flux:form>
</f:section>

This configuration allows me to create a series of "Information blocks", like in this screenshot

blocks

Once I save this element for the 1st time, I get the following error:
1: Attempt to insert record on page '[root-level]' (0) where this table, tt_content, is not allowed
As you can see, since I created 3 block objects, I get 3 error messages.
errors

Now, once I save the element, I can recreate the "information blocks" and save them and everything works fine. It's just during the first save, once the element is created ,that I get this error, for any fluidcontent element that contains a form.section area.

Thank you

@ervaude
Copy link

ervaude commented Apr 21, 2017

Hi, this was already identified as a TYPO3 core regression. It could be helpful if you provide additional information to the TYPO3 bug tracker so that this makes it into one of the next bugfix releases: https://forge.typo3.org/issues/80825

@NamelessCoder
Copy link
Member

Thanks @pixelplant for reporting - and @ervaude for the link to the core issue. Please continue the discussion there.

@grimmcreative
Copy link

Ah good to know its already placed here. Searching for solution since hours :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants