Archived from the Transloadit support forum. Originally posted on February 22, 2011; details may be outdated, see our docs for current behavior. Original thread
I’m using PHP 5.2.13 and I keep getting “Unsupported operand types on line 25 of TransloaditRequest.php”. I’m guessing this might be because I’m on an older version of PHP?
Here is the code:
$transloadit = new Transloadit(array(
'key' => 'MY_KEY',
'secret' => 'MY_SECRET'
));
foreach(...){
$response = $transloadit->createAssembly(array(
'params' => array(
'steps' => array(
'import'=>array('url'=>$url),
's3store'=>array('path'=>'thumbs/' . $id . '${file.meta.width}_${file.urlName}')
),
'template_id' => 'MY_TEMPLATE_ID',
'notify_url' => 'MY_NOTIFY_URL'
)
));
} // end foreach