Answers.Body: <p>I'm seeing the same issue.
  Wordpress 6.2.2
  Civicrm-5.61.4</p>
  <p>Can someone point me to where setup.php gets loaded to define this class?</p>
  <p>Fatal error: Uncaught Error:
  Class &quot;Civi\Setup&quot; not found in XX/civic/wp-content/plugins/civicrm/includes/civicrm.admin.php:248
  Stack trace: #0 XX/civic/wp-includes/class-wp-hook.php(308): CiviCRM_For_WordPress_Admin-&gt;run_installer('')
  #1 XX/civic/wp-includes/class-wp-hook.php(332): WP_Hook-&gt;apply_filters('', Array)
  #2 XX/civic/wp-includes/plugin.php(517): WP_Hook-&gt;do_action(Array)
  #3 XX/civic/wp-admin/admin.php(259): do_action('toplevel_page_c...')
  #4 {main} thrown in XX/civic/wp-content/plugins/civicrm/includes/civicrm.admin.php on line 248</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-05-29T20:18:24.730Z
Answers.Text: hi - this is not an Answer - do you not have enough reputation to add as a comment?
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-05-30T00:24:14.570Z
Answers.Text: correct! I've never used this before
Answers.UserDisplayName: scramble
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-05-30T19:18:00.187Z
Answers.Text: it seems that SE forces you to fire this as a new ticket and then reference this one - even though I can see the risk of your new ticket being marked as duplicate. I will convert this to a Comment if there are no other options
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-05-29T13:34:16.637Z
Answers.LastActivityDate: 2023-05-29T13:34:16.637Z
Answers.UserDisplayName: scramble
Body: <p>I'm trying to install the CiviCRM plugin in wordpress, but never get to see the install page. When I want to go to &quot;Install CiviCRM&quot; button beneath the wp-admin-Dashboard it aborts with &quot;critical error&quot;.</p>
  <p>It is Debian 11.6 and everything from the repositories: WordPress 5.7.8, CiviCRM 5.33, MariaDB 10.5, PHP 7.4</p>
  <p>Apache error log shows:</p>
  <pre><code>[Thu Mar 23 19:06:50.237128 2023] [php7:error] [pid 886] [client 172.16.0.10:46166] PHP Fatal error:
  Uncaught Error: Class 'Civi\\Setup' not found in /usr/share/wordpress/wp-content/plugins/civicrm/includes/civicrm.admin.php:138
  Stack trace:
  #0 /usr/share/wordpress/wp-includes/class-wp-hook.php(292): CiviCRM_For_WordPress_Admin-&gt;run_installer()
  #1 /usr/share/wordpress/wp-includes/class-wp-hook.php(316): WP_Hook-&gt;apply_filters()
  #2 /usr/share/wordpress/wp-includes/plugin.php(484): WP_Hook-&gt;do_action()
  #3 /usr/share/wordpress/wp-admin/admin.php(259): do_action()
  #4 /usr/share/wordpress/wp-admin/options-general.php(10): require_once('/usr/share/word...')
  #5 {main}
      thrown in /usr/share/wordpress/wp-content/plugins/civicrm/includes/civicrm.admin.php on line 138, referer: http://172.16.0.92/wp-admin/index.php
  </code></pre>
  <p>I did check that things mentioned at CiviCRM requirements page are in place.</p>
  <p>I also tried chowning everything relevant to www-data without success.</p>
  <p>What else could I think of?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-03-24T03:59:57.093Z
Comments.Text: Civi 5.33 is from 2 years ago. Use a newer version: https://civicrm.org/download
Comments.UserDisplayName: Demerit
Tags: <installation>
Title: PHP Fatal error: Uncaught Error: Class 'Civi\\Setup' not found on install
ThreadText: # PHP Fatal error: Uncaught Error: Class 'Civi\\Setup' not found on install
  
  (Asked by: username_0 on 2023-03-23)
  
  I'm trying to install the CiviCRM plugin in wordpress, but never get to see the install page. When I want to go to "Install CiviCRM" button beneath the wp-admin-Dashboard it aborts with "critical error".
  It is Debian 11.6 and everything from the repositories: WordPress 5.7.8, CiviCRM 5.33, MariaDB 10.5, PHP 7.4
  Apache error log shows:
  [Thu Mar 23 19:06:50.237128 2023] [php7:error] [pid 886] [client 172.16.0.10:46166] PHP Fatal error:
  Uncaught Error: Class 'Civi\\Setup' not found in /usr/share/wordpress/wp-content/plugins/civicrm/includes/civicrm.admin.php:138
  Stack trace:
  #0 /usr/share/wordpress/wp-includes/class-wp-hook.php(292): CiviCRM_For_WordPress_Admin->run_installer()
  #1 /usr/share/wordpress/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()
  #2 /usr/share/wordpress/wp-includes/plugin.php(484): WP_Hook->do_action()
  #3 /usr/share/wordpress/wp-admin/admin.php(259): do_action()
  #4 /usr/share/wordpress/wp-admin/options-general.php(10): require_once('/usr/share/word...')
  #5 {main}
      thrown in /usr/share/wordpress/wp-content/plugins/civicrm/includes/civicrm.admin.php on line 138, referer: http://172.16.0.92/wp-admin/index.php
  
  I did check that things mentioned at CiviCRM requirements page are in place.
  I also tried chowning everything relevant to www-data without success.
  What else could I think of?
  
  **Tags:** installation
  
  > **Comments:**
  > **username_1**: Civi 5.33 is from 2 years ago. Use a newer version: https://civicrm.org/download  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2023-05-29. Score: 0
  
  I'm seeing the same issue.
  Wordpress 6.2.2
  Civicrm-5.61.4
  
  Can someone point me to where setup.php gets loaded to define this class?
  
  Fatal error: Uncaught Error:
  Class "Civi\Setup" not found in XX/civic/wp-content/plugins/civicrm/includes/civicrm.admin.php:248
  Stack trace: #0 XX/civic/wp-includes/class-wp-hook.php(308): CiviCRM\_For\_WordPress\_Admin->run\_installer('')
  #1 XX/civic/wp-includes/class-wp-hook.php(332): WP\_Hook->apply\_filters('', Array)
  #2 XX/civic/wp-includes/plugin.php(517): WP\_Hook->do\_action(Array)
  #3 XX/civic/wp-admin/admin.php(259): do\_action('toplevel\_page\_c...')
  #4 {main} thrown in XX/civic/wp-content/plugins/civicrm/includes/civicrm.admin.php on line 248
  
  > **Comments:**
  > **username_3**: hi - this is not an Answer - do you not have enough reputation to add as a comment?  
  > **username_2**: correct! I've never used this before  
  > **username_3**: it seems that SE forces you to fire this as a new ticket and then reference this one - even though I can see the risk of your new ticket being marked as duplicate. I will convert this to a Comment if there are no other options  
  
  ---
  
  