victormenezes Posted February 28, 2014 Share Posted February 28, 2014 (edited) hello I'm having problems with my code this: Fatal error: Call-time pass-by-reference has been removed in C:\Program Files\EasyPHP-DevServer-14.1VC9\data\localweb\engine\forum\classes\dle_forum_function.php on line 99 this line list($t,$p) = $this->stats_count($forum['id'], &$array, true); I already removed the & but always appear to remove 3 more & I remove the lines only at the end of this error: Parse error: syntax error, unexpected '?>', expecting function (T_FUNCTION) in C:\Program Files\EasyPHP-DevServer-14.1VC9\data\localweb\engine\forum\classes\dle_forum_function.php on line 273 I already removed one:list($t,$p) = $this->stats_count($forum['id'], &$array, true); two: $list = $this->forum_list_build($id, '-1', '', '', &$forums, $optgroup); three: $return = $this->forum_list_build($main_id, $row['id'], $marker, $return, &$forums, $optgroup); what should I do? Edited February 28, 2014 by victormenezes Quote Link to comment Share on other sites More sharing options...
requinix Posted February 28, 2014 Share Posted February 28, 2014 (edited) Keep removing the &s until they're all gone. You're aware that the function definitions do need to use &s, right? Like function stats_count($forumID, &$array, $bool) { Parse error: syntax error, unexpected '?>', expecting function (T_FUNCTION) in C:\Program Files\EasyPHP-DevServer-14.1VC9\data\localweb\engine\forum\classes\dle_forum_function.php on line 273That's something completely different. What is the code from lines 250 to 300 (for a start)? Edited February 28, 2014 by requinix Quote Link to comment Share on other sites More sharing options...
victormenezes Posted February 28, 2014 Author Share Posted February 28, 2014 only goes up to 273 // ******************************************************************************** // access read list // ******************************************************************************** function access_read_list () { global $forums_array; $forums = array(); foreach ($forums_array as $forum) { if ($forum['access_read']) { if (check_access($forum['access_read'])) { $forums[] = $forum['id']; } } } return $forums; } } ?> Quote Link to comment Share on other sites More sharing options...
requinix Posted February 28, 2014 Share Posted February 28, 2014 I don't see the problem in there. Can you post the whole file? Quote Link to comment Share on other sites More sharing options...
victormenezes Posted March 1, 2014 Author Share Posted March 1, 2014 i am fix erro thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.