Jump to content

erro Call-time pass


victormenezes

Recommended Posts

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 by victormenezes
Link to comment
Share on other sites

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 273

That's something completely different. What is the code from lines 250 to 300 (for a start)? Edited by requinix
Link to comment
Share on other sites

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

?>
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.