Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Topics must relate to a currently supported version of Kunena. If you are unsure what is the current supported version of Kunena, please go to the download page.

If you are having problems then, for your own benefit, it would save us all a lot of time if you would kindly post your configuration report when you ask for help from this forum. If you do not post your configuration report we will not ask you for it but you will probably not get your problem solved, either.

Question Profile errors

More
5 months 2 weeks ago #234191 by drbo
Profile errors was created by drbo
We are getting errors on the profile page.Attempt to assign property "value" on string 
Code:
components/com_kunena/src/Controllers/UserController.php (596) On the profile page all the Socila media entries are showing this.

 Edit Profile InformationBirthdate Location Gender  Web site Name Web site URL X /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="This is your X (previously Twitter) username." />Facebook /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="This is your Facebook username." />MySpace /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="This is your MySpace username." />Linkedin /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="This is your LinkedIn username." />Linkedin Company /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="This is your linkedIn company" />Digg /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="This is your Digg username." />SKYPE /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="This is your Skype nickname." />YIM /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="This is your Yahoo! Instant Messenger nickname." />Google /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="This is your Google username." />GitHub /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="This is your GitHub username." />Microsoft /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="This is your Microsoft account." />Blogger /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="This is your Blogger username." />Flickr /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="This is your Flickr username." />Instagram /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="This is your Instagram account." />QQ /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="This is your QQ username." />Qzone /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="This is your Qzone account." />Weibo /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="This is your Weibo account." />Wechat /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="This is your Wechat account." />VK /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="This is your VK username." />Telegram /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="This is your Telegram username." />Apple /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="This is your Apple account." />Vimeo /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="This is your Vimeo username." />WhatsApp /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="This is your whatsapp number." />Youtube /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="This is your Youtube account." />Odnoklassniki /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="This is your Odnoklassniki account." />Pinterest /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="COM_KUNENA_MYPROFILE_PINTEREST_DESC" />Reddit /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="COM_KUNENA_MYPROFILE_REDDIT_DESC" />BlueSky /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="This is your BlueSkyApp username." />Threads /var/www/public_html/fth/html/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129
" data-bs-toggle="tooltip" title="This is your Threads nickname." />Signature  







This message contains confidential information

Database collation check: cgv0m_kunena_aliases have wrong collation of type utf8_general_ci on field alias  cgv0m_kunena_aliases have wrong collation of type utf8_general_ci on field type  cgv0m_kunena_aliases have wrong collation of type utf8_general_ci on field item  cgv0m_kunena_announcement have wrong collation of type utf8_general_ci on field title  cgv0m_kunena_announcement have wrong collation of type utf8_general_ci on field sdescription  cgv0m_kunena_announcement have wrong collation of type utf8_general_ci on field description  cgv0m_kunena_attachments have wrong collation of type utf8_general_ci on field hash  cgv0m_kunena_attachments have wrong collation of type utf8_general_ci on field folder  cgv0m_kunena_attachments have wrong collation of type utf8_general_ci on field filetype  cgv0m_kunena_attachments have wrong collation of type utf8_general_ci on field filename  cgv0m_kunena_attachments have wrong collation of type utf8_general_ci on field filename_real  cgv0m_kunena_attachments have wrong collation of type utf8_general_ci on field caption  cgv0m_kunena_categories have wrong collation of type utf8_general_ci on field name  cgv0m_kunena_categories have wrong collation of type utf8_general_ci on field alias  cgv0m_kunena_categories have wrong collation of type utf8_general_ci on field icon  cgv0m_kunena_categories have wrong collation of type utf8_general_ci on field accesstype  cgv0m_kunena_categories have wrong collation of type utf8_general_ci on field channels  cgv0m_kunena_categories have wrong collation of type utf8_general_ci on field description  cgv0m_kunena_categories have wrong collation of type utf8_general_ci on field headerdesc  cgv0m_kunena_categories have wrong collation of type utf8_general_ci on field class_sfx  cgv0m_kunena_categories have wrong collation of type utf8_general_ci on field iconset  cgv0m_kunena_categories have wrong collation of type utf8_general_ci on field params  cgv0m_kunena_configuration have wrong collation of type utf8_general_ci on field params  cgv0m_kunena_logs have wrong collation of type utf8_general_ci on field ip  cgv0m_kunena_logs have wrong collation of type utf8_general_ci on field operation  cgv0m_kunena_messages have wrong collation of type utf8_general_ci on field name  cgv0m_kunena_messages have wrong collation of type utf8_general_ci on field email  cgv0m_kunena_messages have wrong collation of type utf8_general_ci on field subject  cgv0m_kunena_messages have wrong collation of type utf8_general_ci on field ip  cgv0m_kunena_messages have wrong collation of type utf8_general_ci on field modified_reason  cgv0m_kunena_polls have wrong collation of type utf8_general_ci on field title  cgv0m_kunena_polls_options have wrong collation of type utf8_general_ci on field text  cgv0m_kunena_sessions have wrong collation of type utf8_general_ci on field allowed  cgv0m_kunena_sessions have wrong collation of type utf8_general_ci on field readtopics  cgv0m_kunena_topics have wrong collation of type utf8_general_ci on field subject  cgv0m_kunena_topics have wrong collation of type utf8_general_ci on field first_post_message  cgv0m_kunena_topics have wrong collation of type utf8_general_ci on field first_post_guest_name  cgv0m_kunena_topics have wrong collation of type utf8_general_ci on field last_post_message  cgv0m_kunena_topics have wrong collation of type utf8_general_ci on field last_post_guest_name  cgv0m_kunena_topics have wrong collation of type utf8_general_ci on field params  cgv0m_kunena_user_categories have wrong collation of type utf8_general_ci on field params  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field status_text  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field view  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field signature  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field avatar  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field personalText  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field location  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field icq  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field yim  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field microsoft  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field telegram  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field vk  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field skype  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field x_social  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field facebook  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field google  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field myspace  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field linkedin  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field friendfeed  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field digg  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field instagram  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field qzone  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field weibo  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field wechat  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field apple  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field blogspot  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field flickr  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field bebo  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field websitename  cgv0m_kunena_users have wrong collation of type utf8_general_ci on field websiteurl  cgv0m_kunena_users_banned have wrong collation of type utf8_general_ci on field ip  cgv0m_kunena_users_banned have wrong collation of type utf8_general_ci on field reason_private  cgv0m_kunena_users_banned have wrong collation of type utf8_general_ci on field reason_public  cgv0m_kunena_users_banned have wrong collation of type utf8_general_ci on field comments  cgv0m_kunena_users_banned have wrong collation of type utf8_general_ci on field params  cgv0m_kunena_version have wrong collation of type utf8_general_ci on field version  cgv0m_kunena_version have wrong collation of type utf8_general_ci on field versionname  cgv0m_kunena_version have wrong collation of type utf8_general_ci on field state  
       

