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

DateTime::__construct(): Failed to parse time string #6115

Closed
sshcli opened this issue Sep 19, 2018 · 11 comments
Closed

DateTime::__construct(): Failed to parse time string #6115

sshcli opened this issue Sep 19, 2018 · 11 comments
Milestone

Comments

@sshcli
Copy link
Member

sshcli commented Sep 19, 2018

Steps to reproduce the behavior:

  1. UserX has this value as birthday: 0000-00-00
  2. Try to change the rank to UserX

Expected behavior
No error

Actual result
DateTime::__construct(): Failed to parse time string (11/30/-0001) at position 5 (/): Unexpected character
error

System information (please complete the following information)
Joomla version: 3.9.0-Beta2
Kunena version: 5.1.4-DEV
Php version: 7.2.9
Database version: MySQL 5.6.40

@xillibit xillibit added this to the 5.1.4 milestone Sep 20, 2018
@xillibit
Copy link
Member

xillibit commented Oct 5, 2018

You have the issue only on J!3.9.0 beta not on J!3.8.x ?

@sshcli
Copy link
Member Author

sshcli commented Oct 5, 2018

I remember I saw the error once in 3.8

@xillibit
Copy link
Member

xillibit commented Oct 5, 2018

Only in backend not in frontend ?

@sshcli
Copy link
Member Author

sshcli commented Oct 5, 2018

All times I saw the error was in the backend, never in the front.

@810 810 modified the milestones: 5.1.4, 5.1.6 Oct 14, 2018
@sshcli
Copy link
Member Author

sshcli commented Oct 26, 2018

Use this query to check if you have users with this problem in your website:

SELECT * FROM #_kunena_users WHERE birthdate = '0000-00-00'

@sshcli sshcli closed this as completed Oct 26, 2018
@sshcli sshcli reopened this Oct 26, 2018
@sshcli
Copy link
Member Author

sshcli commented Oct 26, 2018

In frontend you will see it like this when editing the profile:
birth

@sshcli
Copy link
Member Author

sshcli commented Oct 26, 2018

Also, we need the option to show/hide birthday in profile:

bad10

good10

@sshcli
Copy link
Member Author

sshcli commented Oct 26, 2018

You get also the error in frontend when user click save button on profile edit:

error

@sshcli
Copy link
Member Author

sshcli commented Oct 26, 2018

People having this error can't save/edit/remove other values from the profile like facebook, instagram, etc..

@sshcli
Copy link
Member Author

sshcli commented Oct 26, 2018

1027 people that can't edit profile

results

@sshcli
Copy link
Member Author

sshcli commented Oct 26, 2018

In the meanwhile, I have fixed the problem only for my website with the following query:

UPDATE prefix_kunena_usersSETbirthdate= '2018-10-26' WHEREbirthdate = '0000-00-00'

I prefer babies registered in my website than the error

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

No branches or pull requests

3 participants