cotonti.com : 0.0.6: Users age being set to nine? https://www.cotonti.com Останні повідомлення в темі Cotonti en Tue, 03 Feb 2026 10:40:58 -0000 Trustmaster Thu, 23 Лип 2009 19:31:16 -0000 KillerSneak Thu, 23 Лип 2009 18:43:46 -0000 minoation Then rename it to patch.php.
Then, go to http://www.yoursite.com/patch.php.
There will be a whte page saying:Conversion Complted.
Then you may delete the patch.php file.
Your age will be blank and you may set it from there.
Simple?]]>
Пн, 20 Лип 2009 00:42:33 -0000
Trustmaster Нд, 19 Лип 2009 19:45:49 -0000 Triton
Thank you for the replies ^^]]>
Нд, 19 Лип 2009 07:53:42 -0000
DemptD Пт, 17 Лип 2009 22:43:35 -0000 Trustmaster 0.0.6 download page, updating from 0.0.5:
Copy sql/patch-0.0.6.txt, save it in your site root as patch.php, run in web browser like http://your-domain.tld/patch.php and then remove patch.php from your site.
There is no other way to change that column type and have existing data saved but running a PHP patch.]]>
Пт, 17 Лип 2009 21:54:41 -0000
DemptD
if i try to change to DATE i get:

SQL-spørring:
ALTER TABLE `sed_users` CHANGE `user_birthdate` `user_birthdate` DATE NOT NULL DEFAULT '0'

MySQL sa: Dokumentasjon
#1067 - Invalid default value for 'user_birthdate' 

Where do i find patch.php?]]>
Пт, 17 Лип 2009 21:23:28 -0000
Trustmaster
Could you please check what phpMyAdmin says about user_birthdate column of sed_users table? It should be DATE type.

That patch.php is required if you're updating to 0.0.6 from any previous version, including 0.0.5. But you need to only run it once.]]>
Пт, 17 Лип 2009 20:49:38 -0000
tensh
However, I corrected my brithdate on this site and it's ok... but I don't remember if it was before or after update :)

A patch file looking for that specific birthdate (or maybe: empty birthdates) and converting it would be needed.
But lets' wait what Cotonti developers have to say.]]>
Пт, 17 Лип 2009 19:16:00 -0000
DemptD
Cannot change it.

I had 0.0.5 before i updated, do i have to run patch.php then?]]>
Пт, 17 Лип 2009 19:08:40 -0000
Triton
Here is exactly what I did:
1.) Refreshed files on a local testing webserver
2.) Ran Cotonti 0.0.5 -> Cotonti 0.0.6 SQl file in phpmyadmin
3.) Fixed minor skin problems
4.) Noticed Ages were messed up, so I ran patch.php. This fixed the ages, provided the birthdate was actually set. If a user actually set their birthdate before the upgrade then the age will display correctly. However if they did not set a birthdate before the upgrade, there age will appear as 9 and they will be unable to edit their profile.

The same thing is happening here, I never set my birthdate on this forum but it is showing up as 'Age: 9' and I cannot edit it. (If I go into Profile and set my birthdate from 1999, 11, 20 to a different number and select save, the changes do not save.) I was playing around with it on my test server and after I manually edited the birthdate table (phpmyadmin -> cms -> sed_users) I was able to update my profile again as if nothing happened.

Thanks for the replies so far <3 ^^]]>
Пт, 17 Лип 2009 17:40:14 -0000
tensh Пт, 17 Лип 2009 16:23:26 -0000 Triton # Dave : erm ... im not pro here :p but does ur user.edit.tpl (skin file) have tag to edit it? it might be in case of custom skin

Yup, I am able to make changes to my profile, but they do not save. It also happens here unfortunately =/

Edit: After changing the value in the DB I am able to edit my profile like normal, but if I create a test account, the test account is unable to edit the profile]]>
Пт, 17 Лип 2009 15:14:19 -0000
Dave Пт, 17 Лип 2009 15:12:13 -0000 Triton
When new users register (or when current users do not have a birthdate set) their brithdate is set to November 30, 1999 and they cannot edit the date in their profile. I first noticed it on my site and it is happening here as well, every new user that was registering had their birthdate set to November 30, 1999 and the members that did not have their birthdate set was set the same, only the people who had a birthdate set remained unaffected. I had to go into phpmyadmin in order to change the birthdate

Is it a bugz or did I forget something while updating? :x

Thanks in advance ^^]]>
Пт, 17 Лип 2009 14:53:47 -0000