Official support hours: from 9 AM — 6 PM Monday to Friday (GMT +2).
The support staff may not reply on technical inquiries on weekends; all requests will be answered necessarily during working days. Reply time: depending on the complexity of your issue, the answer can be provided between a few hours up to 48 hours. In the particular instances we will notify you if extra time will be required to solve the issue.

×

Notice

The forum is in read only mode.

Error in KInstance 2.0.0 when saving the avatar

4 years 6 months ago - 4 years 6 months ago #957 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:

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

Strange thing... the avatar is saved correctly, but it is better when there is no error.
4 years 6 months ago #958 by Eugene S.
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.

Like our extensions for Kunena?
Add your voice to the JED listing with a 100 score review: bit.ly/2cIg8pF
Thanks!
4 years 6 months ago #974 by Eugene S.
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
					<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!
4 years 6 months ago #979 by Eugene S.
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!
4 years 6 months ago - 4 years 5 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.
Moderators: Eugene S.

Partners