PHP warning

Cannot modify header information - headers already sent by (output started at /home/atv/atvbtr.ru/protected/modules/begemot/extensions/contentKit/behavior/CBOrderModelBehavior.php:57)

/usr/local/lib/php/framework/web/CHttpRequest.php(911)

899     /**
900      * Redirects the browser to the specified URL.
901      * @param string $url URL to be redirected to. Note that when URL is not
902      * absolute (not starting with "/") it will be relative to current request URL.
903      * @param boolean $terminate whether to terminate the current application
904      * @param integer $statusCode the HTTP status code. Defaults to 302. See {@link https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html}
905      * for details about HTTP status code.
906      */
907     public function redirect($url,$terminate=true,$statusCode=302)
908     {
909         if(strpos($url,'/')===0 && strpos($url,'//')!==0)
910             $url=$this->getHostInfo().$url;
911         header('Location: '.$url, true, $statusCode);
912         if($terminate)
913             Yii::app()->end();
914     }
915 
916     /**
917      * Parses an HTTP Accept header, returning an array map with all parts of each entry.
918      * Each array entry consists of a map with the type, subType, baseType and params, an array map of key-value parameters,
919      * obligatorily including a `q` value (i.e. preference ranking) as a double.
920      * For example, an Accept header value of <code>'application/xhtml+xml;q=0.9;level=1'</code> would give an array entry of
921      * <pre>
922      * array(
923      *        'type' => 'application',

Stack Trace

#2
+
 /home/atv/atvbtr.ru/protected/modules/catalog/controllers/SiteController.php(115): CController->redirect("/catalog/service_114/Obsluzhivanie_vezdehoda_272.html", true, 301)
110 
111 
112         $itemHref = Yii::app()->urlManager->createUrl('catalog/site/itemView', $hrefParams);
113 
114         if ($itemHref !== $uri && $modifid == 0) {
115             $this->redirect($itemHref, true, 301);
116         }
117 
118 
119 
120         $this->render($itemViewFile, array('item' => $item, 'category' => $category,'modifItem'=>$modifItem));
#12
+
 /home/atv/service.atvgroup.ru/index.php(19): CApplication->run()
14 defined('YII_DEBUG') or define('YII_DEBUG', true);
15 // specify how many levels of call stack should be shown in each log message
16 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
17 require_once($yii);
18 
19 Yii::createWebApplication($config)->run();
2025-03-15 05:58:18 nginx/1.27.4 Yii Framework/1.1.31-dev