Answers.Body: <p>It sounds like you may be using an unsupported PHP version.  CiviCRM 5.8.1 requires PHP 5.6 or higher.  </p>
  
  <p>If this solves your problem, please mark it solved; if not, please edit your question to indicate your PHP version?</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-14T22:41:27.473Z
Answers.Text: Added PHP version 7.2.12 and mySQL version as required.
Answers.UserDisplayName: Wojtek
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-17T10:30:19.643Z
Answers.Text: @Wojtek That's odd - the PHP manual says that this construction only throws a fatal error in PHP versions less than 5.5: http://php.net/manual/en/function.empty.php Are you sure about your PHP version? FWIW, there's a fix in the pipeline - you can apply it by changing the plugin code as per this PR: https://github.com/civicrm/civicrm-wordpress/pull/143
Answers.UserDisplayName: Christian Wach
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-18T11:13:31.897Z
Answers.Text: @ChristianWach thank you for the fix. In PHPmyAdmin I have  "PHP: 7.2.12". I applied it and tried to activate again. Then I've got:
  
  Parse error: syntax error, unexpected '[' in .../public_html/CRM/wp-content/plugins/civicrm/civicrm.php on line 894
Answers.UserDisplayName: Wojtek
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-18T14:52:26.627Z
Answers.Text: @wojtek That's a sure sign that the PHP version running CiviCRM is older than 5.4.  I would check with your hosting provider - while it's unusual that two applications on the same server run different PHP versions it's certainly not impossible.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-19T21:50:57.967Z
Answers.Text: Thank you. It's solved. My hosting provider misled me about PHP version in CLI. It was 5.6 not 7.2. I changed it to 7.2. To make it work I had to change it also in .htaccess
Answers.UserDisplayName: Wojtek
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-14T21:03:43.997Z
Answers.LastActivityDate: 2018-12-14T21:03:43.997Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>After manual installation of the plugin in Wordpress (5.0.1), PHP (7.2.12), mySQL (10.1.36-MariaDB). I can't activate it.</p>
  
  <p>I receive this info: </p>
  
  <p>Fatal error: Can't use function return value in write context in .../public_html/CRM/wp-content/plugins/civicrm/civicrm.php on line 342</p>
  
Tags: <wordpress><installation>
Title: Can't use function return value in write context in ... civicrm.php on line 342 (5.8.1, WordPress)
ThreadText: # Can't use function return value in write context in ... civicrm.php on line 342 (5.8.1, WordPress)
  
  (Asked by: username_0 on 2018-12-14)
  
  After manual installation of the plugin in Wordpress (5.0.1), PHP (7.2.12), mySQL (10.1.36-MariaDB). I can't activate it.
  
  I receive this info:
  
  Fatal error: Can't use function return value in write context in .../public\_html/CRM/wp-content/plugins/civicrm/civicrm.php on line 342
  
  **Tags:** wordpress, installation
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-12-14. Score: 1 | Accepted answer
  
  It sounds like you may be using an unsupported PHP version. CiviCRM 5.8.1 requires PHP 5.6 or higher.
  
  If this solves your problem, please mark it solved; if not, please edit your question to indicate your PHP version?
  
  > **Comments:**
  > **username_0**: Added PHP version 7.2.12 and mySQL version as required.  
  > **username_2**: @username_0 That's odd - the PHP manual says that this construction only throws a fatal error in PHP versions less than 5.5: http://php.net/manual/en/function.empty.php Are you sure about your PHP version? FWIW, there's a fix in the pipeline - you can apply it by changing the plugin code as per this PR: https://github.com/civicrm/civicrm-wordpress/pull/143  
  > **username_0**: @ChristianWach thank you for the fix. In PHPmyAdmin I have  "PHP: 7.2.12". I applied it and tried to activate again. Then I've got:  Parse error: syntax error, unexpected '[' in .../public_html/CRM/wp-content/plugins/civicrm/civicrm.php on line 894  
  > **username_1**: @wojtek That's a sure sign that the PHP version running CiviCRM is older than 5.4.  I would check with your hosting provider - while it's unusual that two applications on the same server run different PHP versions it's certainly not impossible.  
  > **username_0**: Thank you. It's solved. My hosting provider misled me about PHP version in CLI. It was 5.6 not 7.2. I changed it to 7.2. To make it work I had to change it also in .htaccess  
  
  ---
  
  