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
Clean install of r756 on CentOS 7.3, php 7.1 #320
Comments
@mbmcclelland I think this maybe related to the issues myself and others are having which is to do with the mode MySQL is running in. Have a look at the comments on my ticket #319 |
Thanks for the reply, unfortunately setting the sql_mode didn't correct the issue, though I think you are on the right track. I ran
and also added
to my /etc/my.cnf I am running Server version: 5.5.52-MariaDB MariaDB Server, what version mysql are you running? |
I can successfully install, out the box, on MySQL 5.4, but 5.5, 5.6 and 5.7 require changes to the server config. I've not tried on MariaDB. Add to to your findings above though, I also found that adding lines to the /etc/my.cnf had no effect. I had to find the lines in the files in the conf.d directory and update them there. I'm not sure why but in my.cnf the lines had no effect. |
Can you tell me what running returns? I get:
Also which conf.d directory do you mean? The MySQL or the Apache? I assume the MySQL... which in my install if I run:
Are you editing your equivalent of the my.cnf file? |
May I see the text of the files you had to edit in your conf.d directory? Maybe I can find what I need to that way. Thanks for your help by the way. (I mistakenly closed the issue) |
The problem is with the second CURRENT_TIMESTAMP in database.php. Changing the line |
Can anyone vet @flipswitchingmonkey's patch for long term issues? My error is similar, but different in textual content ` PDOException: SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'expiry_date' in /var/www/html/install/index.php:31 Stack trace: #0 /var/www/html/install/index.php(31): PDOStatement->execute(Array) #1 /var/www/html/install/index.php(108): try_query(Array) #2 {main} Server Details: |
I guess the safest would be to write the timestamp client side, when the row is written. At least for older MySQL versions. I thought I read that multiple current_timestamp() were now allowed in current versions - and your error looks like something different I think. |
When I removed all the default mysql states via the cnf file, It was able to 'install' but still had one remaining error:
Unsure how it will affect the server's operation. |
Ao instalar ocorria erro Alterei a linha 26 de database.php para A instalação encerrou corretamente. |
But where is that file located? |
The hack proposed by @pitilago and @flipswitchingmonkey works for me. Change file Given the context, I think this may be a bit more secure than not giving it any expiry date at all. |
just drop the db and recreate |
This should be fixed with commit d469ea3 |
After doing a clean install, getting generic php and vhosts working installing projectsend and chowning and chmoding permissions correctly for it... I get to the start page, and upon filling out the form and clicking "install" I get the following:
The text of this is below, it seems to have issues with the database which was created with the following mysql commands:
Is this a known issue? Am I using to fresh a version? Thanks for any assistance.
Text of attached screenshot
There seems to be an error. Please try again.
PDOException: SQLSTATE[HY000]: General error: 1293 Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause in /var/www/html/projectsend.domainnamehere.com/install/index.php:31 Stack trace: #0 /var/www/html/projectsend.domainnamehere.com/install/index.php(31): PDOStatement->execute(Array) #1 /var/www/html/projectsend.domainnamehere.com/install/index.php(108): try_query(Array) #2 {main}
PDOException: SQLSTATE[HY000]: General error: 1005 Can't create table 'projectsenddb.tbl_files_relations' (errno: 150) in /var/www/html/projectsend.domainnamehere.com/install/index.php:31 Stack trace: #0 /var/www/html/projectsend.domainnamehere.com/install/index.php(31): PDOStatement->execute(Array) #1 /var/www/html/projectsend.domainnamehere.com/install/index.php(108): try_query(Array) #2 {main}
PDOException: SQLSTATE[HY000]: General error: 1005 Can't create table 'projectsenddb.tbl_notifications' (errno: 150) in /var/www/html/projectsend.domainnamehere.com/install/index.php:31 Stack trace: #0 /var/www/html/projectsend.domainnamehere.com/install/index.php(31): PDOStatement->execute(Array) #1 /var/www/html/projectsend.domainnamehere.com/install/index.php(108): try_query(Array) #2 {main}
PDOException: SQLSTATE[HY000]: General error: 1005 Can't create table 'projectsenddb.tbl_downloads' (errno: 150) in /var/www/html/projectsend.domainnamehere.com/install/index.php:31 Stack trace: #0 /var/www/html/projectsend.domainnamehere.com/install/index.php(31): PDOStatement->execute(Array) #1 /var/www/html/projectsend.domainnamehere.com/install/index.php(108): try_query(Array) #2 {main}
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1' for key 'PRIMARY' in /var/www/html/projectsend.domainnamehere.com/install/index.php:31 Stack trace: #0 /var/www/html/projectsend.domainnamehere.com/install/index.php(31): PDOStatement->execute(Array) #1 /var/www/html/projectsend.domainnamehere.com/install/index.php(108): try_query(Array) #2 {main}
PDOException: SQLSTATE[HY000]: General error: 1005 Can't create table 'projectsenddb.tbl_categories_relations' (errno: 150) in /var/www/html/projectsend.domainnamehere.com/install/index.php:31 Stack trace: #0 /var/www/html/projectsend.domainnamehere.com/install/index.php(31): PDOStatement->execute(Array) #1 /var/www/html/projectsend.domainnamehere.com/install/index.php(108): try_query(Array) #2 {main}
The text was updated successfully, but these errors were encountered: