https://bugzilla.wikimedia.org/show_bug.cgi?id=59640

       Web browser: ---
            Bug ID: 59640
           Summary: Flow: PHP Warnings from TreeRepository and header()
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Flow
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: sp...@wikimedia.org
                CC: ebernhard...@wikimedia.org, oke...@wikimedia.org,
                    pandiculat...@gmail.com, sp...@wikimedia.org
    Classification: Unclassified
   Mobile Platform: ---

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to