Project

General

Profile

Actions

Bug #98262

closed

Editor unable to create new page in Typo3 11 - 1: recordEditAccessInternals() check failed. [ERROR: The "languageField" field named "sys_language_uid" was not found in testing record!]

Added by Albert van der Veen about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2022-09-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When trying to create a page in the BE as an editor, you'll get the error '1: recordEditAccessInternals() check failed. [ERROR: The "languageField" field named "sys_language_uid" was not found in testing record!]'.

Looking into the code of sysext/core/Classes/DataHandling/DataHandler.php, there's a call to function recordEditAccessInternals in sysext/core/Classes/Authentication/BackendUserAuthentication.php
This function has a check on the availability of the languageField in the incomingFields array. However, this field is not present and therefore the before mentioned error is thrown.

As an admin you can create pages, as this same function returns true for admin users, regardless of the availability of the languageField.


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Bug #103632: 1: recordEditAccessInternals() check failed. [ERROR: The "languageField" field named "sys_language_uid" was not found in testing record!]Needs Feedback2024-04-15

Actions
Actions #1

Updated by Susanne Moog about 2 years ago

  • Status changed from New to Needs Feedback

Hey,

I just tested this with the demo project on demo.typo3.org and in general editors are able to create and translate pages. I would suspect either an extension or a misconfiguration being the culprit. Can you please try it with a plain system (without extensions) and see whether that helps?

Actions #2

Updated by Albert van der Veen about 2 years ago

Susanne Moog wrote in #note-1:

Hey,

I just tested this with the demo project on demo.typo3.org and in general editors are able to create and translate pages. I would suspect either an extension or a misconfiguration being the culprit. Can you please try it with a plain system (without extensions) and see whether that helps?

Thanks, must be a misconfiguration - which I haven't found yet. Strange thing is that I encountered the issue on two different sites, on two different servers. So issue can be closed.

Update, in case anyone stumbles upon this page googling the error message: it turns out editors cannot create pages outside of web roots in Typo3 11 (and perhaps 10 - noticed this after upgrading from 9 to 10 and subsequently to 11). I had a tree of maps containing address records outside the root of a website. Have now moved that inside and editors are able to add maps again. Strange behaviour in my opinion, as the editor should have access according to the access module.

Actions #3

Updated by Georg Ringer about 2 years ago

  • Status changed from Needs Feedback to Closed

closed as requested

Actions #4

Updated by Stefan Bürk 7 months ago

  • Related to Bug #103632: 1: recordEditAccessInternals() check failed. [ERROR: The "languageField" field named "sys_language_uid" was not found in testing record!] added
Actions

Also available in: Atom PDF