Answers.Body: <p>Welcome to SE!  Sorry to hear you are having problems installing CiviCRM.</p>
  <p>Have you followed the installation instructions <a href="https://docs.civicrm.org/installation/en/latest/wordpress/" rel="nofollow noreferrer">here</a>?</p>
  <p>Files are created automatically under the <code>templates_c</code> directory. The only thing you need to do there occasionally is to remove all the files.  (Normally that is taken care of by 'clearing the cache').</p>
  <p>Is the file owner of the directory the same user as the one running your webserver?</p>
  <p>Edit after the question update: yes, you'll need to talk to your hosting company about ModSecurity.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-04-26T10:17:36.953Z
Answers.LastActivityDate: 2021-04-27T08:57:06.790Z
Answers.LastEditDate: 2021-04-27T08:57:06.790Z
Answers.UserDisplayName: Aidan
Body: <p>This is my first time installing Civi. The install appeared to go OK but the Home and Configuration pages are blank.</p>
  <p>The inspector shows these errors:</p>
  <p><strong>Error: CRM.url called before initialization CRM.console @ Common.js?r=l6LAc:1617</strong></p>
  <p><strong>Error: Cannot read property 'back' of undefined</strong></p>
  <p>My error log shows:</p>
  <p><strong>PHP Warning: include(/ebs2/vhosts/mvfn.ca/staging.mvfn.ca/wp-content/uploads/civicrm/templates_c/en_US//%%52/529/529A2042%%l10n.js.tpl.php): failed to open stream: No such file or directory in /ebs2/vhosts/mvfn.ca/staging.mvfn.ca/wp-content/plugins/civicrm/civicrm/packages/Smarty/Smarty.class.php on line 1273</strong></p>
  <p>That file is indeed missing. The /templates_c/en_US/ directory exists but has only .htaccess in it. Permissions for that and all the other /uploads folders are 755, and the owner and group are the same for all.</p>
  <p>Am I able to locate that file in the plugin ZIP and upload it manually? Any other ideas? Thanks.</p>
  <p>I'm running WP 5.7.1.</p>
  <p><strong>UPDATE</strong></p>
  <p>Hi Aidan, thanks for your reply. I did follow that install procedure, yes, and the owner and group for that folder appear to be the same as for the rest of the server. In checking my logs I see a security warning at about the time I was doing the install -- some Googling suggests that this is a message from the Imunify security application. Sounds like I may have to try and sort this out with my hosting company.</p>
  <p><strong>[client 174.89.56.82] ModSecurity: [file &quot;/etc/httpd/conf/modsecurity.d/rules/custom/004_i360_4_custom.conf&quot;] [line &quot;905&quot;] [id &quot;77140992&quot;] [msg &quot;IM360 WAF: Suspicious access attempt (WP folders)!||SC:/var/www/vhosts/mvfn.ca/staging.mvfn.ca/wp-admin/options-general.php||T:APACHE||REQUEST_URI:/wp-admin/options-general.php?page=civicrm-install||&quot;] [severity &quot;NOTICE&quot;] [tag &quot;service_i360custom&quot;] [tag &quot;noshow&quot;] Warning. Match of &quot;pmFromFile path_excludes&quot; against &quot;REQUEST_FILENAME&quot; required. [hostname &quot;staging.mvfn.ca&quot;] [uri &quot;/wp-admin/options-general.php&quot;]</strong></p>
  
Tags: <civicrm-home>
Title: Blank CiviCRM Home page after install
ThreadText: # Blank CiviCRM Home page after install
  
  (Asked by: username_0 on 2021-04-25)
  
  This is my first time installing Civi. The install appeared to go OK but the Home and Configuration pages are blank.
  
  The inspector shows these errors:
  
  **Error: CRM.url called before initialization CRM.console @ Common.js?r=l6LAc:1617**
  
  **Error: Cannot read property 'back' of undefined**
  
  My error log shows:
  
  **PHP Warning: include(/ebs2/vhosts/mvfn.ca/staging.mvfn.ca/wp-content/uploads/civicrm/templates\_c/en\_US//%%52/529/529A2042%%l10n.js.tpl.php): failed to open stream: No such file or directory in /ebs2/vhosts/mvfn.ca/staging.mvfn.ca/wp-content/plugins/civicrm/civicrm/packages/Smarty/Smarty.class.php on line 1273**
  
  That file is indeed missing. The /templates\_c/en\_US/ directory exists but has only .htaccess in it. Permissions for that and all the other /uploads folders are 755, and the owner and group are the same for all.
  
  Am I able to locate that file in the plugin ZIP and upload it manually? Any other ideas? Thanks.
  
  I'm running WP 5.7.1.
  
  **UPDATE**
  
  Hi username_1, thanks for your reply. I did follow that install procedure, yes, and the owner and group for that folder appear to be the same as for the rest of the server. In checking my logs I see a security warning at about the time I was doing the install -- some Googling suggests that this is a message from the Imunify security application. Sounds like I may have to try and sort this out with my hosting company.
  
  **[client 174.89.56.82] ModSecurity: [file "/etc/httpd/conf/modsecurity.d/rules/custom/004\_i360\_4\_custom.conf"] [line "905"] [id "77140992"] [msg "IM360 WAF: Suspicious access attempt (WP folders)!||SC:/var/www/vhosts/mvfn.ca/staging.mvfn.ca/wp-admin/options-general.php||T:APACHE||REQUEST\_URI:/wp-admin/options-general.php?page=civicrm-install||"] [severity "NOTICE"] [tag "service\_i360custom"] [tag "noshow"] Warning. Match of "pmFromFile path\_excludes" against "REQUEST\_FILENAME" required. [hostname "staging.mvfn.ca"] [uri "/wp-admin/options-general.php"]**
  
  **Tags:** civicrm-home
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-04-26. Score: 0
  
  Welcome to SE! Sorry to hear you are having problems installing CiviCRM.
  
  Have you followed the installation instructions [here](https://docs.civicrm.org/installation/en/latest/wordpress/)?
  
  Files are created automatically under the `templates_c` directory. The only thing you need to do there occasionally is to remove all the files. (Normally that is taken care of by 'clearing the cache').
  
  Is the file owner of the directory the same user as the one running your webserver?
  
  Edit after the question update: yes, you'll need to talk to your hosting company about ModSecurity.
  
  
  ---
  
  