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

       Web browser: ---
             Bug #: 40471
           Summary: I have installed and am running on MySQL and get the
                    fatal error going to the main index.php page
           Product: MediaWiki
           Version: 1.19.2
          Platform: PC
        OS/Version: Windows Server 2008
            Status: UNCONFIRMED
          Severity: blocker
          Priority: Unprioritized
         Component: Database
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: jbmetr...@yahoo.com
    Classification: Unclassified
   Mobile Platform: ---


Fatal error: Call to undefined function mysql_error() in
C:\inetpub\wwwroot\wiki\includes\db\DatabaseMysql.php on line 305

This is the code in the file (which comes from a plain vanilla install) with
the arrow pointing to the line the error refers to:

    function lastError() {
        if ( $this->mConn ) {
            # Even if it's non-zero, it can still be invalid
            wfSuppressWarnings();
            $error = mysql_error( $this->mConn );
            if ( !$error ) {
                $error = mysql_error();
            }
            wfRestoreWarnings();
        } else {
===>            $error = mysql_error();
        }
        if( $error ) {
            $error .= ' (' . $this->mServer . ')';
        }
        return $error;
    }

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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