• Resolved Kuba Mikita

    (@kubitomakita)


    While editing the signup form I’m getting a PHP fatal error, on both PHP 8.2 and 8.1. Using plugin in latest version 1.7.7.

    Error for reference:

    B??d typu E_ERROR zosta? spowodowany w linii 273 pliku site/public_html/wp-content/plugins/official-mailerlite-sign-up-forms/include/mailerlite-admin.php. Komunikat b??du: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, stdClass given in site/public_html/wp-content/plugins/official-mailerlite-sign-up-forms/include/mailerlite-admin.php:273
    Stack trace:
    #0 site/public_html/wp-content/plugins/official-mailerlite-sign-up-forms/include/mailerlite-admin.php(273): array_filter()
    #1 site/public_html/wp-includes/class-wp-hook.php(324): MailerLite_Admin::mailerlite_main()
    #2 site/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #3 site/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 site/public_html/wp-admin/admin.php(259): do_action()
    #5 {main}
      thrown
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author MailerLite

    (@mailerlite)

    Hi @kubitomakita,

    Thank you for sharing all the details. We noticed that the file you referred to was removed 3 years back, so it’s from an outdated version of the plunging, could you download the latest version here and try again to see if the issue persists?

    Thank you,
    MailerLite Team

    Thread Starter Kuba Mikita

    (@kubitomakita)

    Hey, sorry, that was the error from before the upgrade. The upgrade didn’t help though, still fatal error:

    [26-Apr-2024 06:50:22 UTC] PHP Fatal error:  Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in /site/public_html/wp-content/plugins/official-mailerlite-sign-up-forms/src/Api/MailerLiteAPI.php:86
    Stack trace:
    #0 /site/public_html/wp-content/plugins/official-mailerlite-sign-up-forms/src/Api/MailerLiteAPI.php(86): count()
    #1 /site/public_html/wp-content/plugins/official-mailerlite-sign-up-forms/src/Api/PlatformAPI.php(90): MailerLiteForms\Api\MailerLiteAPI->checkMoreGroups()
    #2 /site/public_html/wp-content/plugins/official-mailerlite-sign-up-forms/src/Controllers/AdminController.php(167): MailerLiteForms\Api\PlatformAPI->checkMoreGroups()
    #3 /site/public_html/wp-includes/class-wp-hook.php(324): MailerLiteForms\Controllers\AdminController::forms()
    #4 /site/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #5 /site/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #6 /site/public_html/wp-admin/admin.php(259): do_action()
    #7 {main}
      thrown in /site/public_html/wp-content/plugins/official-mailerlite-sign-up-forms/src/Api/MailerLiteAPI.php on line 86
    Plugin Author MailerLite

    (@mailerlite)

    Hi @kubitomakita

    We would like to inform you that this issue has been resolved in the new version 1.7.10 we have released. Please, update your plugin to this latest version.

    We will mark this thread as resolved, for now. However, please don’t hesitate to reach out if you notice anything.

    Thank you,
    MailerLite Team

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error on PHP8’ is closed to new replies.