Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 745 Vote(s) - 3.48 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Prestashop 1.6 unable to add employee

#1
I have Prestashop 1.6 and I am unable to add new employee because of this error

> ... employee (Incorrect date value: '0000-00-00' for column 'stats_compare_from' at row 1)

version is 1.6.0.9
on php 5.3 apache 2.2 and mysql 5.7
deployed on jelastic cloudlets

tried to google for solution but there is no such error

thanks for help
Reply

#2
This error is usually related to MySQL strict mode.

You can see how you can set TRADITIONAL mode here:

[To see links please register here]

Reply

#3
On my Ubuntu 16.04 i did this:

1. Open mysql config like so
```sudo vim /etc/mysql/my.cnf```
2. Created ```[mysql]``` block and added the configuration like so (its possible that you already have mysql block, in that case just add line starting with "sql_mode=.."):

```[mysqld]
sql_mode=ONLY_FULL_GROUP_BY,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION```

3. Save file ```:wq```
4. Restart mysql serever: ```sudo service mysql restart```
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through