Joomla! SEF: Enabled | Joomla! SEF rewrite: Enabled | FTP layer: Disabled |
       

This message contains confidential information
htaccess: Exists | PHP environment: Max execution time: 1200 seconds | Max execution memory: 512M | Max file upload: 

Kunena menu details:

Warning: Spoiler!

Joomla default template details : ja_purity_iv | author: JoomlArt | version: 1.3.0 | creationdate: Ocr 17, 2025

Kunena default template details : NTS KBee | author: Nice Theme Store Team | version: 6.1.7 | creationdate: 2025-10-05

Kunena template params:

Warning: Spoiler!

Kunena version detailed: Kunena 6.4.7 | 2025-11-03 [ Git Repository ]
        | Kunena detailed configuration:

Warning: Spoiler!
| Kunena integration settings:
Warning: Spoiler!
| Joomla! detailed language files installed:
Warning: Spoiler!

Third-party components: UddeIm 5.6.1

Third-party SEF components: None

Plugins: Content - Kunena Discuss 6.1.0

Modules: Kunena Latest 6.0.7 | Kunena Stats 6.0.5 | Kunena Login 6.0.6 | Kunena Search 6.0.5

Please Log in or Create an account to join the conversation.

More
5 months 2 weeks ago #234192 by drbo
Replied by drbo on topic Profile errors
I figured it out so here is a report and a fix

Bug Report — Fatal error when editing user profile (social fields undefined)

Kunena version: 6.4.7
Joomla version: 5.4.0
PHP version: 8.3.27
Database: MariaDB 10.5.29
Template: NTS KBee (no social options exposed)
Site: (redacted)

Summary

When accessing Kunena → Edit Profile, the page shows warnings related to undefined social objects.
When clicking Save, Kunena throws a fatal error:

Attempt to assign property "value" on string
components/com_kunena/src/Controllers/UserController.php:596


The system appears to expect $socials[$key] to be an object with →value, but it is actually being returned as a string, causing assignment to fail.

Visible Front-End Warning

Before saving, Kunena outputs warnings such as:

Warning: Attempt to read property "value" on string
/components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php on line 129


Because:

$this->socials[$key]->value


…is not an object.

Fatal Error on Save

From:

components/com_kunena/src/Controllers/UserController.php

Offending block:

foreach($socials as $key => $social) {
if ($input->$method->get('social'.$key, '', 'string') !== null) {
$socials->$key->value = $input->$method->get('social'.$key, '', 'string');
}
}


This results in:

Attempt to assign property "value" on string


because $socials->$key is a string, not an object.

Root Cause

KunenaUserSocials::getInstance($user->userid) returns an array of strings, not objects, so:

$social->value is invalid

$socials->$key->value = … is invalid

The template expects objects, but the controller receives strings.

Temporary Workaround

Disable the social processing block in UserController.php:

/*
foreach($socials as $key => $social) {
if ($input->$method->get('social'.$key, '', 'string') !== null) {
$socials->$key->value = $input->$method->get('social'.$key, '', 'string');
}
}
$socials->save();
*/


