我已经让这段代码工作了几年,现在我不相信有任何改变,但几天前它刚停止工作并开始给我这个错误:
警告:implode()[function.implode]:传入的参数无效 /home/vss/public_html/dashboard/modules/addons/vssapp/classes/class.adminarea.php 在第277行
捕获致命错误:无法转换类stdClass的对象 串入 /home/vss/public_html/dashboard/modules/addons/vssapp/dropbox/Dropbox/OAuth/Consumer/Curl.php 在第102行
class.adminarea.php :
foreach($imagedata as $image){
$data = '';
$sizes = getimagesize($image['path'].'?dl=false');
$data .= 'Filename: '."".$image['filename']."\n";
$data .= 'Image Size:' ."".$sizes[0].'px x '.$sizes[1].'px'."\n";
$data .= 'Path: '."".$image['path'].'?dl=false'."\n";
$data .= 'Rooms: '." ".ucwords(implode(", ", array_keys(unserialize($image['rooms']))))."\n";
if($image['couch'] != ''){$data .= 'Couch Position: '."".$image['couch']."\n";}
if($image['headboard'] != ''){$data .= 'Headboard Position: '."".$image['headboard']."\n";}
if($image['generaldiningroom'] != ''){$data .= 'Dining Room Position: '."".$image['generaldiningroom']."\n";}
if($image['generallivingroom'] != ''){$data .= 'Living Room Position: '."".$image['generallivingroom']."\n";}
$data .= 'Furniture: '."".implode(", ", unserialize($image['furniture']))."\n";
$data .= 'Info: '."".$image['info']."\n\n--------------------------\n\n";
$imagedetails[] = $data;
}
Curl.php :
// Check if an error occurred and throw an Exception
if (!empty($response['body']->error)) {
$message = $response['body']->error . ' (Status Code: ' . $response['code'] . ')';
throw new \Dropbox\Exception($message);
}
return $response;
}
对发生的事情以及如何解决问题的想法?