Fatal error: Only variables can be passed by reference in posting.php on line 554
Here is how I fixed it:
Edit includes/functions_search.php
Starting on line 112:
Код: Выделить всё
  $search_raw_words = array(); 
        $tempA= clean_words('post', $post_text, $stopword_array, $synonym_array); 
        $search_raw_words['text'] = split_words($tempA); 
        $tempB= clean_words('post', $post_title, $stopword_array, $synonym_array); 
        $search_raw_words['title'] = split_words($tempB); 
        @set_time_limit(0); Код: Выделить всё
                      $topic_type = ( $topic_type != $post_data['topic_type'] && !$is_auth['auth_sticky'] && !$is_auth['auth_announce'] ) ? $post_data['topic_type'] : $topic_type; 
                                $temp1=str_replace("\'", "''", $username); 
                                $temp2= str_replace("\'", "''", $subject); 
                                $temp3=str_replace("\'", "''", $message); 
                                $temp4= str_replace("\'", "''", $poll_title); 
submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, $temp1, $temp2, $temp3, $temp4, $poll_options, $poll_length); All I did was create temporary variables to hold the return values before passing them into a function that passes them by reference.
(с) нашёл на phpbb.com


