TinyPortal
Development => Feedback => Bugs/Errors => Topic started by: lonrot on July 30, 2007, 08:30:09 AM
Just moved from host and this error appears only when selecting TP Features.
Parse error: syntax error, unexpected T_ELSEIF, expecting ',' or ')' in /home/lonrot/domains/consolemaniak.com/public_html/Sources/TPortalAdmin.php on line 865[code]
Best regards.[/code]
Also there's another minor error that perhaps it's related to it, when I access admin board management, I get the follwing error on the upper corner:
array($row['bName'])); // Wrong childlevel...we can silently fix this... if ($boards[$row['ID_PARENT']]['tree']['node']['level'] != $row['childLevel'] - 1) db_query(" UPDATE {$db_prefix}boards SET childLevel = " . ($boards[$row['ID_PARENT']]['tree']['node']['level'] + 1) . " WHERE ID_BOARD = $row[ID_BOARD]", __FILE__, __LINE__); $boards[$row['ID_PARENT']]['tree']['children'][$row['ID_BOARD']] = array( 'node' => &$boards[$row['ID_BOARD']], 'is_first' => empty($boards[$row['ID_PARENT']]['tree']['children']), 'children' => array() ); $boards[$row['ID_BOARD']]['tree'] = &$boards[$row['ID_PARENT']]['tree']['children'][$row['ID_BOARD']]; } } } mysql_free_result($request); // Get a list of all the boards in each category (using recursion). $boardList = array(); foreach ($cat_tree as $catID => $node) { $boardList[$catID] = array(); recursiveBoards($boardList[$catID], $node); } } // Recursively get a list of boards. function recursiveBoards(&$_boardList, &$_tree) { if (empty($_tree['children'])) return; foreach ($_tree['children'] as $id => $node) { $_boardList[] = $id; recursiveBoards($_boardList, $node); } } // Returns whether the child board id is actually a child of the parent (recursive). function isChildOf($child, $parent) { global $boards; if (empty($boards[$child]['parent'])) return false; if ($boards[$child]['parent'] == $parent) return true; return isChildOf($boards[$child]['parent'], $parent); } ?>
When you moved host, are you sure you got all the files and folders uploaded correct and also did the DB get installed correct ?
Seems like some of your files are broken.
Okay, I'll try to reupload them again.
It was so simple, reuploading the TPAdmin file solved the issue *sight*
Well, now I need to see how to solve the other error.
Thanks