Active
Project:
Community Managed Taxonomy
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
30 Aug 2007 at 12:58 UTC
Updated:
16 Apr 2008 at 16:55 UTC
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
Comment #1
Snaders commentedI 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?
Comment #2
mlncn commentedYeah, I can explain this. Your module maintainer is an idiot who didn't know how to check the issue queues.
Fix forthcoming.