Hi @zsuzsifulop
We understand you are receiving a ‘mainEntity’ error. This might be due to you setting the page as a FAQPage.
Our default logic comes with a lot of build-in validation and error handling. These checks make sure that we don’t output invalid structured data in edge cases, or when we encounter conflicting options. They also help us to integrate all of the different pieces of schema which a page outputs.
By overriding the defaults, you may alter your schema markup in ways that don’t make sense, or which are incomplete.
For example, Google expects a FAQPage to contain a series of questions, in a specific format. If you describe a normal page as a FAQPage without also including a series of questions-and-answers with the correct structured markup, this may result in errors or unexpected behaviors.
You can learn more about it here – https://yoast.com/help/selecting-content-types-in-schema-settings/
You need to have the proper schema markup in order to do so, which in this case, would be to add the Yoast FAQ block in order to add the necessary schema – https://developer.yoast.com/features/schema/plugins/yoast-seo/#when-a-page-contains-an-faq-block
You’ve mentioned that you are using Elementor. Currently, the Yoast FAQ block only works for the default WordPress block editor.
Otherwise, you may want to try the Elementor Blocks for Gutenberg plugin. This allows you to embed Elementor layouts in the default block editor. Elementor has more details about this and examples in this article: Introducing Elementor Blocks for Gutenberg and in the Elementor documentation.
We hope this helps.
We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.