<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Transition Technology: Ticket #753: wiki.transitionnetwork.org displaying error</title>
    <link>http://localhost:8080/trac/ticket/753</link>
    <description>&lt;p&gt;
This is rather weird, the site was working yesterday, now at &lt;a class="ext-link" href="https://wiki.transitionnetwork.org/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://wiki.transitionnetwork.org/&lt;/a&gt; we have:
&lt;/p&gt;
&lt;pre class="wiki"&gt;bar(), etc etc) which throw parse errors in # PHP 4. Setup.php and ObjectCache.php have structures invalid in PHP 5.0 and # 5.1, respectively. if ( !function_exists( 'version_compare' ) || version_compare( phpversion(), '5.3.2' ) &amp;lt; 0 ) { // We need to use dirname( __FILE__ ) here cause __DIR__ is PHP5.3+ require dirname( __FILE__ ) . '/includes/PHPVersionError.php'; wfPHPVersionError( 'index.php' ); } require __DIR__ . '/includes/WebStart.php'; $mediaWiki = new MediaWiki(); $mediaWiki-&amp;gt;run();
&lt;/pre&gt;</description>
    <language>en-us</language>
    <image>
      <title>Transition Technology</title>
      <url>/trac/chrome/site/TransitionNetwork-Logo-Web-Small.jpg</url>
      <link>http://localhost:8080/trac/ticket/753</link>
    </image>
    <generator>Trac 0.12.5</generator>
    <item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 04 Jul 2014 08:24:20 GMT</pubDate>
      <title>description changed</title>
      <link>http://localhost:8080/trac/ticket/753#comment:1</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/753#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;description&lt;/strong&gt;
              modified (&lt;a href="/trac/ticket/753?action=diff&amp;amp;version=1"&gt;diff&lt;/a&gt;)
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 04 Jul 2014 08:47:32 GMT</pubDate>
      <title>hours, status, totalhours changed; resolution set</title>
      <link>http://localhost:8080/trac/ticket/753#comment:2</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/753#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.35&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.35&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
We are not the first people with this error:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="http://serverfault.com/questions/594708/mediawiki-does-not-run-for-the-first-time"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://serverfault.com/questions/594708/mediawiki-does-not-run-for-the-first-time&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
The page being displayed is the index.php file as plain text, this is the content of the file:
&lt;/p&gt;
&lt;pre class="wiki"&gt;&amp;lt;?php
/**
 * This is the main web entry point for MediaWiki.
 *
 * If you are reading this in your web browser, your server is probably
 * not configured correctly to run PHP applications!
 *
 * See the README, INSTALL, and UPGRADE files for basic setup instructions
 * and pointers to the online documentation.
 *
 * https://www.mediawiki.org/
 *
 * ----------
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 * http://www.gnu.org/copyleft/gpl.html
 *
 * @file
 */
# Bail on old versions of PHP.  Pretty much every other file in the codebase
# has structures (try/catch, foo()-&amp;gt;bar(), etc etc) which throw parse errors in
# PHP 4. Setup.php and ObjectCache.php have structures invalid in PHP 5.0 and
# 5.1, respectively.
if ( !function_exists( 'version_compare' ) || version_compare( phpversion(), '5.3.2' ) &amp;lt; 0 ) {
        // We need to use dirname( __FILE__ ) here cause __DIR__ is PHP5.3+
        require dirname( __FILE__ ) . '/includes/PHPVersionError.php';
        wfPHPVersionError( 'index.php' );
}
require __DIR__ . '/includes/WebStart.php';
$mediaWiki = new MediaWiki();
$mediaWiki-&amp;gt;run();
&lt;/pre&gt;&lt;p&gt;
So it looks like a Nginx config issue. Some changes were made yesterday to enable large files to be uploaded on &lt;a class="new ticket" href="http://localhost:8080/trac/ticket/719" title="defect: Transition Culture HTML Problems (new)"&gt;ticket:719&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
Also this line in &lt;tt&gt;/etc/nginx/sites-enabled/10-wiki&lt;/tt&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;        #location ~ /(api|index|opensearch_desc|redirect|trackback|img_auth|load|thumb)\.php?$ {
        location ~ /(api|img_auth|index|load|opensearch_desc|profileinfo|thumb|thumb_handler?)$ {
&lt;/pre&gt;&lt;p&gt;
Was edited. the old version being commented out, as it had started generating errors yesterday, the closing ) bracket was added.
&lt;/p&gt;
&lt;p&gt;
Don't think this was related to a Nginx upgrade, the last one was 3 weeks ago, &lt;a class="new ticket" href="http://localhost:8080/trac/ticket/692#comment:51" title="maintenance: Debian Updates (new)"&gt;ticket:692#comment:51&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
Edited the above to:
&lt;/p&gt;
&lt;pre class="wiki"&gt;        # Pass php requests to php5-fpm
        # https://tech.transitionnetwork.org/trac/ticket/753
        #location ~ /(api|index|opensearch_desc|redirect|trackback|img_auth|load|thumb)\.php?$ {
        location ~ /(api|img_auth|index|load|opensearch_desc|profileinfo|thumb|thumb_handler)\.php$ {
&lt;/pre&gt;&lt;p&gt;
I think the mistake in the regular expression must have crept in when trying to resolve the problems with the last &lt;a class="wiki" href="http://localhost:8080/trac/wiki/MediaWiki"&gt;MediaWiki&lt;/a&gt; upgrade, &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/736" title="maintenance: Upgrade to MediaWiki 1.23.0 (closed: fixed)"&gt;ticket:736&lt;/a&gt;, it's now resolved.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>