title: MediaWiki: Warning: session_write_close(): Failed to write session data (user)
body: <p>I have the following error message from MediaWiki, since upgrading to 1.29.2. PHP version: 5.6.32 (cgi-fcgi)</p>
  
  <pre><code>Warning: session_write_close(): Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/tmp) in [PATH TO]/includes/session/SessionManager.php on line 469
  </code></pre>
  
  <p>Looking at SessionManager.php line 469, I see this line:</p>
  
  <p><code>session_write_close();</code></p>
  
  <p>in this function:</p>
  
  <pre><code>public function shutdown() {
      if ( $this-&gt;allSessionBackends ) {
          $this-&gt;logger-&gt;debug( 'Saving all sessions on shutdown' );
          if ( session_id() !== '' ) {
              // @codeCoverageIgnoreStart
              session_write_close();
          }
          // @codeCoverageIgnoreEnd
          foreach ( $this-&gt;allSessionBackends as $backend ) {
              $backend-&gt;shutdown();
          }
      }
  }
  </code></pre>
  
  <p>How can I resolve this?</p>
  
  <p>Additional info:<br>
  PHP version 5.6.32<br>
  Linux 2.6.32-696.16.1.el6.x86_64<br>
  session.save_path value: /tmp (this is set to permissions 777)</p>