• Resolved Romanko

    (@romanko)


    Hi, I have a wordpress site backup from 2021 and recently decided to revive it. I have uploaded the files to the hosting and the database. But I get this error on the domain now>

    Deprecated: Optional parameter $content declared before required parameter $post is implicitly treated as a required parameter in /home/cdcearth/public_html/wp-includes/functions.php on line 840

    Fatal error: Uncaught mysqli_sql_exception: Access denied for user ‘cdcearth_adminko’@’localhost’ to database ‘cdcearth_cdc’ in /home/cdcearth/public_html/wp-includes/wp-db.php:1084 Stack trace: #0 /home/cdcearth/public_html/wp-includes/wp-db.php(1084): mysqli_select_db(Object(mysqli), ‘cdcearth_cdc’) #1 /home/cdcearth/public_html/wp-includes/wp-db.php(1718): wpdb->select(‘cdcearth_cdc’, Object(mysqli)) #2 /home/cdcearth/public_html/wp-includes/wp-db.php(632): wpdb->db_connect() #3 /home/cdcearth/public_html/wp-includes/load.php(482): wpdb->__construct(‘cdcearth_admink…’, ‘password’, ‘cdcearth_cdc’, ‘localhost’) #4 /home/cdcearth/public_html/wp-settings.php(124): require_wp_db() #5 /home/cdcearth/public_html/wp-config.php(90): require_once(‘/home/cdcearth/…’) #6 /home/cdcearth/public_html/wp-load.php(37): require_once(‘/home/cdcearth/…’) #7 /home/cdcearth/public_html/wp-blog-header.php(13): require_once(‘/home/cdcearth/…’) #8 /home/cdcearth/public_html/index.php(17): require(‘/home/cdcearth/…’) #9 {main} thrown in /home/cdcearth/public_html/wp-includes/wp-db.php on line 1084

    I am no expert in php, can anyone help? Thank you very much.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    Thread Starter Romanko

    (@romanko)

    thank you, the deprecated error is no more. But the database error remains still. Can anyone help me please? Thank you very much.

    Fatal error: Uncaught mysqli_sql_exception: Access denied for user ‘cdcearth_adminko’@’localhost’ to database ‘cdcearth_cdc’ in /home/cdcearth/public_html/wp-includes/wp-db.php:1084 Stack trace: #0 /home/cdcearth/public_html/wp-includes/wp-db.php(1084): mysqli_select_db(Object(mysqli), ‘cdcearth_cdc’) #1 /home/cdcearth/public_html/wp-includes/wp-db.php(1718): wpdb->select(‘cdcearth_cdc’, Object(mysqli)) #2 /home/cdcearth/public_html/wp-includes/wp-db.php(632): wpdb->db_connect() #3 /home/cdcearth/public_html/wp-includes/load.php(482): wpdb->__construct(‘cdcearth_admink…’, ‘password’, ‘cdcearth_cdc’, ‘localhost’) #4 /home/cdcearth/public_html/wp-settings.php(124): require_wp_db() #5 /home/cdcearth/public_html/wp-config.php(90): require_once(‘/home/cdcearth/…’) #6 /home/cdcearth/public_html/wp-load.php(37): require_once(‘/home/cdcearth/…’) #7 /home/cdcearth/public_html/wp-blog-header.php(13): require_once(‘/home/cdcearth/…’) #8 /home/cdcearth/public_html/index.php(17): require(‘/home/cdcearth/…’) #9 {main} thrown in /home/cdcearth/public_html/wp-includes/wp-db.php on line 1084

    Thread Starter Romanko

    (@romanko)

    Nevermind, it happens if you don’t set the permissions for the user of the database. It is working now.

    Moderator t-p

    (@t-p)

    Glad its sorted ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error: Uncaught mysqli_sql_exception:’ is closed to new replies.