• Resolved unicornboat

    (@unicornboat)


    My contact form suddenly not working today and I found that the cf7 list page is displaying blank. Typically something happening so I found this:

    Uncaught ArgumentCountError: 3 arguments are required, 2 given in wp-content/plugins/contact-form-7/admin/includes/welcome-panel.php:153

    In the file welcome-panel.php, line 151 – 154 has:

    wpcf7_link(
    ( ‘https://contactform7.com/sendinblue-integration/’, ‘contact-form-7’ ), ( ‘Brevo’, ‘contact-form-7’ )
    )

    I can’t find any developer doc for wpcf7_link but I assume wpcf7_link used to require only 2 arguments?

Viewing 9 replies - 1 through 9 (of 9 total)
  • I’m having the same issue on two different sites.

    Fatal error: Uncaught ArgumentCountError: 3 arguments are required

    Fatal error: Uncaught ArgumentCountError: 3 arguments are required,……

    wp-content/plugins/contact-form-7/admin/includes/welcome-panel.php?on line?148

    wp-content/plugins/contact-form-7/admin/includes/welcome-panel.php?on line?153

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Where can we see the website in question?

    Thread Starter unicornboat

    (@unicornboat)

    I managed to solve the problem by rolled back to 5.8.

    Unfortuanately 5.9 has the same issue. I didn’t bother to try the 3rd digit versions. 5.8.x may work or not.

    My suggestion is that wpcf7_link has been updated to use 3 arguments but the usage of this functions are not.

    I was having the same issue, no contact form could be displayed and I was getting the error:

    Error Details

    An error of type E_ERROR was caused in line 148 of the file /wp-content/plugins/contact-form-7/admin/includes/welcome-panel.php.

    Error message: Uncaught ArgumentCountError: 3 arguments are required, 2 given in /wp-content/plugins/contact-form-7/admin/includes/welcome-panel.php:148

    From the error message you provided, it appears that the error is caused by an insufficient number of arguments in the sprintf() function call. The sprintf() function requires at least two arguments: one is the format string, and the other is the parameter to be formatted. The error message indicates that a third argument is required, but it has not been provided.

    This issue occurs in the welcome-panel.php file of the Contact Form 7 plugin.

    Thread Starter unicornboat

    (@unicornboat)

    Apparently yes. Temporary solution is downgrade the plugin to version 5.8.

    I removed the sprintf() function on line 148 of welcome-panel.php

    the problem was solved.

    Thanks @phonograph using your method, I also temporarily solved this problem.

    The error caused by protected function content() is still not fixed in the new version

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.