Answers.Body: <p>The hosting company sent me this instruction. It worked, and I'm back in business!</p>
  
  <blockquote>
    <p>"You need to add this in your .htaccess file to avoid problem, it is
    caching related:"<br>
     <code>php_flag opcache.enable Off</code></p>
  </blockquote>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-28T19:54:35.623Z
Answers.LastActivityDate: 2020-02-28T22:01:44.037Z
Answers.LastEditDate: 2020-02-28T22:01:44.037Z
Answers.UserDisplayName: Día
Answers.Body: <p>I've been tearing my hair out on this one, attempting a clean CiviCRM install</p>
  <p>Same error as above, during install. Clearly something to do with the database, as the install ran for a minute, and produced the error, but no tables were ever written to the database.</p>
  <p>I know all requirements are met, as we already have two other running copies of CiviCRM on the same server.</p>
  <p>My fix, for what it's worth, was to locate a copy of CiviCrm 5.28 (yeah, I had a very old backup lying around), install that, and then upgrade!
  Still have no idea what the cause was, but at least now I have a clean install of Civi running.</p>
  <p>Ubuntu Server 18.04
  MYSQL 5.7.35
  PHP 7.4
  Attempted install - CiviCRM 5.41.2 on Wordpress 5.8.1</p>
  <p>Might help someone (might not)</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-10-05T11:16:09.130Z
