PHP warning

Cannot modify header information - headers already sent by (output started at /home/monthly/public_html/index.php:1)

/home/monthly/yiiroot/framework/web/CHttpRequest.php(716)

704     /**
705      * Redirects the browser to the specified URL.
706      * @param string $url URL to be redirected to. If the URL is a relative one, the base URL of
707      * the application will be inserted at the beginning.
708      * @param boolean $terminate whether to terminate the current application
709      * @param integer $statusCode the HTTP status code. Defaults to 302. See {@link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html}
710      * for details about HTTP status code.
711      */
712     public function redirect($url,$terminate=true,$statusCode=302)
713     {
714         if(strpos($url,'/')===0)
715             $url=$this->getHostInfo().$url;
716         header('Location: '.$url, true, $statusCode);
717         if($terminate)
718             Yii::app()->end();
719     }
720 
721     /**
722      * Returns the user preferred language.
723      * The returned language ID will be canonicalized using {@link CLocale::getCanonicalID}.
724      * This method returns false if the user does not have language preference.
725      * @return string the user preferred language.
726      */
727     public function getPreferredLanguage()
728     {

Stack Trace

#2
+
 /home/monthly/protected/controllers/ListingsController.php(73): CController->redirect("/")
68               if (isset($listing->complex))
69               $this->breadcrumbs[$listing->complex] = $this->breadcrumbs[$listing->city] . '/complex/' . $listing->complex;
70               $this->breadcrumbs[] = 'Listing ID: ' . $listing->id; */
71             $this->renderPartial('r-view', array('blogs' => $blogs, 'listing' => $listing, 'infavs' => $infavs, 'inwatchlist' => $inwatchlist, 'user' => User::model()->with('profile')->findByPk($listing->user_id)));
72         } else
73             $this->redirect('/');
74     }
75 
76     /**
77      * Returns the data model based on the primary key given in the GET variable.
78      * If the data model is not found, an HTTP exception will be raised.
#9
+
 /home/monthly/protected/modules/rights/components/RController.php(36): CFilter->filter(CFilterChain)
31     */
32     public function filterRights($filterChain)
33     {
34         $filter = new RightsFilter;
35         $filter->allowedActions = $this->allowedActions();
36         $filter->filter($filterChain);
37     }
38 
39     /**
40     * @return string the actions that are always allowed separated by commas.
41     */
#17
+
 /home/monthly/public_html/index.php(44): CApplication->run()
39     throw new Exception('Multibyte function overloading in PHP must be disabled for string functions (2).');
40 }
41 PHPExcel_Shared_String::buildCharacterSets();
42 
43 //Now you can run application
44 $app->run();
2024-03-19 02:37:14 Apache Yii Framework/1.1.10