By Niranjan Deshpande on Thursday, 18 June 2015
Posted in Technical Issues
Replies 5
Likes 0
Views 437
Votes 0
Hi,

When I publish latest blogs module I am getting following error.

Fatal error: Call to a member function format() on a non-object in administrator\components\com_easyblog\includes\easyblog.php on line 1059


I checked that line and it is..
$adapter = EB::quickpost()->getAdapter($row->posttype)->format($row);


Commented above line and site works fine.

Is this a bug? or some deprecated function? Is it ok if I comment it out.

Thanks
Hi Niranjan Despande,

I am really sorry for the delay of this reply as it is a weekend for us here.

Unfortunately we are not available add your Skype account.

By the way, can you try go to your this file replace the code and see how it goes? -> JoomlaFolder\administrator\components\com_easyblog\includes\easyblog.php

// LINE 1057

public static function formatMicroblog( &$row )
{
$adapter = EB::quickpost()->getAdapter($row->posttype)->format($row);
}

// Replace

public static function formatMicroblog( &$row )
{
$adapter = EB::quickpost()->getAdapter($row->posttype);

if ($adapter === false) {
return;
}

$adapter->format($row);
}

·
Saturday, 20 June 2015 14:31
·
0 Likes
·
0 Votes
·
0 Comments
·
HI Niranjan Deshpande,

Sorry for late reply to this,
Can i have your Joomla backend and FTP access so we can help you check on this? because I can't replicate this error in my local.
·
Friday, 19 June 2015 02:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex Wong,

This is happening since we upgraded from EB3.9 to EB5.0. I am trying this on my local, unfortunately I cannot upgrade EB on my test site unless everything works smoothly on my local. So cannot provide you FTP or admin access.

It will be great if we catch up on Skype. My skype id is amolchakane. If you contact me there I can provide you access of my local by TeamViewer.

Looking forward to catch up on skype.

Thanks
·
Friday, 19 June 2015 13:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex Wong,

This worked like a charm..!!!
Thank you.
·
Saturday, 20 June 2015 19:51
·
0 Likes
·
0 Votes
·
0 Comments
·
hi Niranjan Deshpande,

You're welcome, glad to heard your issues resolved.
·
Sunday, 21 June 2015 14:54
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post