Answers.LastActivityDate: 2021-10-05T11:16:09.130Z
Answers.UserDisplayName: Dave Robinson
Body: <p>Whenever I try to install/uninstall CiviCRM extensions or run Cleanup Cache, I consistently receive this error:</p>
  
  <blockquote>
    <p>Warning:
    require(/home/xxxxxxxx/public_html/wp-content/uploads/civicrm/templates_c/CachedExtLoader.8fc40bba39c0b8bd10ea54175cf9a6b3.php):
    failed to open stream: No such file or directory in
    /home/xxxxxxxx/public_html/wp-content/plugins/civicrm/civicrm/CRM/Extension/ClassLoader.php on line 70</p>
    
    <p>Fatal error: require(): Failed opening required
    '/home/xxxxxxxx/public_html/wp-content/uploads/civicrm/templates_c/CachedExtLoader.8fc40bba39c0b8bd10ea54175cf9a6b3.php'
    (include_path='/home/xxxxxxxx/public_html/wp-content/uploads/civicrm/ext/org.civicoop.pdfapi/:/home/xxxxxxxx/public_html/wp-content/uploads/civicrm/ext/org.civicoop.civirules/:/home/xxxxxxxx/public_html/wp-content/uploads/civicrm/ext/org.civicrm.volunteer/:/home/xxxxxxxx/public_html/wp-content/uploads/civicrm/ext/org.civicrm.angularprofiles/:.:/home/xxxxxxxx/public_html/wp-content/plugins/civicrm/civicrm:/home/xxxxxxxx/public_html/wp-content/plugins/civicrm/civicrm/packages:/home/xxxxxxxx/public_html/wp-content/plugins/civicrm/civicrm/vendor/tecnickcom:/home/xxxxxxxx/public_html/wp-content/plugins/civicrm/civicrm/vendor/phpseclib/phpseclib/phpseclib:/home/xxxxxxxx/public_html/wp-content/plugins/civicrm/civicrm/vendor/pear/pear_exception:/home/xxxxxxxx/public_html/wp-content/plugins/civicrm/civicrm/vendor/pear/auth_sasl:/home/xxxxxxxx/public_html/wp-content
    in
    /home/xxxxxxxx/public_html/wp-content/plugins/civicrm/civicrm/CRM/Extension/ClassLoader.php on line 70</p>
    
    <p>There has been a critical error on your website. Please check your
    site admin email inbox for instructions.</p>
  </blockquote>
  
  <p>civicrm.settings.php seems fine:</p>
  
  <blockquote>
    <p>global $civicrm_root;</p>
    
    <p>$civicrm_root =
    '/home/xxxxxxxx/public_html/wp-content/plugins/civicrm/civicrm/'; if
    (!defined('CIVICRM_TEMPLATE_COMPILEDIR')) {   define(
    'CIVICRM_TEMPLATE_COMPILEDIR',
    '/home/xxxxxxxx/public_html/wp-content/uploads/civicrm/templates_c/');</p>
  </blockquote>
  
  <p>Wordpress 5.3.2
  CiviCRM 5.22.0
  PHP 7.3</p>
  
  <p>The email sent by the system had almost the same message:</p>
  
  <blockquote>
    <p>Error Details
    ============= An error of type E_COMPILE_ERROR was caused in line 70 of the file
    /home/nkxwvwvr/public_html/staging02/wp-content/plugins/civicrm/civicrm/CRM/Extension/ClassLoader.php.
    Error message: require(): Failed opening required
    '/home/xxxxxxxx/public_html/staging02/wp-content/uploads/civicrm/templates_c/CachedExtLoader.697f143a9f2872e12a14e35583756c82.php'
    (include_path='.:/home/xxxxxxxx/public_html/staging02/wp-content/plugins/civicrm/civicrm:/home/xxxxxxxx/public_html/staging02/wp-content/plugins/civicrm/civicrm/packages:/home/xxxxxxxx/public_html/staging02/wp-content/plugins/civicrm/civicrm/vendor/tecnickcom:/home/xxxxxxxx/public_html/staging02/wp-content/plugins/civicrm/civicrm/vendor/phpseclib/phpseclib/phpseclib:/home/xxxxxxxx/public_html/staging02/wp-content/plugins/civicrm/civicrm/vendor/pear/pear_exception:/home/xxxxxxxx/public_html/staging02/wp-content/plugins/civicrm/civicrm/vendor/pear/auth_sasl:/home/xxxxxxxx/public_html/staging02/wp-content/plugins/civicrm/civicrm/vendor/pear/log:/home/xxxxxxxx/public_html/staging02/wp-content/plugins/civicrm/civicrm/vendor/pear/console_getopt:/home/xxxxxxxx/public_html/staging02/wp-content/plugins/civicrm/civicrm/vendor/pear/pear-core-minimal/src:/ho</p>
  </blockquote>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-02-21T23:19:47.907Z
Comments.Text: try reloading your php-fpm or ngnix or apache
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-02-22T16:14:51.937Z
Comments.Text: The host restarted them. No difference. They say, "If the issue is still there, i would recommend having a developer look into this, as this appears to be PHP error." I even lowered PHP from 7.3 to 7.2. No difference.
Comments.UserDisplayName: Día
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-02-22T20:22:18.800Z
Comments.Text: "There has been a critical error on your website. Please check your site admin email inbox for instructions."  What does the mail say?  You could try manually removing /home/xxxxxxxx/public_html/wp-content/uploads/civicrm/templates_c
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-02-23T19:58:32.910Z
Comments.Text: The email contained pretty much the same error as I see on the screen. I just placed the error in the original post.
  Also, deleting templates_c doesn't help.
Comments.UserDisplayName: Día
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-02-26T23:17:02.300Z
Comments.Text: It's happening at one webhost and not another. The only difference in setup is that the failing webhost is using EasyApache.
Comments.UserDisplayName: Día
Tags: <wordpress><extension><cache>
Title: Errors involving /wp-content/plugins/civicrm/civicrm/CRM/Extension/ClassLoader.php
ThreadText: # Errors involving /wp-content/plugins/civicrm/civicrm/CRM/Extension/ClassLoader.php
  
  (Asked by: username_0 on 2020-02-21)
  
  Whenever I try to install/uninstall CiviCRM extensions or run Cleanup Cache, I consistently receive this error:
  
  > Warning:
  > require(/home/xxxxxxxx/public\_html/wp-content/uploads/civicrm/templates\_c/CachedExtLoader.8fc40bba39c0b8bd10ea54175cf9a6b3.php):
  > failed to open stream: No such file or directory in
  > /home/xxxxxxxx/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Extension/ClassLoader.php on line 70
  >
  > Fatal error: require(): Failed opening required
  > '/home/xxxxxxxx/public\_html/wp-content/uploads/civicrm/templates\_c/CachedExtLoader.8fc40bba39c0b8bd10ea54175cf9a6b3.php'
  > (include\_path='/home/xxxxxxxx/public\_html/wp-content/uploads/civicrm/ext/org.civicoop.pdfapi/:/home/xxxxxxxx/public\_html/wp-content/uploads/civicrm/ext/org.civicoop.civirules/:/home/xxxxxxxx/public\_html/wp-content/uploads/civicrm/ext/org.civicrm.volunteer/:/home/xxxxxxxx/public\_html/wp-content/uploads/civicrm/ext/org.civicrm.angularprofiles/:.:/home/xxxxxxxx/public\_html/wp-content/plugins/civicrm/civicrm:/home/xxxxxxxx/public\_html/wp-content/plugins/civicrm/civicrm/packages:/home/xxxxxxxx/public\_html/wp-content/plugins/civicrm/civicrm/vendor/tecnickcom:/home/xxxxxxxx/public\_html/wp-content/plugins/civicrm/civicrm/vendor/phpseclib/phpseclib/phpseclib:/home/xxxxxxxx/public\_html/wp-content/plugins/civicrm/civicrm/vendor/pear/pear\_exception:/home/xxxxxxxx/public\_html/wp-content/plugins/civicrm/civicrm/vendor/pear/auth\_sasl:/home/xxxxxxxx/public\_html/wp-content
  > in
  > /home/xxxxxxxx/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Extension/ClassLoader.php on line 70
  >
  > There has been a critical error on your website. Please check your
  > site admin email inbox for instructions.
  
  civicrm.settings.php seems fine:
  
  > global $civicrm\_root;
  >
  > $civicrm\_root =
  > '/home/xxxxxxxx/public\_html/wp-content/plugins/civicrm/civicrm/'; if
  > (!defined('CIVICRM\_TEMPLATE\_COMPILEDIR')) { define(
  > 'CIVICRM\_TEMPLATE\_COMPILEDIR',
  > '/home/xxxxxxxx/public\_html/wp-content/uploads/civicrm/templates\_c/');
  
  Wordpress 5.3.2
  CiviCRM 5.22.0
  PHP 7.3
  
  The email sent by the system had almost the same message:
  
  > Error Details
  > ============= An error of type E\_COMPILE\_ERROR was caused in line 70 of the file
  > /home/nkxwvwvr/public\_html/staging02/wp-content/plugins/civicrm/civicrm/CRM/Extension/ClassLoader.php.
  > Error message: require(): Failed opening required
  > '/home/xxxxxxxx/public\_html/staging02/wp-content/uploads/civicrm/templates\_c/CachedExtLoader.697f143a9f2872e12a14e35583756c82.php'
  > (include\_path='.:/home/xxxxxxxx/public\_html/staging02/wp-content/plugins/civicrm/civicrm:/home/xxxxxxxx/public\_html/staging02/wp-content/plugins/civicrm/civicrm/packages:/home/xxxxxxxx/public\_html/staging02/wp-content/plugins/civicrm/civicrm/vendor/tecnickcom:/home/xxxxxxxx/public\_html/staging02/wp-content/plugins/civicrm/civicrm/vendor/phpseclib/phpseclib/phpseclib:/home/xxxxxxxx/public\_html/staging02/wp-content/plugins/civicrm/civicrm/vendor/pear/pear\_exception:/home/xxxxxxxx/public\_html/staging02/wp-content/plugins/civicrm/civicrm/vendor/pear/auth\_sasl:/home/xxxxxxxx/public\_html/staging02/wp-content/plugins/civicrm/civicrm/vendor/pear/log:/home/xxxxxxxx/public\_html/staging02/wp-content/plugins/civicrm/civicrm/vendor/pear/console\_getopt:/home/xxxxxxxx/public\_html/staging02/wp-content/plugins/civicrm/civicrm/vendor/pear/pear-core-minimal/src:/ho
  
  **Tags:** wordpress, extension, cache
  
  > **Comments:**
  > **username_1**: try reloading your php-fpm or ngnix or apache  
  > **username_0**: The host restarted them. No difference. They say, "If the issue is still there, i would recommend having a developer look into this, as this appears to be PHP error." I even lowered PHP from 7.3 to 7.2. No difference.  
  > **username_2**: "There has been a critical error on your website. Please check your site admin email inbox for instructions."  What does the mail say?  You could try manually removing /home/xxxxxxxx/public_html/wp-content/uploads/civicrm/templates_c  
  > **username_0**: The email contained pretty much the same error as I see on the screen. I just placed the error in the original post. Also, deleting templates_c doesn't help.  
  > **username_0**: It's happening at one webhost and not another. The only difference in setup is that the failing webhost is using EasyApache.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2020-02-28. Score: 1
  
  The hosting company sent me this instruction. It worked, and I'm back in business!
  
  > "You need to add this in your .htaccess file to avoid problem, it is
  > caching related:"  
  > `php_flag opcache.enable Off`
  
  
  ---
  
  ### Answer by username_3 on 2021-10-05. Score: 0
  
  I've been tearing my hair out on this one, attempting a clean CiviCRM install
  
  Same error as above, during install. Clearly something to do with the database, as the install ran for a minute, and produced the error, but no tables were ever written to the database.
  
  I know all requirements are met, as we already have two other running copies of CiviCRM on the same server.
  
  My fix, for what it's worth, was to locate a copy of CiviCrm 5.28 (yeah, I had a very old backup lying around), install that, and then upgrade!
  Still have no idea what the cause was, but at least now I have a clean install of Civi running.
  
  Ubuntu Server 18.04
  MYSQL 5.7.35
  PHP 7.4
  Attempted install - CiviCRM 5.41.2 on Wordpress 5.8.1
  
  Might help someone (might not)
  
  
  ---
  
  