- Forum
- Products for Joomla
- Kunena 5.x templates
- RND Kinstance
- Error in KInstance 2.0.0 when saving the avatar
Error in KInstance 2.0.0 when saving the avatar
- Wouter NL
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 22
- Thank you received: 0
5 years 1 month ago - 5 years 1 month ago #957
by Wouter NL
Error in KInstance 2.0.0 when saving the avatar was created by Wouter NL
Today I updated the template KInstance to 2.0.0
In this topic I answered my problem was solved:
www.roundtheme.com/forum/rnd-kinstance/5...-in-user-profile#955
But that was when I saved an avatar once this afternoon.
Later the second try gave me an error message:
This is the error:
In this topic I answered my problem was solved:
www.roundtheme.com/forum/rnd-kinstance/5...-in-user-profile#955
But that was when I saved an avatar once this afternoon.
Later the second try gave me an error message:
This is the error:
Strange thing... the avatar is saved correctly, but it is better when there is no error.DateTime::__construct(): Failed to parse time string (11/30/-0001) at position 5 (/): Unexpected character
Last edit: 5 years 1 month ago by Wouter NL.
- Eugene S.
-
- Offline
- Administrator
-
5 years 1 month ago #958
by Eugene S.
Like our extensions for Kunena?
Add your voice to the JED listing with a 100 score review: bit.ly/2cIg8pF
Thanks!
Replied by Eugene S. on topic Error in KInstance 2.0.0 when saving the avatar
Hello,
Please, clear browser cache, set the correct birthdate and save the profile.
Btw, Kunena had another problem with birthdate:
github.com/Kunena/Kunena-Forum/issues/6108
But it seems the dev team have fixed it in Kunena 5.1.4.
Please, clear browser cache, set the correct birthdate and save the profile.
Btw, Kunena had another problem with birthdate:
github.com/Kunena/Kunena-Forum/issues/6108
But it seems the dev team have fixed it in Kunena 5.1.4.
Like our extensions for Kunena?
Add your voice to the JED listing with a 100 score review: bit.ly/2cIg8pF
Thanks!
- Eugene S.
-
- Offline
- Administrator
-
5 years 4 weeks ago #974
by Eugene S.
Like our extensions for Kunena?
Add your voice to the JED listing with a 100 score review: bit.ly/2cIg8pF
Thanks!
Replied by Eugene S. on topic Error in KInstance 2.0.0 when saving the avatar
This topic name refers to avatar issue which should be solved in the latest version of the template.
Soon you mentioned there is another issue with the date format (unexpected character)
Then you asked how to change the format of the date. Different questions on one topic and I do not understand what were solved and what are still actual for you.
Could you follow the rule: one question = one topic? It will be more clear. Thank you.
My replies:
1. The avatar issue is fixed in the latest version of the template and you shouldn't have any issue with uploading the avatar. If there is an issue, please describe the issue in details.
2. "DateTime::__construct(): Failed to parse time string" - perhaps it happens one time when you save a user profile. It was a Kunena issue and date format might be written incorrectly in the database. Now it should be fixed in Kunena.
3. Change format of a date. Well, it is logically to allow a user to select a preferable format, I agree, but there is no such option in Kunena configuration yet.
I googled a solution and found this issue on Github.
The following code displays birthdate field in user edit mode in the template:
/components/com_kunena/template/[template-name]/layouts/user/edit/profile/default.php
I changed dd/mm and d/m to vice versa, but it took no effect. Perhaps some changes must be made somewhere else.
This question should be addressed to Kunena team. So, you can submit it on the official forum.
4. White background in the calendar window. Your Joomla template overrides styles for the calendar. Need to examine a live site. Please provide an URL and temporary user access to log in to the site. (here is a Confidential button in reply form)
Soon you mentioned there is another issue with the date format (unexpected character)
Then you asked how to change the format of the date. Different questions on one topic and I do not understand what were solved and what are still actual for you.

Could you follow the rule: one question = one topic? It will be more clear. Thank you.
My replies:
1. The avatar issue is fixed in the latest version of the template and you shouldn't have any issue with uploading the avatar. If there is an issue, please describe the issue in details.
2. "DateTime::__construct(): Failed to parse time string" - perhaps it happens one time when you save a user profile. It was a Kunena issue and date format might be written incorrectly in the database. Now it should be fixed in Kunena.
3. Change format of a date. Well, it is logically to allow a user to select a preferable format, I agree, but there is no such option in Kunena configuration yet.
I googled a solution and found this issue on Github.
The following code displays birthdate field in user edit mode in the template:
/components/com_kunena/template/[template-name]/layouts/user/edit/profile/default.php
<input type="text" name="birthdate" data-date-format="mm/dd/yyyy"
value="<?php echo $this->profile->birthdate == '0001-01-01' ? JFactory::getDate()->format('m/d/y') : KunenaDate::getInstance($this->profile->birthdate)->format('m/d/Y'); ?>"
class="hasTooltip" title="<?php echo JText::_('COM_KUNENA_MYPROFILE_BIRTHDATE_DESC') ?>">
I changed dd/mm and d/m to vice versa, but it took no effect. Perhaps some changes must be made somewhere else.
This question should be addressed to Kunena team. So, you can submit it on the official forum.
4. White background in the calendar window. Your Joomla template overrides styles for the calendar. Need to examine a live site. Please provide an URL and temporary user access to log in to the site. (here is a Confidential button in reply form)
Like our extensions for Kunena?
Add your voice to the JED listing with a 100 score review: bit.ly/2cIg8pF
Thanks!
- Eugene S.
-
- Offline
- Administrator
-
5 years 4 weeks ago #979
by Eugene S.
Like our extensions for Kunena?
Add your voice to the JED listing with a 100 score review: bit.ly/2cIg8pF
Thanks!
Replied by Eugene S. on topic Error in KInstance 2.0.0 when saving the avatar
I moved the question about datepicker (calendar) to a
new topic
.
Like our extensions for Kunena?
Add your voice to the JED listing with a 100 score review: bit.ly/2cIg8pF
Thanks!
- Wouter NL
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 22
- Thank you received: 0
5 years 4 weeks ago - 4 years 11 months ago #983
by Wouter NL
Replied by Wouter NL on topic Error in KInstance 2.0.0 when saving the avatar
Thanks.
The main question of this topic is solved.
I will add a new topic at the Kunena forum.
The main question of this topic is solved.
I will add a new topic at the Kunena forum.
Last edit: 4 years 11 months ago by Wouter NL.
Moderators: Eugene S.