Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • I seem to have resolved it after reading a stackoverflow post

    I had uncommented the extension mysqli but it was not working still

    The fix happened after I added the path to the ext folder

    extension_dir = “C:\php\ext” instead of extension_dir = “ext”

    referr to the post: https://stackoverflow.com/questions/10615436/fatal-error-call-to-undefined-function-mysql-connect

    So after reading a post on stackoverflow I managed to resolve it

    after uncommenting the mysqli extention

    the fix happened after I added a path to the ext folder where all the extensions are sitting.

    extension_dir = “C:\php\ext” instead of extension_dir = “ext”

    I have the same error and I enabled the debug on the wp-config file to find this.

    Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\Apache24\htdocs\clickmedia\wp-includes\wp-db.php:1658 Stack trace: #0 C:\Apache24\htdocs\clickmedia\wp-includes\wp-db.php(631): wpdb->db_connect() #1 C:\Apache24\htdocs\clickmedia\wp-includes\load.php(426): wpdb->__construct(‘admin’, ‘081447Addax’, ‘clickmedia’, ‘127.0.0.1’) #2 C:\Apache24\htdocs\clickmedia\wp-settings.php(126): require_wp_db() #3 C:\Apache24\htdocs\clickmedia\wp-config.php(90): require_once(‘C:\\Apache24\\htd…’) #4 C:\Apache24\htdocs\clickmedia\wp-load.php(37): require_once(‘C:\\Apache24\\htd…’) #5 C:\Apache24\htdocs\clickmedia\wp-blog-header.php(13): require_once(‘C:\\Apache24\\htd…’) #6 C:\Apache24\htdocs\clickmedia\index.php(17): require(‘C:\\Apache24\\htd…’) #7 {main} thrown in C:\Apache24\htdocs\clickmedia\wp-includes\wp-db.php on line 1658

    I have also looked for the nd_mysql but I don’t have it on my extension list on the php.ini

    These are the extensions that are currently enabled

    C:\Users\User>php -m
    [PHP Modules]
    bcmath
    calendar
    Core
    ctype
    date
    dom
    filter
    hash
    iconv
    json
    libxml
    mysqli
    mysqlnd
    pcre
    PDO
    Phar
    readline
    Reflection
    session
    SimpleXML
    SPL
    standard
    tokenizer
    xml
    xmlreader
    xmlwriter
    zip
    zlib

    I am also running on a local machine, PHP 7.4.5

    I also don’t have the PHP configuration application to enable or disable as one suggested. So I use the PHP.ini file to make changes.

    Please help with this same issue, I have a Apache and PHP 7.4.5 running on a Windows 10 machine. I was still trying to install wordpress when I encountered an error

    There has been a critical error on your website.

    Learn more about debugging in WordPress.

    I enabled debugging and entered the db details on the wp-config files manually but then I started getting this error.

    Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\Apache24\htdocs\clickmedia\wp-includes\wp-db.php:1658 Stack trace: #0 C:\Apache24\htdocs\clickmedia\wp-includes\wp-db.php(631): wpdb->db_connect() #1 C:\Apache24\htdocs\clickmedia\wp-includes\load.php(426): wpdb->__construct(‘admin’, ‘081447Addax’, ‘clickmedia’, ‘127.0.0.1’) #2 C:\Apache24\htdocs\clickmedia\wp-settings.php(126): require_wp_db() #3 C:\Apache24\htdocs\clickmedia\wp-config.php(90): require_once(‘C:\\Apache24\\htd…’) #4 C:\Apache24\htdocs\clickmedia\wp-load.php(37): require_once(‘C:\\Apache24\\htd…’) #5 C:\Apache24\htdocs\clickmedia\wp-blog-header.php(13): require_once(‘C:\\Apache24\\htd…’) #6 C:\Apache24\htdocs\clickmedia\index.php(17): require(‘C:\\Apache24\\htd…’) #7 {main} thrown in C:\Apache24\htdocs\clickmedia\wp-includes\wp-db.php on line 1658

    I have tried to follow @fcolombo’s suggestion but
    1. I dont have the PHP configuration utility you refer to. So I edited the PHP.ini file
    2. I can’t find nd_mysql as stated

    I only found this line which I uncommented.

    extension=mysqli

    there is also a this line
    [mysqlnd]
    with other configurations for mysqlnd, could this be the same as nd_mysql?

    Your help would be much appreciated. Stuck trying to to sort this out for hours

Viewing 4 replies - 1 through 4 (of 4 total)