Syntax Error
SemperFideles - August 30, 2007 - 12:58
| Project: | Community Managed Taxonomy |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Benjamin Melançon |
| Status: | active |
Jump to:
Description
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);
}
#1
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?
#2
Yeah, I can explain this. Your module maintainer is an idiot who didn't know how to check the issue queues.
Fix forthcoming.