Askbot installation error Column 'session_key' cannot be null"
 

Hi,

I am doing a new deployment of Askbot by cloning AskBot Gitgub (ASKBOT/askbot-devel.git) and following installation instructions at askbot.org/doc

I tried two installs one with mysql and one with db.sqlite3. "Allow asking without registration" is set to false. Both times, I started server using runserver and tried to post a question without logging in. Both times I get the error session_key' cannot be null. It did not take me to signup page. Upon investigation, it seems that for table anonymous_question, session key is not set in the code and hence this validation is failing. How do I fix this problem?

Error : With MySql: (1048,Column 'session_key' cannot be null") With sqlite3: NOT NULL constraint failed: askbot_anonymousquestion.session_key

How do I fix this problem?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
rgovind's avatar
11
rgovind
asked 9 years ago
Evgeny's avatar
13.2k
Evgeny
updated 9 years ago

Comments

No one has an answer?

rgovind's avatar rgovind (9 years ago)

I am also facing the same problem please reply at the earliest

spbraju's avatar spbraju (8 years ago)

Please include the version you're facing this issue with, also - have you customized anything in the settings file?

Evgeny's avatar Evgeny (8 years ago)
see more comments