• Hello,
    I received the following error message from my website:

    Hiba részletei
    ===============
    A(z) /var/www/clients/client1/web115/web/wp-content/plugins/my-calendar/my-calendar-core.php fájl 2398 sora egy E_ERROR típusú hibát okoz. Hibaüzenet: Uncaught ArgumentCountError: 4 arguments are required, 2 given in /var/www/clients/client1/web115/web/wp-content/plugins/my-calendar/my-calendar-core.php:2398
    Stack trace:
    #0 /var/www/clients/client1/web115/web/wp-content/plugins/my-calendar/my-calendar-core.php(2398): sprintf()
    #1 /var/www/clients/client1/web115/web/wp-includes/class-wp-hook.php(308): mc_posttypes_messages()
    #2 /var/www/clients/client1/web115/web/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #3 /var/www/clients/client1/web115/web/wp-admin/edit-form-advanced.php(219): apply_filters()
    #4 /var/www/clients/client1/web115/web/wp-admin/post.php(206): require('...')
    #5 {main}
      thrown

    Can anyone help me with this?

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    What version of My Calendar do you have installed? This is line 2398 of the current release, and it doesn’t look like a likely candidate for that error:

    https://github.com/joedolson/my-calendar/blob/v3.3.24.1/src/my-calendar-core.php#L2398

    Thread Starter sukhayanti

    (@sukhayanti)

    Thank you for your answer. Currently I have 3.3.24.1 version. And I do not see that there is an update available for the plugin in the plugins tab.

    Plugin Author Joe Dolson

    (@joedolson)

    3.3.24.1 is correct. Can you confirm what code is on line 2398 of the file my-calendar-core.php in your installation? Does it match what I linked to?

    Plugin Author Joe Dolson

    (@joedolson)

    The error does match that function, so it makes sense; I just can’t see how four arguments would be required there. Do you have any plugins installed that are filtering translatable strings? If a plugin replaced that gettext call with a string that had more arguments, that could cause an error.

    Thread Starter sukhayanti

    (@sukhayanti)

    To me it seems the same:

    8 => sprintf( __( ‘Event submitted. Preview event‘, ‘my-calendar’ ), esc_url( add_query_arg( ‘preview’, ‘true’, get_permalink( $post_ID ) ) ) ),

    The only plugin I have to translate strings is loco translate.

    Plugin Author Joe Dolson

    (@joedolson)

    Can you try disabling loco translate to check whether that’s introducing a problem?

    Thread Starter sukhayanti

    (@sukhayanti)

    Thank you, I will try and see if the error continues.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Plugin causing errors on website’ is closed to new replies.