• Resolved grfavre

    (@grfavre)


    Hi,
    I’ve upgraded my wordpress install to latest 4.7.3. Everything was working fine previously, but now on my login page, I got:

    Warning: sprintf(): Too few arguments in /home/clients/bbf1bf9b23a9c009a142334815e2e9de/web/wp-content/plugins/wp-members/inc/dialogs.php on line 339

    wp-content is latest (3.1.6.3).

    Login page:
    [vc_row]
    [vc_column width=”1/2″][vc_column_text][wpmem_form login][/vc_column_text][/vc_column]
    [vc_column width=”1/2″][vc_column_text][wpmem_form register][/vc_column_text][/vc_column]
    [/vc_row]

    Nothing specific to wp-members in options or functions.php.
    That occurs when I access this page and user is already logged in.

    Do you know any workaround?

    Cheers,
    Gregory

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

    (@cbutlerjr)

    I’m not sure why that would occur as there isn’t much that could break it. That section in dialogs.php is where the logout link is assembled (sprintf() is putting the logout link text into the link).

    It’s possible it has something to do with the shortcode configuration you have with the additional shortcodes. The form shortcode allows you to customize the logged in content that is displayed when there is nested content (i.e. [wpmem_form login]some content here[/wpmem_form]). It may be that it thinks there is nested content there between the two form shortcodes.

    Try indicating that the shortcode has no closing tag as:

    [wpmem_form login /]

    Thread Starter grfavre

    (@grfavre)

    Thanks a lot for your help.
    Adding the trailing slash indeed solved the issue!

    Cheers,
    Gregory

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

The topic ‘sprintf(): Too few arguments’ is closed to new replies.