TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 195,994
  • Total Topics: 21,325
  • Online today: 318
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 266
  • Total: 266

Admin.php php error

Started by lonrot, July 30, 2007, 08:30:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lonrot

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]

lonrot

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); } ?>

G6Cad

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.

lonrot

Okay, I'll try to reupload them again.

lonrot

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

This website is proudly hosted on Crocweb Cloud Website Hosting.