Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Message Body displaying "{}" instead of message body

12 years 3 months ago
  • anand's Avatar
    Topic Author
  • anand
  • Offline
  • Junior Boarder
  • Posts: 101
  • Thank you received: 0
Licenses:
JomSocial Active AdAgency Expired Socialize Expired

Hello All,

We are using Joomla 2.5.20, JomSocial 3.2.0.7 & JoomForest Template 2.2v

After upgrade to JomSocial 3.2.0.7, messages displaying "{}" instead of message body.
How to fix it ?
It's important & urgent.

Kindly find the attachment for reference.


thanks,
Anand

Attachments:
12 years 3 months ago
Licenses:

Hi Anand,

Please try to put this fixes:
1. edit components/com_community/views/inbox/view.html.php
2 put this code at line 330:

$originalBodyContent = $row->body;
3. and put this code at line 334:
if ($row->body == '{}') {
    //backward compatibility, save the old data into content parameter if needed
    $newParam = new CParameter();
    $newParam->set('content', $originalBodyContent);
    $table = JTable::getInstance('Message','CTable');
    $table->load($row->id);
    $table->body = $newParam->toString();
    $table->store();
    $row->body =  new CParameter($table->body);
}

Let me know the result. If not works, please provide me Administrator & FTP access detail. By editing your first post at this topic, and put it at Site Info Form

Regards,
Albert

12 years 3 months ago
  • anand's Avatar
    Topic Author
  • anand
  • Offline
  • Junior Boarder
  • Posts: 101
  • Thank you received: 0
Licenses:
JomSocial Active AdAgency Expired Socialize Expired

Hi Albertus,

we have added the code but still we have problem & we have updated the login details please check.

thanks
anand

Albertus wrote: Hi Anand,

Please try to put this fixes:
1. edit components/com_community/views/inbox/view.html.php
2 put this code at line 330:

$originalBodyContent = $row->body;
3. and put this code at line 334:
if ($row->body == '{}') {
    //backward compatibility, save the old data into content parameter if needed
    $newParam = new CParameter();
    $newParam->set('content', $originalBodyContent);
    $table = JTable::getInstance('Message','CTable');
    $table->load($row->id);
    $table->body = $newParam->toString();
    $table->store();
    $row->body =  new CParameter($table->body);
}

Let me know the result. If not works, please provide me Administrator & FTP access detail. By editing your first post at this topic, and put it at Site Info Form

Regards,
Albert

12 years 3 months ago
Licenses:

Hi Anand,

your override for inbox.message.com not uptodate. please detele it from /public_html/templates/jf_social/html/com_community
or replace it with new one from /public_html/components/com_community/templates/jf_social_js_32
or you can edit it:

replace
<?php echo $msg->body; ?>

with 
<?php echo filter_var(htmlspecialchars_decode($content), FILTER_UNSAFE_RAW); ?>

Regards,
Albert

12 years 3 months ago
  • anand's Avatar
    Topic Author
  • anand
  • Offline
  • Junior Boarder
  • Posts: 101
  • Thank you received: 0
Licenses:
JomSocial Active AdAgency Expired Socialize Expired

Hi Albertus,

We have renamed inbox.message.php file and copied the inbox.message.php file from /public_html/components/com_community/templates/jf_social_js_32/. Still it's not working properly.

After click on Add Reply button it's showing message body with special characters.
If we reload the page, message body displaying properly.

Check the screenshots.

thanks,
Anand

Attachments:
12 years 3 months ago
Licenses:

Hi Anand,

after I check again, the correct override location must /public_html/templates/rt_ximenia/html/com_community/ because that location as default template. I already put the override file at there. please check it again about your issue.

Regards,
Albert

12 years 3 months ago
Licenses:

Hi Anand,

We have not received any response back from you in over 7 days, and would like to know if you consider this issue to be resolved. If you have any further questions, simply reply to this post.

Regards,
Albert

12 years 4 days ago
  • anand's Avatar
    Topic Author
  • anand
  • Offline
  • Junior Boarder
  • Posts: 101
  • Thank you received: 0
Licenses:
JomSocial Active AdAgency Expired Socialize Expired

Hello All,

We have upgraded jomsocial to 3.2.1.5 version, again we have same issue with messages. Displaying message body content as array format.
Attached screenshot for reference, please check.

thanks,
Anand

Attachments:
12 years 3 days ago
Licenses:

Hi Anand,

the problem with the JF Social template it self. they template not uptodate. please contact the template provider for official fix.
here I provide temporary fix for you.
/components/com_community/templates/jf_social_js_32/inbox.message.php line 34
From

<?php echo CStringHelper::autoLink(filter_var(htmlspecialchars_decode($msg->body), FILTER_UNSAFE_RAW)); ?>
To
<?php echo filter_var(htmlspecialchars_decode($content), FILTER_UNSAFE_RAW); ?>

Regards,
Albert

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW