# Landing Page Error

**URL:** https://forum.mautic.org/t/landing-page-error/5116
**Category:** Product Support
**Created:** [August 30, 2016, 1:52pm UTC](https://forum.mautic.org/t/landing-page-error/5116 "2016-08-30T13:52:31Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)
#### Post date: [August 30, 2016, 1:52pm UTC](https://forum.mautic.org/t/landing-page-error/5116/1 "2016-08-30T13:52:31Z")

</div>

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

---

<div class="post-metadata">

### Author: ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)
#### Post date: [August 30, 2016, 1:52pm UTC](https://forum.mautic.org/t/landing-page-error/5116/2 "2016-08-30T13:52:31Z")

</div>

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

---

<div class="post-metadata">

### Author: ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)
#### Post date: [August 30, 2016, 2:13pm UTC](https://forum.mautic.org/t/landing-page-error/5116/3 "2016-08-30T14:13:36Z")

</div>

I tried some things and it seems that the line

```auto
<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?

---

<div class="post-metadata">

### Author: ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)
#### Post date: [August 31, 2016, 12:31pm UTC](https://forum.mautic.org/t/landing-page-error/5116/4 "2016-08-31T12:31:04Z")

</div>

That is for insert a Mautic Form not landing page.

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

```auto
<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]

---

<div class="post-metadata">

### Author: ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)
#### Post date: [August 31, 2016, 6:39pm UTC](https://forum.mautic.org/t/landing-page-error/5116/5 "2016-08-31T18:39:11Z")

</div>

> [@15220:@ninjoan](#):
>
> That is for insert a Mautic Form not landing page.

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.

---

<div class="post-metadata">

### Author: ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)
#### Post date: [September 1, 2016, 5:04am UTC](https://forum.mautic.org/t/landing-page-error/5116/6 "2016-09-01T05:04:10Z")

</div>

> [@15249:@MxyzptlkFishStix](#):
>
> Open [http://URL/form/generate.js?id=1](http://URL/form/generate.js?id=1) in your browser. Does it display a page of javascript?

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.
