View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
06279Bug reportsInstallationpublic2012-07-19 23:34
ReporterMazi Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.00RC4 
Target Version2.00RC5Fixed in Version2.00RC5 
Summary06279: "Cannot modify header information" warning after DB update
Description

I just grabbed the latest 2.0 code from Github and had to do a DB update. The screen shown after the update (http://localhost/git/dev/Limesurvey/index.php/admin/update/db/continue/yes) contains the following error message:

The LimeSurvey database is being upgraded (2012-06-26 14:54:15) .

Please be patient...

Database update finished (2012-06-26 14:54:16)

PHP warning

Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\git\dev\LimeSurvey\framework\web\CController.php:876)

C:\xampp\htdocs\git\dev\LimeSurvey\application\core\Survey_Common_Action.php(199)

187 $aData['sImageURL'] = Yii::app()->getConfig('adminimageurl');
188
189 $aData = $this->_addPseudoParams($aData);
190 $aViewUrls = (array) $aViewUrls;
191 $sViewPath = '/admin/';
192
193 if (!empty($sAction))
194 {
195 $sViewPath .= $sAction . '/';
196 }
197
198 // Send HTTP header
199 header("Content-type: text/html; charset=UTF-8"); // needed for correct UTF-8 encoding
200
201
202 // Header
203 if(!isset($aData['display']['header']) || $aData['display']['header'] !== false)
204 {
205 Yii::app()->getController()->_getAdminHeader();
206 }
207
208
209 // Menu bars
210 if (!isset($aData['display']['menu_bars']) || ($aData['display']['menu_bars'] !== false && (!is_array($aData['display']['menu_bars']) || !in_array('browse', array_keys($aData['display']['menu_bars'])))))
211 {

Stack Trace
#0

C:\xampp\htdocs\git\dev\LimeSurvey\application\core\Survey_Common_Action.php(199): header("Content-type: text/html; charset=UTF-8")

194 {
195 $sViewPath .= $sAction . '/';
196 }
197
198 // Send HTTP header
199 header("Content-type: text/html; charset=UTF-8"); // needed for correct UTF-8 encoding
200
201
202 // Header
203 if(!isset($aData['display']['header']) || $aData['display']['header'] !== false)
204 {

#1

C:\xampp\htdocs\git\dev\LimeSurvey\application\controllers\admin\update.php(563): Survey_Common_Action->_renderWrappedTemplate("update", array("output" => "<br />Database has been successfully upgraded to version 160<br ..."), array("display" => array("header" => false, "menu_bars" => false)))

558 @param array $aData Data to be passed on. Optional.
559
/
560 protected function _renderWrappedTemplate($sAction = 'update', $aViewUrls = array(), $aData = array())
561 {
562 $aData['display']['menu_bars'] = false;
563 parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData);
564 }
565
566 }

#2

C:\xampp\htdocs\git\dev\LimeSurvey\application\controllers\admin\update.php(550): update->_renderWrappedTemplate("update", array("output" => "<br />Database has been successfully upgraded to version 160<br ..."), array("display" => array("header" => false)))

545 $aViewUrls['output'] = CheckForDBUpgrades();
546 }
547
548 $aData['display']['header'] = false;
549
550 $this->_renderWrappedTemplate('update', $aViewUrls, $aData);
551 }
552
553 /*
554
Renders template(s) wrapped in header and footer
555 *

Steps To Reproduce

Maybe decrementing the DB version helps to start the Db update process?

Additional Information

Might be related to some recent encoding fix
// Send HTTP header
header("Content-type: text/html; charset=UTF-8"); // needed for correct UTF-8 encoding)

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)120626
I will donate to the project if issue is resolvedNo
BrowserFirefox 12
Database type & versionMySQL 5
Server OS (if known)Win 7
Webserver software & version (if known)Apache 2.2
PHP Version5.3.1

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2012-07-06 11:35

administrator   ~19644

Fix committed to Yii branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&amp;id=8912

c_schmitz

c_schmitz

2012-07-19 23:34

administrator   ~19832

2.00RC6 released.

Related Changesets

LimeSurvey: Yii 4b03f4f0

2012-07-06 02:34:50

c_schmitz

Details Diff
Fixed issue 06279: "Cannot modify header information" warning after DB update Affected Issues
06279
mod - application/controllers/admin/update.php Diff File
mod - application/core/Survey_Common_Action.php Diff File
mod - application/helpers/update/update_helper.php Diff File

Issue History

Date Modified Username Field Change
2012-06-26 14:57 Mazi New Issue
2012-06-26 14:57 Mazi Status new => assigned
2012-06-26 14:57 Mazi Assigned To => c_schmitz
2012-07-06 11:34 c_schmitz Status assigned => resolved
2012-07-06 11:34 c_schmitz Fixed in Version => 2.00RC5
2012-07-06 11:34 c_schmitz Resolution open => fixed
2012-07-06 11:35 c_schmitz Changeset attached => LimeSurvey Yii 4b03f4f0
2012-07-06 11:35 c_schmitz Note Added: 19644
2012-07-19 23:34 c_schmitz Note Added: 19832
2012-07-19 23:34 c_schmitz Status resolved => closed