Title: Fatal error on PHP 7.2
Last modified: May 3, 2019

---

# Fatal error on PHP 7.2

 *  Resolved [Jabuka060](https://wordpress.org/support/users/jabuka060/)
 * (@jabuka060)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-on-php-7-2/)
 * I made an upgrade of plugins and after that I can not activate plugin. There 
   is an error: Fatal error: Can’t use function return value in write context in/
   home1/adventl1/public_html/wp-content/plugins/events-made-easy/eme_discounts.
   php on line 941.
 * My website is hosted on Bluehost with PHP 7.2 (there is no PHP 7.3). Any solution
   for this error?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-on-php-7-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Franky](https://wordpress.org/support/users/liedekef/)
 * (@liedekef)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-on-php-7-2/#post-11494442)
 * That code refers to this line:
 *     ```
                  if (empty($person_groupids) || empty(array_intersect($person_groupids, $discount['properties']['group_ids'])))
                          return false;
          }
       ```
   
 * PHP 7.2 runs that code just fine, just tested this:
 *     ```
       $a1=['a1'];
       $a2=['a2'];
       if (empty(array_intersect($a1, $a2))) {
          print "EE";
       }
       ```
   
 * So I’m guessing you’re running on an older php version than 7.2. Create a php-
   file where you call phpinfo() and call that from your website, to see the result(
   or install the health check plugin and see what that reports).
 *  Plugin Author [Franky](https://wordpress.org/support/users/liedekef/)
 * (@liedekef)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-on-php-7-2/#post-11500770)
 * No feedback, considering closed.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fatal error on PHP 7.2’ is closed to new replies.

 * ![](https://ps.w.org/events-made-easy/assets/icon-256x256.png?rev=1856035)
 * [Events Made Easy](https://wordpress.org/plugins/events-made-easy/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-made-easy/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-made-easy/)
 * [Active Topics](https://wordpress.org/support/plugin/events-made-easy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-made-easy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-made-easy/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Franky](https://wordpress.org/support/users/liedekef/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-on-php-7-2/#post-11500770)
 * Status: resolved