• Resolved Jabuka060

    (@jabuka060)


    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 to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Franky

    (@liedekef)

    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

    (@liedekef)

    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.