- Forum
- Products for Joomla
- Kunena 5.x templates
- RND Kinstance
- Fatal error 500 when editting Kunena user profile
Fatal error 500 when editting Kunena user profile
- Wouter NL
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 22
- Thank you received: 0
5 years 3 months ago #792
by Wouter NL
Fatal error 500 when editting Kunena user profile was created by Wouter NL
Hi,
I am using the kinstamnce template.
When I will edit the user profile in Kunena I receiove a fatal error 500 when clicking the Edit profile button.
In the Kunena log, I see this:
When I set the Error reporting in Joomla to Developer of Maximum, I don;t receive any information.
M<aybe that is because I am directed to a new page with nthis message:
@Support team: Please let me know if you need any credentials for access to the website.
The forum is public, but to edit the profile you need a user account.
bmwcruiser.nl/forum
I am using the kinstamnce template.
When I will edit the user profile in Kunena I receiove a fatal error 500 when clicking the Edit profile button.
In the Kunena log, I see this:
{"type":4096,"message":"Object of class stdClass could not be converted to string","file":"\/home\/u29749p23537\/domains\/bmwcruiser.nl\/public_html\/components\/com_kunena\/template\/kinstance\/layouts\/user\/edit\/profile\/default.php","line":114}
When I set the Error reporting in Joomla to Developer of Maximum, I don;t receive any information.
M<aybe that is because I am directed to a new page with nthis message:
@Support team: Please let me know if you need any credentials for access to the website.
The forum is public, but to edit the profile you need a user account.
bmwcruiser.nl/forum
- Eugene S.
-
- Offline
- Administrator
-
5 years 3 months ago #793
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 Fatal error 500 when editting Kunena user profile
Hello Wouter,
The Kunena development team has updated template layout in new Kunena 5.1 and made various changes which affects templates made for previous Kunena 5.0.
I suppose you are using latest Kunena 5.1 version while our templates are designed for previous version 5.0.
We need to update all templates to make them Kunena 5.1 compliant. It is a huge work, so we are planning to finish the tasks this Summer.
Right now there are two ways:
- Downgrade Kunena back to version 5.0.
- Use default template until we finish the update.
Please await the new version of the template.
The Kunena development team has updated template layout in new Kunena 5.1 and made various changes which affects templates made for previous Kunena 5.0.
I suppose you are using latest Kunena 5.1 version while our templates are designed for previous version 5.0.
We need to update all templates to make them Kunena 5.1 compliant. It is a huge work, so we are planning to finish the tasks this Summer.
Right now there are two ways:
- Downgrade Kunena back to version 5.0.
- Use default template until we finish the update.
Please await the new version of the template.
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 3 months ago #794
by Wouter NL
Replied by Wouter NL on topic Fatal error 500 when editting Kunena user profile
POK thanks for your reply.
I don;t think it is a good idea to go back to Kunena 5.0
In 5.1 there are a couple of security updates.
So I hope you can update this template as soon as possible to the latest Kunena release.
I don;t think it is a good idea to go back to Kunena 5.0
In 5.1 there are a couple of security updates.
So I hope you can update this template as soon as possible to the latest Kunena release.
- Dmitry
-
- Offline
- Administrator
-
Less
More
- Posts: 42
- Thank you received: 1
5 years 3 months ago - 5 years 3 months ago #798
by Dmitry
Replied by Dmitry on topic Fatal error 500 when editting Kunena user profile
Hello Wouter!
A quick fix for this error - open file /components/com_kunena/template/{yourtemplate}/layouts/user/edit/profile/default.php and find this code:
Change it to:
A quick fix for this error - open file /components/com_kunena/template/{yourtemplate}/layouts/user/edit/profile/default.php and find this code:
<?php foreach ($this->social as $social) : ?>
<?php if ($social != 'qq') : ?>
<?php $tooltip = JText::_("COM_KUNENA_MYPROFILE_{$social}"). '::' . JText::_("COM_KUNENA_MYPROFILE_{$social}_DESC"); ?>
<?php else: ?>
<?php $tooltip = ''; ?>
<?php endif; ?>
<div class="control-group">
<label class="control-label hasTooltip" for="social-<?php echo $social; ?>" title="<?php echo $tooltip; ?>">
<?php echo JText::_('COM_KUNENA_MYPROFILE_' . $social); ?>
</label>
<div class="controls">
<input class="form-control input-block-level" id="social-<?php echo $social; ?>" type="text" name="<?php echo $social ?>"
value="<?php echo $this->escape($this->profile->$social); ?>" />
</div>
</div>
<?php endforeach; ?>
Change it to:
<?php foreach ($this->social as $key => $social) : ?>
<?php if ($social != 'qq') : ?>
<?php $tooltip = JText::_("COM_KUNENA_MYPROFILE_{$key}"). '::' . JText::_("COM_KUNENA_MYPROFILE_{$key}_DESC"); ?>
<?php else: ?>
<?php $tooltip = ''; ?>
<?php endif; ?>
<div class="control-group">
<label class="control-label hasTooltip" for="social-<?php echo $key; ?>" title="<?php echo $tooltip; ?>">
<?php echo JText::_('COM_KUNENA_MYPROFILE_' . $key); ?>
</label>
<div class="controls">
<input class="form-control input-block-level" id="social-<?php echo $key; ?>" type="text" name="<?php echo $key; ?>"
value="<?php echo $this->escape($this->profile->$key); ?>" />
</div>
</div>
<?php endforeach; ?>
Last edit: 5 years 3 months ago by Dmitry.
The following user(s) said Thank You: Wouter NL
- Wouter NL
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 22
- Thank you received: 0
5 years 3 months ago #808
by Wouter NL
Replied by Wouter NL on topic Fatal error 500 when editting Kunena user profile
Hi Dimitry,
Thanks for your solution.
That solved this issue.
Thanks for your solution.
That solved this issue.
- Dmitry
-
- Offline
- Administrator
-
Less
More
- Posts: 42
- Thank you received: 1
5 years 1 month ago #823
by Dmitry
Replied by Dmitry on topic Fatal error 500 when editting Kunena user profile
Nice! We will include this fix in next version update.
Moderators: Eugene S.