# Post Preview not working because of events plugin

**URL:** https://meta.discourse.org/t/post-preview-not-working-because-of-events-plugin/231893
**Category:** Support
**Created:** [July 4, 2022, 5:39pm UTC](https://meta.discourse.org/t/post-preview-not-working-because-of-events-plugin/231893 "2022-07-04T17:39:21Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![diabolicvincent](https://avatars.discourse-cdn.com/v4/letter/d/4da419/32.png) [@diabolicvincent](https://meta.discourse.org/u/diabolicvincent)
#### Post date: [July 4, 2022, 5:39pm UTC](https://meta.discourse.org/t/post-preview-not-working-because-of-events-plugin/231893/1 "2022-07-04T17:39:21Z")

</div>

I’m encountering a weird bug on our discourse server: Nothing is showing up on the right as preview. Sometimes this can be fixed by refreshing the page, other times not.

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/c/6/4c63391825fd124dc4e117cf9da962ab91c6a0b1.png)

The bug persists even with different themes and all components disabled.  
Anyone else experiencing this issue or able to help?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [July 4, 2022, 11:51pm UTC](https://meta.discourse.org/t/post-preview-not-working-because-of-events-plugin/231893/2 "2022-07-04T23:51:59Z")

</div>

What about [safe mode](https://meta.discourse.org/t/53504?silent=true)? Is there anything in your browser console? What plugins do you have installed? Are you on tests-passed, did you rebuild recently?

---

<div class="post-metadata">

### Author: ![diabolicvincent](https://avatars.discourse-cdn.com/v4/letter/d/4da419/32.png) [@diabolicvincent](https://meta.discourse.org/u/diabolicvincent)
#### Post date: [July 5, 2022, 1:28pm UTC](https://meta.discourse.org/t/post-preview-not-working-because-of-events-plugin/231893/3 "2022-07-05T13:28:16Z")

</div>

Thanks for letting me know about [safe mode](https://meta.discourse.org/t/53504?silent=true), Sam! It does not seem to happen with plugins disabled. We’re running on tests-passed and did not undergo any rebuilds recently.

The following plugins are enabled:

- discourse-data-explorer (official)
- discourse-events
- discourse-voting (official)
- discourse-locations
- discourse-whos-online (official)
- docker-manager (official)

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [July 5, 2022, 3:46pm UTC](https://meta.discourse.org/t/post-preview-not-working-because-of-events-plugin/231893/4 "2022-07-05T15:46:49Z")

</div>

Can you share the forum URL ?

---

<div class="post-metadata">

### Author: ![diabolicvincent](https://avatars.discourse-cdn.com/v4/letter/d/4da419/32.png) [@diabolicvincent](https://meta.discourse.org/u/diabolicvincent)
#### Post date: [July 5, 2022, 6:39pm UTC](https://meta.discourse.org/t/post-preview-not-working-because-of-events-plugin/231893/5 "2022-07-05T18:39:01Z")

</div>

Unfortunately that won’t be of much help, as the forum has restricted access.

Though, I discovered something else: The Post-Preview only disappears when replying to a specific topic using the “Reply” Button next to the Heart.

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/8/5/4859e0d83a4c1c753f706e6bb76dc14bbdb2f8a6.png)

When using the blue “Reply” Button at the bottom of a topic it works just fine.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [July 5, 2022, 6:43pm UTC](https://meta.discourse.org/t/post-preview-not-working-because-of-events-plugin/231893/6 "2022-07-05T18:43:25Z")

</div>

That usually happens when the site HTTPS is misconfigured. Can you check the DevTools logs when the issue happens? Both the console and network tab will show you why it’s happening.

---

<div class="post-metadata">

### Author: ![OldRoutard](https://avatars.discourse-cdn.com/v4/letter/o/7bcc69/32.png) [@OldRoutard](https://meta.discourse.org/u/OldRoutard)
#### Post date: [July 10, 2022, 9:06pm UTC](https://meta.discourse.org/t/post-preview-not-working-because-of-events-plugin/231893/7 "2022-07-10T21:06:59Z")

</div>

Greetings Discourse people.

Just to say that we are seeing this problem in the Fairphone forum too, seemingly since updating to v.2.9.0 beta 5 and 6. You’ll find a [thread here](https://forum.fairphone.com/t/scheduled-forum-maintenance-friday-july-1/86268).

I confirm this seems only to happen when the new post is begun by clicking the grey “Reply” button of a preceding post. Using the blue general Topic Reply, or using “Quote” to initiate the post, does not produce the issue.

We observe other (JS - related?) issues at the same time, for example the “Quote”, and inserting a hyperlink (the optional title field is not populated and the dialogue cannot be validated). These issues are not seen if the post was _not_ initiated by clicking a grey “Reply” button.

I also confirm that the issues have not been seen in [safe mode](https://meta.discourse.org/t/53504?silent=true).

---

<div class="post-metadata">

### Author: ![vincentp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vincentp/32/110063_2.png) [@vincentp](https://meta.discourse.org/u/vincentp)
#### Post date: [July 11, 2022, 10:26pm UTC](https://meta.discourse.org/t/post-preview-not-working-because-of-events-plugin/231893/8 "2022-07-11T22:26:03Z")

</div>

I’m seeing the same issue on 1 of the 2 discourse instances I manage - [https://forums.adug.org.au/](https://forums.adug.org.au/)

It doesn’t happen in [safe mode](https://meta.discourse.org/t/53504?silent=true), but dev tools doesn’t show any errors either.

I’m also seeing that syntax highlighting no longer works - it looks like the theme css is resetting the hljs styles - using the default theme - also doesn’t happen in [safe mode](https://meta.discourse.org/t/53504?silent=true).

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [July 11, 2022, 10:44pm UTC](https://meta.discourse.org/t/post-preview-not-working-because-of-events-plugin/231893/9 "2022-07-11T22:44:29Z")

</div>

> [@OldRoutard](#):
>
> I also confirm that the issues have not been seen in [safe mode](https://meta.discourse.org/t/how-to-use-discourse-safe-mode/53504).

That means that there are error in the Fairphone theme. It must be fixed by an admin there. It appears that, for example, there is a theme-component trying to use the old deprecated `Discourse.User` global object.

---

<div class="post-metadata">

### Author: ![vincentp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vincentp/32/110063_2.png) [@vincentp](https://meta.discourse.org/u/vincentp)
#### Post date: [July 11, 2022, 11:49pm UTC](https://meta.discourse.org/t/post-preview-not-working-because-of-events-plugin/231893/10 "2022-07-11T23:49:41Z")

</div>

> [@Falco](#):
>
> That means that there are error in the Fairphone theme.

In my case the instance is using the Default theme.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [July 12, 2022, 2:03am UTC](https://meta.discourse.org/t/post-preview-not-working-because-of-events-plugin/231893/11 "2022-07-12T02:03:42Z")

</div>

I tried signing up for it, but it’s on the moderator queue 🤷

---

<div class="post-metadata">

### Author: ![vincentp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vincentp/32/110063_2.png) [@vincentp](https://meta.discourse.org/u/vincentp)
#### Post date: [July 12, 2022, 2:24am UTC](https://meta.discourse.org/t/post-preview-not-working-because-of-events-plugin/231893/12 "2022-07-12T02:24:37Z")

</div>

Approved now.. we get a lot of spammers signing up.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [July 12, 2022, 2:39am UTC](https://meta.discourse.org/t/post-preview-not-working-because-of-events-plugin/231893/13 "2022-07-12T02:39:31Z")

</div>

> [@vincentp](#):
>
> I’m seeing the same issue on 1 of the 2 discourse instances I manage - [https://forums.adug.org.au/](https://forums.adug.org.au/)

It’s broken because of a third party plugin: [Events Plugin 📅](https://meta.discourse.org/t/events-plugin/69776)

Please report on the plugin topic as this is not a core nor #official plugin.

Looks like it’s the same for

> [@diabolicvincent](#):
>
> discourse-events

---

<div class="post-metadata">

### Author: ![OldRoutard](https://avatars.discourse-cdn.com/v4/letter/o/7bcc69/32.png) [@OldRoutard](https://meta.discourse.org/u/OldRoutard)
#### Post date: [July 12, 2022, 1:46pm UTC](https://meta.discourse.org/t/post-preview-not-working-because-of-events-plugin/231893/14 "2022-07-12T13:46:26Z")

</div>

Thanks Falco for pointing out the source of the problem very quickly!

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [August 11, 2022, 1:46pm UTC](https://meta.discourse.org/t/post-preview-not-working-because-of-events-plugin/231893/15 "2022-08-11T13:46:56Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
