Error while trying to create a new Page with Page Builder

Francesco Pietrangelo asked on April 8, 2022 12:55

Hello, I'm trying to create a new Page with the Page Builder in Kentico 13 Core but I keep getting the following error:

An error occurred while attempting to retrieve page templates. Contact your system administrator and check that the page builder feature is registered correctly in the MVC project.

I have already enabled the Page Builder feature in my Startup.cs as the official tutorial says:

    public void ConfigureServices(IServiceCollection services)
    {
        // Enable desired Kentico Xperience features
        var kenticoServiceCollection = services.AddKentico(features =>
        {
            features.UsePageBuilder();
            // features.UseActivityTracking();
            // features.UseABTesting();
            // features.UseWebAnalytics();
            // features.UseEmailTracking();
            // features.UseCampaignLogger();
            // features.UseScheduler();
            features.UsePageRouting();
        });

I am able to create a new Page without the Page Builder, but when I try with a new one with the Page Builder I can't even fill the fields.

Please someone knows how can I fix this problem?

Thank you in advance.

Recent Answers


Juraj Ondrus answered on April 11, 2022 05:41

Is the Presentation URL for the site accessible? There should also be additional information about the error somewhere, can you please check the browser's Console and Network tab? If there are failing requests, are there any details in the request that help? Is there anything in the Event log application which would be related to the error?

Also, if your administration and Core site run on different domains, make sure they both run on HTTPS and you have the SameSite cookie mode set to None according to documentation - Configuring cookie SameSite mode.

Then, I would also run the code in debug mode and make sure you have registered the page templates correctly. What is the code of your page templates?

0 votesVote for this answer Mark as a Correct answer

vasu yerramsetti answered on April 11, 2022 06:21 (last edited on April 11, 2022 06:22)

Hi Francesco Pietrangelo,

I have replicated this issue in my local. You should run your Core application before working with CMS Administration. If Core application is not running then we are getting the following error while add page which was enabled with Page Builder feature into Content tree

An error occurred while attempting to retrieve page templates. The live site application is not running or is not accessible.

Note: No issue with code on Startup.cs

0 votesVote for this answer Mark as a Correct answer

Francesco Pietrangelo answered on April 11, 2022 09:53

Hi all,

thank you for your replies. I haven't registered any template yet, could it be the problem? Do I have to create a template before creating a page?

Since I come from Kentico 12 Portal Engine I don't know how to create and register templates in Kentico 13. Where do I have to put the code to register it?

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on April 11, 2022 12:01

If the page builder feature is enabled for the page type, you need to create the page templates first. Please see the link in my previous post above. Or, if the pages were not using page builder on version 12, disable this option for the page type.

0 votesVote for this answer Mark as a Correct answer

Francesco Pietrangelo answered on April 11, 2022 12:08

Thank you Juraj Ondrus, I will try to create the page template first and let you know if it will work.

0 votesVote for this answer Mark as a Correct answer

vasu yerramsetti answered on April 11, 2022 14:41

Follow below option then you can add page into content tree without creating template --

Uncheck the Use Page Tab check box from Page Type --> General tab

Later you can enable page builder on particular page related code and enable Select check box for Use Page Tab from Page type --> General tab then you can see page tab from content tree

0 votesVote for this answer Mark as a Correct answer

Francesco Pietrangelo answered on April 12, 2022 16:14

Hi all,

we managed to figure out what was the problem: the installation was not done correctly, and all the files of the solution were in conflict with an old installation in the same folder. We did a clean installation on a new server and it worked perfectly from the first try.

Thank you all for your help.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.