Last modified: 2014-02-19 22:16:34 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T61640, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59640 - Flow: PHP Warnings from TreeRepository and header()
Flow: PHP Warnings from TreeRepository and header()
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Flow (Other open bugs)
master
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-04 07:48 UTC by spage
Modified: 2014-02-19 22:16 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description spage 2014-01-04 07:48:00 UTC
I noticed in fluorine:/a/mw-log/apache2.log

Jan  4 06:34:46 mw1202:  PHP Warning:  array_shift() expects parameter 1 to be array, null given in /usr/local/apache/common-local/php-1.23wmf9/extensions/Flow/includes/Repository/TreeRepository.php on line 230
Jan  4 06:34:46 mw1202:  PHP Warning:  header() expects parameter 3 to be long, string given in /usr/local/apache/common-local/php-1.23wmf9/includes/WebResponse.php on line 38


The first line seems familiar, but I can't find other examples.  The second has happened on ee-flow, but weeks ago:

9:[Sun Dec 22 21:17:15 2013] [error] [client 130.60.206.75] PHP Warning:  header() expects parameter 3 to be long, string given in /srv/mediawiki/includes/WebResponse.php on line 38, referer: http://ee-flow.wmflabs.org/wiki/Talk:Flow_bugs
10:[Sun Dec 22 21:18:09 2013] [error] [client 130.60.206.75] PHP Warning:  header() expects parameter 3 to be long, string given in /srv/mediawiki/includes/WebResponse.php on line 38, referer: http://ee-flow.wmflabs.org/wiki/Talk:Flow_bugs

The header() method's third parameter is
      * @param $http_response_code null|int Forces the HTTP response code to the specified value.

Maybe a failed API request or other failure is returning a string and not 500 or whatever.  It could be ParsoidUtils.php returning Parsoid's $response...

We should configure labs servers to spew PHP Warnings to the screen.
Comment 1 Bingle 2014-01-04 07:48:23 UTC
The WMF core features team tracks this bug on Mingle card https://mingle.corp.wikimedia.org/projects/flow/cards/687, but people from the community are welcome to contribute here and in Gerrit.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links