Announcement

Collapse
No announcement yet.

Call to undefined function mysqli_init() in includes\class_core.php on line 1182

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • juretic
    New Member
    • Jul 2008
    • 3
    • 3.7.x

    Call to undefined function mysqli_init() in includes\class_core.php on line 1182

    PHP Version 5.2.3
    MySQL 5.0
    IIS6 - Win2003
    vBulletin 3.7.2

    Have just purchased and downloaded vBulletin 3.7.2 and installed onto a new dedicated Fasthosts server (http://www.fasthosts.co.uk/dedicated...S-450_Windows/)

    Followed the installation process to the letter and used mysqli as opposed to mysql due to PHP 5.2.3 but receive the following error:

    Fatal error: Call to undefined function mysqli_init() in ~\includes\class_core.php on line 1128

    If I change to mysql instead of mysqli I receive an error simply stating -

    Database error - The database has encountered a problem [Which is pretty useless as far as error messages go]

    I've checked and double checked the settings in php.ini

    I installed a WordPress blog onto the same domain earlier without any problems whatsoever - so what is the problem here?
  • Zachery
    Former vBulletin Support
    • Jul 2002
    • 59097

    #2
    You don't have mysqli installed in php, as for the database error, right click and view source, then copy and paste the error here. We need to see the real error message to troubleshoot.

    Comment

    • juretic
      New Member
      • Jul 2008
      • 3
      • 3.7.x

      #3
      OK, well I was assuming that mysqli installed in PHP, yet the extension in the php.ini is uncommented and the .dll is in the correct directory.

      Here is the source for the database error:

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html>
      <head>
      <title> Database Error</title>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
      <meta name="ROBOTS" content="NOINDEX,NOFOLLOW,NOARCHIVE" />
      <style type="text/css">
      <!--
      body { background-color: white; color: black; }
      #container { width: 400px; }
      #message { width: 400px; color: black; background-color: #FFFFCC; }
      #bodytitle { font: 13pt/15pt verdana, arial, sans-serif; height: 35px; vertical-align: top; }
      .bodytext { font: 8pt/11pt verdana, arial, sans-serif; }
      a:link { font: 8pt/11pt verdana, arial, sans-serif; color: red; }
      a:visited { font: 8pt/11pt verdana, arial, sans-serif; color: #4e4e4e; }
      -->
      </style>
      </head>
      <body>
      <table cellpadding="3" cellspacing="5" id="container">
      <tr>
      <td><img src="./image.php?type=dberror" alt="Database Error" width="48" height="48" /></td>
      <td id="bodytitle" width="100%">Database error</td>
      </tr>
      <tr>
      <td class="bodytext" colspan="2">The database has encountered a problem.</td>
      </tr>
      <tr>
      <td colspan="2"><hr /></td>
      </tr>
      <tr>
      <td class="bodytext" colspan="2">
      Please try the following:
      <ul>
      <li>Load the page again by clicking the <a href="#" onclick="window.location = window.location;">Refresh</a> button in your web browser.</li>
      <li>Open the <a href="/">dev.footballdirector.com</a> home page, then try to open another page.</li>
      <li>Click the <a href="javascript:history.back(1)">Back</a> button to try another link.</li>
      </ul>
      </td>
      </tr>
      <tr>
      <td class="bodytext" colspan="2">The dev.footballdirector.com forum technical staff have been notified of the error, though you may <a href="mailto:[email protected]">contact them</a> if the problem persists.</td>
      </tr>
      <tr>
      <td class="bodytext" colspan="2">&nbsp;<br />We apologise for any inconvenience.</td>
      </tr>
      </table>

      <!--
      Database error in vBulletin :
      Invalid SQL:
      SELECT *
      FROM datastore
      WHERE title IN ('','options','bitfields','attachmentcache','forumcache','usergroupcache','stylecache','la nguagecache','products','pluginlist','cron','profilefield','loadcache','noticecache','user stats','birthdaycache','maxloggedin','iconcache','eventcache','mailqueue','blogstats','blo gcategorycache');
      MySQL Error : Table 'fdforum.datastore' doesn't exist
      Error Number : 1146
      Request Date : Monday, July 28th 2008 @ 03:07:28 PM
      Error Date : Monday, July 28th 2008 @ 03:07:28 PM
      Script : http://dev.footballdirector.com/forum/index.php
      Referrer :
      IP Address : 84.9.127.53
      Username :
      Classname : vB_Database
      MySQL Version :
      -->

      </body>
      </html>

      Comment

      • Zachery
        Former vBulletin Support
        • Jul 2002
        • 59097

        #4
        That error message means you havent yet installed the software.


        Comment

        • juretic
          New Member
          • Jul 2008
          • 3
          • 3.7.x

          #5
          ok, it's installed now.

          Thanks for your help.

          btw, i would prefer to use the mysqli extension rather than the mysql one.

          You are saying that this is a PHP issue?

          Pah.

          Any ideas on how i can confirm whether or not this extension is loaded into PHP?
          Last edited by juretic; Mon 28 Jul '08, 7:44am.

          Comment

          • Wayne Luke
            vBulletin Technical Support Lead
            • Aug 2000
            • 73383
            • 6.0.X

            #6
            You can look at your PHP Info page under Maintenance in the Admin CP. It would be listed as one of the additional modules. If it is not listed then you need to contact your hosting provider to have it included.
            Translations provided by Google.

            Wayne Luke
            The Rabid Badger - a vBulletin Cloud demonstration site.
            vBulletin 5 API

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...
            😀
            🥰
            🤢
            😎
            😡
            👍
            👎