Jump to content
  • 0

Fluxcp 'reg_date' Error !


Diana

Question


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.03
  • Content Count:  188
  • Reputation:   3
  • Joined:  12/17/16
  • Last Seen:  

Please help me if you can 

when I setup fluxcp in my own Computer I get this error : 

Message: Critical MySQL error in Installer/Updater: Invalid default value for 'reg_date'

how can i fix it?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  09/13/19
  • Last Seen:  

following the first answers, this is the solution for linux (ubuntu 18.04) users. You can jump right to the solution a little lower...

I took like 4 information sources to get it all going for me, thats why I put it all together a little more detailed...

After preconfiguring fluxCP (see github wiki) I had the same problem mentioned here after hitting fluxCP "update all".

 

Quote

 

Critical Error

An error was encountered during the lifetime of the application.

This could be due to a variety of problems, such as a bug in the application.

However, normally it is caused by misconfiguration.

 

To make sure its actually this error, you need to enable full error log in the error.php:

sudo nano /var/www/html/config/error.php

now set this from false to true:

Quote

$showExceptions  = true;

exit with STRG+X and confirm save with Y and RETURN

Then you are able to see the full error log:

Quote

Exception Details

Error: Flux_Error

Message: Critical MySQL error in Installer/Updater: Invalid default value for 'reg_date'

File: /var/www/html/lib/Flux/Installer/Schema.php:131

...

 

My working Solution

 

open the mysqld.cnf with write permissions (e.g. sudo):

sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf

append this in the [mysql] section:

 sql_mode=NO_ENGINE_SUBSTITUTION

exit with STRG+X and confirm save with Y and RETURN

now restart the mysql service:

sudo systemctl restart mysql.service

 

Edited by sekall
Link to comment
Share on other sites

  • 1

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  152
  • Reputation:   78
  • Joined:  06/13/15
  • Last Seen:  

9 minutes ago, Diana said:

I already tried this 

but in Wampserver there's no mysql.ini and it's only my.ini 

but still the same error :mellow:

yes my.ini last line add 

sql_mode=NO_ENGINE_SUBSTITUTION

http://prntscr.com/foixkb

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  152
  • Reputation:   78
  • Joined:  06/13/15
  • Last Seen:  

add
sql_mode=NO_ENGINE_SUBSTITUTION

to your mysql.ini / my.ini

Edit: update ur fluxcp files to latest 

Edited by Ciel Phantomhive
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.03
  • Content Count:  188
  • Reputation:   3
  • Joined:  12/17/16
  • Last Seen:  

I already tried this 

but in Wampserver there's no mysql.ini and it's only my.ini 

but still the same error :mellow:

@Ciel Phantomhive Solved and Thank you very much ❤️

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  30
  • Reputation:   4
  • Joined:  11/20/11
  • Last Seen:  

Link to comment
Share on other sites

×
×
  • Create New...