I just tried installing this module. I get the following error:

Parse error: syntax error, unexpected '=', expecting ')' in /home/triapolo/public_html/modules/cmt/cmt.module on line 1096

Here is line 1096 and the lines below it:

function cmt_build_ladder($tid, &$ladders = array(), $ladder = 0, $level = 0, $lterm = array() \) {
  if ($parents = cmt_get_parents($tid, 'tid')) {
    $level = $level + 1;
    $ladders[$ladder][$level] = $parents;
    $terms = array_keys($parents);
    sort($terms);  // sort function works by reference
    $tid = $terms[0];
    $lterm[$level] = $tid;
    cmt_build_ladder($tid, $ladders, $ladder, $level, $lterm);
  }

Comments

Snaders’s picture

I am getting this error as well.

My message is similar, however not defined as syntax error.
Parse error: parse error, unexpected '=', expecting ')' in /home/content/n/i/c/*mydomain*/html/modules/cmt.bak/cmt.module on line 1100.

Can anyone explain a solution for this?

mlncn’s picture

Assigned: Unassigned » mlncn
Priority: Normal » Critical

Yeah, I can explain this. Your module maintainer is an idiot who didn't know how to check the issue queues.

Fix forthcoming.