# 500 Error when trying to install theme

**URL:** https://meta.discourse.org/t/500-error-when-trying-to-install-theme/302627
**Category:** Development
**Created:** [April 5, 2024, 6:43pm UTC](https://meta.discourse.org/t/500-error-when-trying-to-install-theme/302627 "2024-04-05T18:43:58Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [April 5, 2024, 7:51pm UTC](https://meta.discourse.org/t/500-error-when-trying-to-install-theme/302627/4 "2024-04-05T19:51:23Z")

</div>

Ah, this seems similar to an issue I already reported then:

> [@Failing to add a theme permanently prevents that theme from being added](https://meta.discourse.org/t/failing-to-add-a-theme-permanently-prevents-that-theme-from-being-added/293061/1):
>
> Message
> 
> ```plaintext
> Failed to process hijacked response correctly : ActiveRecord::RecordNotUnique : PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_child_themes_on_parent_theme_id_and_child_theme_id"
> DETAIL: Key (parent_theme_id, child_theme_id)=(50, 35) already exists.
> 
> ```

Although in your case it looks like the theme ID it’s trying to use (50) is already in-use, instead of the parent-child link like mine was.

Did you add a theme earlier that failed for any reason before the 500s started?

---

_[View the full topic](https://meta.discourse.org/t/500-error-when-trying-to-install-theme/302627)._
