Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while installation #47

Closed
2 tasks done
TheHolyLoli opened this issue Jun 2, 2016 · 4 comments
Closed
2 tasks done

Error while installation #47

TheHolyLoli opened this issue Jun 2, 2016 · 4 comments

Comments

@TheHolyLoli
Copy link

TheHolyLoli commented Jun 2, 2016

Hello,I tried installing Sharif judge on my Ubuntu 16.04 (Desktop).
I configured required files like database.php and index.php
I made application/cache/twig writable by www-data
I opened the installation page,and i entered admin username-email and password.but when Sharif-judge is trying to make database ready,it gets an error:

  1. Sharif judge connects to the MySQL database successfully(with username: root,as i don't mind about the security)
  2. Sharif judge makes table : shj_sessions
  3. Sharif judge makes table : shj_submissions
  4. It gives error while making table: shj_assignments

Here are the screenshots:
screenshot

Edit(Added screenshot of tables):

screenshot

My system information:

OS : Ubuntu16.04
PHP Version : 7.0.4-7ubuntu2.1
MySQL Version : 5.7.12-0ubuntu1

what i have already tried:

  • re-installing sharif-judge
  • reinstalling apache2 and mysql and php,replacing php7.0 with php5.6
@TuserS
Copy link

TuserS commented Jul 22, 2016

Blob/text columns can't have a default value, not even the empty string in MySQL.

You should remove all default value of text columns in install.php

@tahmidrafi
Copy link

To make it work I had to remove all the default values for TEXT type columns from the installation script. MySQL doesn't support default values for TEXT type data.

@chez14
Copy link

chez14 commented Jan 19, 2018

This should not be closed as nobody updates the code.

@chez14
Copy link

chez14 commented Feb 19, 2018

@madl-ash can you reopen this? Other people may struggle finding out the root of problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants