Title: Fatal Error : Debug Enabled
Last modified: September 2, 2021

---

# Fatal Error : Debug Enabled

 *  Resolved [67comet](https://wordpress.org/support/users/67comet/)
 * (@67comet)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-debug-enabled/)
 * Working on my friends 32bit computer from across the state. It is running Gentoo,
   WordPress (latest as of August 2021), PHP7.4, MySQL, and Apache2 (with PHP/MySQL
   modules enabled). I access it via ssh/bash.
 * Here is the Debug that the page hands out (I also did a basic info.php page to
   check php and it worked fine no errors).
 * I’ve tried to install this several times from fresh downloaded latest.zip files
   from WordPress.org. It loads the initial install page, I fill in user, password,
   databases, etc… As soon as I click next/install, it flips the Fatal Error page(
   so I went in and enabled debug).
 * > `Fatal error: Uncaught Error: Call to undefined function mysql_connect() in/
   > var/www/www.watchingskycandy.com/wordpress/wp-includes/wp-db.php:1685 Stack
   > trace: #0 /var/www/www.watchingskycandy.com/wordpress/wp-includes/wp-db.php(
   > 632): wpdb->db_connect() #1 /var/www/www.watchingskycandy.com/wordpress/wp-
   > includes/load.php(545): wpdb->__construct() #2 /var/www/www.watchingskycandy.
   > com/wordpress/wp-settings.php(124): require_wp_db() #3 /var/www/www.watchingskycandy.
   > com/wordpress/wp-config.php(95): require_once(‘/var/www/www.wa…’) #4 /var/www/
   > www.watchingskycandy.com/wordpress/wp-load.php(37): require_once(‘/var/www/
   > www.wa…’) #5 /var/www/www.watchingskycandy.com/wordpress/wp-blog-header.php(
   > 13): require_once(‘/var/www/www.wa…’) #6 /var/www/www.watchingskycandy.com/
   > wordpress/index.php(17): require(‘/var/www/www.wa…’) #7 {main} thrown in /var/
   > www/www.watchingskycandy.com/wordpress/wp-includes/wp-db.php on line 1685
 * Any ideas is appreciated.
    -  This topic was modified 4 years, 8 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-debug-enabled%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Ryan Welcher](https://wordpress.org/support/users/welcher/)
 * (@welcher)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-debug-enabled/#post-14828954)
 * [This is an older topic](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-call-to-undefined-function-mysql_connect-in/),
   but might be able to shed some light on potential causes.
 *  Thread Starter [67comet](https://wordpress.org/support/users/67comet/)
 * (@67comet)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-debug-enabled/#post-14829009)
 * Hello. I tried that last week. I didn’t have that line in mine. I tried adding
   it to see if maybe mine was backwards and it was the same error. Is that line
   in another file maybe?
 *  [corusx](https://wordpress.org/support/users/corusx/)
 * (@corusx)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-debug-enabled/#post-14830066)
 * which mysql version you are using ?
 * [https://make.wordpress.org/hosting/handbook/server-environment/](https://make.wordpress.org/hosting/handbook/server-environment/)
 * i hope you have installed all the necessary extension and server requirements
 *  Thread Starter [67comet](https://wordpress.org/support/users/67comet/)
 * (@67comet)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-debug-enabled/#post-14832819)
 * Gentoo Linux (GNU/Linux 5.4.48)
 * PHP 7.4.21
 * MySQL/8.0.25
 * Apache/2.4.48
 *     ```
       Loaded Modules:
        core_module (static)
        so_module (static)
        http_module (static)
        mpm_prefork_module (static)
        actions_module (shared)
        alias_module (shared)
        auth_basic_module (shared)
        authn_anon_module (shared)
        authn_core_module (shared)
        authn_dbm_module (shared)
        authn_file_module (shared)
        authz_core_module (shared)
        authz_dbm_module (shared)
        authz_groupfile_module (shared)
        authz_host_module (shared)
        authz_owner_module (shared)
        authz_user_module (shared)
        autoindex_module (shared)
        cgi_module (shared)
        cgid_module (shared)
        deflate_module (shared)
        dir_module (shared)
        env_module (shared)
        expires_module (shared)
        ext_filter_module (shared)
        filter_module (shared)
        headers_module (shared)
        include_module (shared)
        info_module (shared)
        log_config_module (shared)
        logio_module (shared)
        mime_module (shared)
        mime_magic_module (shared)
        negotiation_module (shared)
        rewrite_module (shared)
        setenvif_module (shared)
        socache_shmcb_module (shared)
        speling_module (shared)
        ssl_module (shared)
        unique_id_module (shared)
        unixd_module (shared)
        usertrack_module (shared)
        vhost_alias_module (shared)
        php7_module (shared)
       ```
   
 * I’m at a loss. It seems everything is installed like it should be.
 * I did a text index.php and it showed PHP was all there and working, I don’t know
   where else to look. I’ve tossed, and restarted a fresh install of WordPress a
   few times (Dumped the MySQL database), re-download the latest file from WordPress,
   make a new database, and it goes from the page asking for the database info, 
   to the white page of death as quick as you can let go of the mouse button).
 * MySQL user can access and modify MySQL (tested with CLI)
    Edited wp-config.php
   to correct database/user/password Changed user to apache for wordpress directory
   Changed Went directly to [http://www.watchingskycandy.com/wp-admin/install.php](http://www.watchingskycandy.com/wp-admin/install.php)(
   Doesn’t show Debug info when I go directly to it, just the white page).
 * So stuck 🙂 ..
 *  [corusx](https://wordpress.org/support/users/corusx/)
 * (@corusx)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-debug-enabled/#post-14834011)
 * the website seems live for me
 * [https://prntscr.com/1r35gp1](https://prntscr.com/1r35gp1)
 * [https://prntscr.com/1r35ife](https://prntscr.com/1r35ife)
 *  Thread Starter [67comet](https://wordpress.org/support/users/67comet/)
 * (@67comet)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-debug-enabled/#post-14834070)
 * Yes I need to fix a JSON error but the MYSQL error was a PHP compile error. When
   I compiled PHP I didn’t have a USE flag for MYSQL.. that side of the house is
   good.. Now I gotta figure out the JSON error when trying to write a post..

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

The topic ‘Fatal Error : Debug Enabled’ is closed to new replies.

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [Install](https://wordpress.org/support/topic-tag/install/)
 * [linux](https://wordpress.org/support/topic-tag/linux/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [67comet](https://wordpress.org/support/users/67comet/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-debug-enabled/#post-14834070)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
