• Resolved hutruk

    (@hutruk)


    Hello!
    I’ve been using the EME plugin in the winter of 2017 without any serious issues, then it has been deactivated. Now after I updated it and am now trying to reactivate the plugin I get the following error:

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function eme_get_mailings(), 0 passed in [...]/wp-content/plugins/events-made-easy/events-manager.php on line 1502 and exactly 1 expected in [...]/wp-content/plugins/events-made-easy/eme_mailer.php:411 Stack trace: #0 [...]/wp-content/plugins/events-made-easy/events-manager.php(1502): eme_get_mailings() #1 [...]/wp-content/plugins/events-made-easy/events-manager.php(458): eme_create_mqueue_table('DEFAULT CHARACT...', 'COLLATE utf8mb4...', '164', false) #2 [...]/wp-content/plugins/events-made-easy/events-manager.php(321): eme_create_tables() #3 [...]/wp-content/plugins/events-made-easy/events-manager.php(299): _eme_install() #4 [...]/wp-includes/class-wp-hook.php(286): eme_install('') #5 [...]/ in [...]/wp-content/plugins/events-made-easy/eme_mailer.php on line 411

    I’m using PHP version 7.1.19

    • This topic was modified 7 years, 8 months ago by hutruk.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Franky

    (@liedekef)

    Indeed, when updating from an older version this happens … It is in fact a bug in eme_mailer.php.
    You can fix that by going in eme_mailer.php and change around line 411:

    function eme_get_mailings($archive) {

    to

    function eme_get_mailings($archive=0) {

    I will fix this for the next version and keep this open until committed to the dev version.

    Plugin Author Franky

    (@liedekef)

    This fix is now in dev.

    Thread Starter hutruk

    (@hutruk)

    Thank you, Franky, the fix did work for now!

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

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