Message: Trying to get property of non-object
File: /home/xyxyxyxy/public_html/xyzxyz.org/ow_plugins/ynsocialbridge/controllers/socialbridge.php
Line: 49
I go to line 49 and it reads:
" if ($clientConfig -> apiParams)"
and here is the php code prior and after from line 40 to 63:
//get callback URL
$callbackUrl = OW::getRouter() -> urlForRoute('ynsocialbridge-connects');
$core = new YNSOCIALBRIDGE_CLASS_Core();
$arrObjServices = array();
foreach (array('facebook', 'twitter', 'linkedin') as $serviceName)
{
//check enable API
$clientConfig = YNSOCIALBRIDGE_BOL_ApisettingService::getInstance() -> getConfig($serviceName);
if ($clientConfig -> apiParams)
{
$params = unserialize($clientConfig -> apiParams);
if(!$params['key'] || !$params['secret'])
continue;
$obj = $core -> getInstance($serviceName);
$values = array(
'service' => $serviceName,
'userId' => OW::getUser() -> getId()
);
$tokenDto = $obj -> getToken($values);
$profile = null;
$connect_url = "";
$disconnect_url = OW::getRouter() -> urlForRoute('ynsocialbridge-disconnect') . "?service=" . $serviceName;
if ($tokenDto)
So my question is:
What do I need to change? (edit)