Answers.Body: <p>It seems like you have two problems.</p>
  
  <p>As Pradeep mentioned in the comments - it seems like your underlying error is that the install is trying to create a database that already exists.  I can't tell for sure, because the error in #4 is cut off.</p>
  
  <p>Additionally, there's the second error (undefined function) which is unfortunately WordPress-specific and I don't know the solution.  However, completely removing/creating the CiviCRM database again (assuming that it's separate from WordPress) is likely to solve the first problem, and the second problem won't occur.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-05T22:41:28.753Z
Answers.Text: I had the exact same exact error; creating a new database in the mysql daemon, assigning the same DB user with all privileges and importing the database dump fixed  it for me. I still don't know the original cause. Hassan's fix didn't work, though others have said it will.
Answers.UserDisplayName: BlueDogRanch
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-15T21:42:29.003Z
Answers.LastActivityDate: 2018-01-15T21:42:29.003Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>Try adding following line in functions.php file of your child theme.</p>
  
  <p><code>require_once(ABSPATH . 'wp-admin/includes/screen.php');</code></p>
  
  <p>Which wordpress version and civicrm version are you trying?</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-15T19:15:37.360Z
Answers.LastActivityDate: 2018-01-15T19:15:37.360Z
Answers.UserDisplayName: Hassan Farooq
Body: <pre><code>Fatal error: Uncaught Error: Call to undefined function set_current_screen() in /var/www/html/wp-admin/admin-header.php:30 
  Stack trace: 
  #0 /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/Base.php(267): require_once() 
  #1 /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Utils/System.php(219): CRM_Utils_System_Base-&gt;theme('&lt;div id="crm-co...', false, false) 
  #2 /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Core/Error.php(233): CRM_Utils_System::theme('&lt;div id="crm-co...') 
  #3 /var/www/html/wp-content/plugins/civicrm/civicrm/packages/PEAR.php(921): CRM_Core_Error::handle(Object(DB_Error)) 
  #4 /var/www/html/wp-content/plugins/civicrm/civicrm/packages/DB.php(985): PEAR_Error-&gt;__construct('DB Error: alrea...', -5, 16, Array, 'CREATE TABLE ci...') 
  #5 /var/www/html/wp-content/plugins/civicrm/civicrm/packages/PEAR.php(575): DB_Error-&gt;__construct(-5, 16, Array, 'CREATE TABLE ci...') 
  #6 /var/www/html/wp-content/plugins/civicrm/civicrm/packages/PEAR.php(223): PEAR-&gt;_raiseError(Object(DB_mysqli), NULL, -5, 16, in /var/www/html/wp-admin/admin-header.php on line 30
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-13T15:00:00.543Z
Comments.Text: Can you check CiviCRM logs for detailed error. It seems u getting some db error for creating tables( already exists) .
Comments.UserDisplayName: Pradeep Nayak
Tags: <wordpress><installation>
Title: Getting this install error using latest CivicCRM on wordpress
ThreadText: # Getting this install error using latest CivicCRM on wordpress
  
  (Asked by: username_0 on 2018-01-13)
  
  Fatal error: Uncaught Error: Call to undefined function set_current_screen() in /var/www/html/wp-admin/admin-header.php:30 
  Stack trace: 
  #0 /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/Base.php(267): require_once() 
  #1 /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Utils/System.php(219): CRM_Utils_System_Base->theme('__construct('DB Error: alrea...', -5, 16, Array, 'CREATE TABLE ci...') 
  #5 /var/www/html/wp-content/plugins/civicrm/civicrm/packages/PEAR.php(575): DB_Error->__construct(-5, 16, Array, 'CREATE TABLE ci...') 
  #6 /var/www/html/wp-content/plugins/civicrm/civicrm/packages/PEAR.php(223): PEAR->_raiseError(Object(DB_mysqli), NULL, -5, 16, in /var/www/html/wp-admin/admin-header.php on line 30
  
  **Tags:** wordpress, installation
  
  > **Comments:**
  > **username_1**: Can you check CiviCRM logs for detailed error. It seems u getting some db error for creating tables( already exists) .  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2018-01-15. Score: 1
  
  It seems like you have two problems.
  
  As Pradeep mentioned in the comments - it seems like your underlying error is that the install is trying to create a database that already exists. I can't tell for sure, because the error in #4 is cut off.
  
  Additionally, there's the second error (undefined function) which is unfortunately WordPress-specific and I don't know the solution. However, completely removing/creating the CiviCRM database again (assuming that it's separate from WordPress) is likely to solve the first problem, and the second problem won't occur.
  
  > **Comments:**
  > **username_3**: I had the exact same exact error; creating a new database in the mysql daemon, assigning the same DB user with all privileges and importing the database dump fixed  it for me. I still don't know the original cause. Hassan's fix didn't work, though others have said it will.  
  
  ---
  
  ### Answer by username_4 on 2018-01-15. Score: 0
  
  Try adding following line in functions.php file of your child theme.
  
  `require_once(ABSPATH . 'wp-admin/includes/screen.php');`
  
  Which wordpress version and civicrm version are you trying?
  
  
  ---
  
  