Importing or creating a theme causes a 500 error


#1

Hi,

I updated to c0c2634 today and now I can’t import or create a theme. Importing says 500 Error and creating a new theme says Internal Server Error. There are no other details in the dialog. I have a test instance that is on b459a58 and I was able to import successfully there.

Here is the error from the logs:

ActiveRecord::NotNullViolation (PG::NotNullViolation: ERROR: null value in column “key” violates not-null constraint
DETAIL: Failing row contains (7, Alternative Logos, 1, null, 2018-07-16 18:45:42.528877, 2018-07-16 18:45:42.528877, 0, f, f, null, 5).
: INSERT INTO “themes” (“name”, “user_id”, “created_at”, “updated_at”, “remote_theme_id”) VALUES (‘Alternative Logos’, 1, ‘2018-07-16 18:45:42.528877’, ‘2018-07-16 18:45:42.528877’, 5) RETURNING “id”)
/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/rack-mini-profiler-1.0.0/lib/patches/db/pg.rb:95:in `exec’


#3

Hi @sirideain

Can you do a rebuild and let me know if that fixes the problem?


(Sam Saffron) #4

@david just fixed this per:

Be sure to upgrade Discourse ASAP.


#5

This fixed it. Thank you for the fast response.


(Sam Saffron) #6