fut Posted July 29, 2005 Share Posted July 29, 2005 If you look here, where you click on any of the links i get this error: Fatal error: Cannot redeclare preorder() (previously declared in /home/crazyj61/public_html/includes/boxes/categories.php:17) in /home/crazyj61/public_html/includes/boxes/categories.php on line 17 This is the code of for line 17 and the ones around // Preorder tree traversal function preorder($cid, $level, $foo, $cpath) { global $categories_string, $HTTP_GET_VARS; Anyone know what the problem might be and how to fix it? Thank you. Link to comment Share on other sites More sharing options...
Guest Posted July 29, 2005 Share Posted July 29, 2005 If you look here, where you click on any of the links i get this error: Fatal error: Cannot redeclare preorder() (previously declared in /home/crazyj61/public_html/includes/boxes/categories.php:17) in /home/crazyj61/public_html/includes/boxes/categories.php on line 17 This is the code of for line 17 and the ones around // Preorder tree traversal function preorder($cid, $level, $foo, $cpath) { global $categories_string, $HTTP_GET_VARS; Anyone know what the problem might be and how to fix it? Thank you. <{POST_SNAPBACK}> Somewhere you will be using include('categories.php') or require('categories.php') twice. If you try to include the same file twice you get errors such as this, it's not that predorder() is declared twice in categories.php but the fact you are trying to include it twice. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.