Support » Fixing WordPress » 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 7 hours, 26 minutes ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Ryan Welcher

    (@welcher)

    This is an older topic, but might be able to shed some light on potential causes.

    Thread Starter 67comet

    (@67comet)

    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?

    which mysql version you are using ?

    https://make.wordpress.org/hosting/handbook/server-environment/

    i hope you have installed all the necessary extension and server requirements

    Thread Starter 67comet

    (@67comet)

    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 (Doesn’t show Debug info when I go directly to it, just the white page).

    So stuck 🙂 ..

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.