Hello,
I am baffled by this and complete dumb as to the reason for this error:
{"readyState":4,"responseText":"","status":500,"statusText":"Internal Server Error"}
The code / function I get this error in is as shown here:
function get_gens_array($server, $iarray, &$tarray) {
$tmpstr = "";
foreach($iarray as $item) {
$httpurl = $server."/platform/tree/ancestry?person=$item&generations=8";
$jsondata=http($httpurl, $_SESSION['token']);
$jsonid=json_decode($jsondata,true);
foreach($jsonid['persons'] as $p)
{
$mid = $p['id'];
if (!in_array($mid, $tarray)) {
$tmpstr .= $mid.",";
array_push($tarray, $mid);
wf($mid);
}
}
}
$tmpstr = substr($tmpstr,0,strlen($tmpstr)-1);
$tmparray = explode(',',$tmpstr);
get_gens_array($server, $tmparray, $tarray);
}
I appreciative of any insight on why this is happening and how I am causing it.
Thank you,
Kim H.