Landing Page Error

Hello,



I updated to 2.1.1 yesterday. Since then, the following error occurs:

  1. I navigate to Components > Landing Pages
  2. I click New to create a new landing page
  3. I fill out the Title and Alias fields
  4. I select the Content tab, switch to the Code View and paste HTML code
  5. I click Save & Close





    Now, not the list of landings pages is displayed, but the “raw” landing page form of a previously existing landing page is displayed without any Mautic rendering.



    When I repeat steps 1 to 3 and then save and exit, it works. When I edit the created landing page and paste my HTML code, the error occurs again.



    Any ideas why this happens?



    Peter

Hello,

I updated to 2.1.1 yesterday. Since then, the following error occurs:

  1. I navigate to Components > Landing Pages
  2. I click New to create a new landing page
  3. I fill out the Title and Alias fields
  4. I select the Content tab, switch to the Code View and paste HTML code
  5. I click Save & Close

Now, not the list of landings pages is displayed, but the “raw” landing page form of a previously existing landing page is displayed without any Mautic rendering.

When I repeat steps 1 to 3 and then save and exit, it works. When I edit the created landing page and paste my HTML code, the error occurs again.

Any ideas why this happens?

Peter

I tried some things and it seems that the line

<script type="text/javascript" src="http://URL/form/generate.js?id=1"></script>

in my custom HTML causes the error - which by the way happens when I save or preview the page.

Is the above way not supported anymore to put lead forms into landing pages?

That is for insert a Mautic Form not landing page.

[quote=15181:@PeterTL]I tried some things and it seems that the line

<script type="text/javascript" src="http://URL/form/generate.js?id=1"></script>

in my custom HTML causes the error - which by the way happens when I save or preview the page.

Is the above way not supported anymore to put lead forms into landing pages?[/quote]

Yes, that’s what I wrote. I use this code to insert a form into a landing page. But obviously this does not work anymore with my setup.

Yes, JavaScript code is generated when I open the link in a browser.

It is really strange the Mautic application displays the form itself when I use the <script type="text/javascript" src="http://URL/form/generate.js?id=1"></script>. When I use the {page=1} token, it works as expected.