Error - Missing argument 2 for get_member_thumbnail

Since upgrading to 7.0.8 I get this error message in the avatar area of user profile pages.

Warning: Missing argument 2 for get_member_thumbnail(), called in /home/site/public_html/inc/classes/BxDolPageView.php(607) : eval()'d code on line 2 and defined in /home/site/public_html/inc/design.inc.php on line 204

 I've already uploaded fresh versions of both files, and cleared the caches several times. Any ideas on what is causing it?

Quote · 2 Feb 2012

Please post the code in BxDolPageView.php file.

and did you added any block or any code anywhere to display member thumbnail?

so much to do....
Quote · 2 Feb 2012

Hello

Looks like BxDolPageView.php file has original code. The line 607 is 

$aResult = eval($sContent);

the method is 

function getBlockCode_PHP( $iBlockID, $sContent ) {

ob_start();

$aResult = eval($sContent);

$sContent = ob_get_clean();

return !empty($aResult) ? $aResult : $sContent;

}

It means that the problem is in the PHP code attached to some block which is stored in Dolphin's data base. Try to deactivate blocks one by one from Profile page via admin panel -> builders -> pages blocks -> profile. So, you'll be able to find the block which causing the issue.

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 2 Feb 2012

Thank you Prashank25 and AntonLV for your help. Yes,  my BxDolPageView.php is completely stock and I even deleted the old and uploaded the BxDolPageView.php file directly from a fresh download of the Dolphin files.

I tried the suggestion of removing the blocks on the profile page one-by-one with no luck. I even went a head and removed all but the avatar block from the profile page and the error still shows in the avatar block even when the avatar block is the only block on the page.

 

 

Quote · 2 Feb 2012

maybe that avatar block is the problem. you should know that that file doesn't call this function so it must be a code on page. 

so much to do....
Quote · 2 Feb 2012

Hello

It would be better if I can take a look at your site myself.

You may contact me via internal mailbox.

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 3 Feb 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.