This prevents the fatal error, but profile social fields are currently unusable.

Expected Behavior

Kunena should either return social objects with →value
or

The controller should not try to access →value on string data
or

Social fields should be fully disabled when not available in template configuration

Request

Please update the KunenaUserSocials model and/or UserController so that:

$socials[$key] is always an object with a value property
OR

The controller checks is_object() before assignment
OR

Social fields are disabled gracefully when no social configuration exists in the template

Controller patch (fix fatal, keep backward compatibility)

File:

components/com_kunena/src/Controllers/UserController.php

Current block (around line 591):

// Save values entered by user for the social
$socials = KunenaUserSocials::getInstance($user->userid);

foreach($socials as $key => $social) {
if ($input->$method->get('social'.$key, '', 'string') !== null) {
$socials->$key->value = $input->$method->get('social'.$key, '', 'string');
}
}

$socials->save();

🔧 Proposed replacement (unified diff)
--- a/components/com_kunena/src/Controllers/UserController.php
+++ b/components/com_kunena/src/Controllers/UserController.php
@@ -591,11 +591,27 @@
- // Save values entered by user for the social
- $socials = KunenaUserSocials::getInstance($user->userid);
-
- foreach($socials as $key => $social) {
- if ($input->$method->get('social'.$key, '', 'string') !== null) {
- $socials->$key->value = $input->$method->get('social'.$key, '', 'string');
- }
- }
-
- $socials->save();
+ // Save values entered by user for the social
+ $socials = KunenaUserSocials::getInstance($user->userid);
+
+ foreach ($socials as $key => $social)
+ {
+ // Get posted value for this social field
+ $value = $input->$method->get('social' . $key, null, 'string');
+
+ // Nothing posted for this key
+ if ($value === null)
+ {
+ continue;
+ }
+
+ // Normal case: $social is an object with a "value" property
+ if (is_object($social))
+ {
+ $social->value = $value;
+ }
+ else
+ {
+ // Be defensive: keep scalar/string formats without causing fatals
+ $socials->$key = $value;
+ }
+ }
+
+ $socials->save();

Optional template hardening (avoid “read property on string” warnings)

File:

components/com_kunena/template/nts_kbee/layouts/user/edit/profile/default.php
Block currently doing:

<?php foreach ($this->socials as $key => $social): ?>
...
value="<?php echo $this->escape($social->value); ?>"

🔧 Proposed robust version
- <?php foreach ($this->socials as $key => $social): ?>
+ <?php foreach ($this->socials as $key => $social): ?>
+ <?php
+ // Normalize $social so template can always use ->value
+ if (is_string($social)) {
+ $socialObj = (object) ;
+ } elseif (is_object($social)) {
+ $socialObj = $social;
+ } else {
+ // Unknown format, skip to avoid notices
+ continue;
+ }
+ ?>
<tr>
<td>
<label for="social<?php echo $key; ?>">
<?php echo Text::_('COM_KUNENA_MYPROFILE_' . \strtoupper($key)); ?>
</label>
</td>
<td>
<input class="form-control hasTooltip"
id="social<?php echo $key; ?>" type="text"
maxlength="100"
- name="social<?php echo $key; ?>" value="<?php echo $this->escape($social->value); ?>"
+ name="social<?php echo $key; ?>" value="<?php echo $this->escape($socialObj->value); ?>"
data-bs-toggle="tooltip"
title="<?php echo Text::_('COM_KUNENA_MYPROFILE_' . \strtoupper($key) . '_DESC') ?>" />
</td>
</tr>
<?php endforeach; ?>

Hope this helps someone else.

Please Log in or Create an account to join the conversation.

More
5 months 2 weeks ago - 5 months 2 weeks ago #234193 by Pinkeltje
Replied by Pinkeltje on topic Profile errors
First of all you are using a third party Kunena template, so you should bring this problem to the attention of developers. 
Furthermore your database collation is wrong, so you should fix that.
And I see errors in your menu structure, so please check that as well.
See also this topic.
Last edit: 5 months 2 weeks ago by Pinkeltje.

Please Log in or Create an account to join the conversation.

More
5 months 2 weeks ago #234194 by rich
Replied by rich on topic Profile errors
@drbo It is very difficult (if not impossible) to help someone who does not accept advice. Your database tables still have the wrong collation, just like three months ago, and your main menu still contains the same incorrectly created Kunena menu items. As long as these errors cannot be corrected and excluded as error rates, there is little point in discussing further problems.

Important! Always create a backup before you make any changes to your website!

Please Log in or Create an account to join the conversation.

More
5 months 1 week ago #234195 by 9themestore
Replied by 9themestore on topic Profile errors
Hi @drbo,
Thank you very much for using our template. We will check this issue on the NTS KBee template and respond to you as soon as possible.

- Please provide your site url if it has been lived.
- Please share tip if it worked fine with you.
- Don't be shy about using the "Thanks" button below if you found my comment helpful :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.307 seconds