• Resolved StickyPixels

    (@stickypixels)


    Hi Franky,

    I’m still unable to login to your forum (IP is blocked for some reason), so I’m posting my question here.

    I’m trying to set up memberships and want to add a memberhip registration form to my site. So I defined a membership and made a template containing all required fields (#_LASTNAME, #_FIRSTNAME, #_EMAIL and #_SUBMIT).
    Then I added this shortcode to my page:

    [eme_add_member_form id=1 template_id=1]

    But when I open the page I get this error:

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function eme_replace_membership_placeholders(), 2 passed in [path]/wp-content/plugins/events-made-easy/eme_formfields.php on line 2483 and at least 4 expected in [path]/wp-content/plugins/events-made-easy/eme_members.php:2442 Stack trace: #0 [path]/wp-content/plugins/events-made-easy/eme_formfields.php(2483): eme_replace_membership_placeholders('<input required...', Array) #1 [path]/wp-content/plugins/events-made-easy/eme_members.php(712): eme_replace_membership_formfields_placeholders(Array, Array, '<input required...') #2 [path]/wp-content/plugins/events-made-easy/eme_members.php(2130): eme_member_form(Array, '1') #3 [path]/wp-includes/shortcodes.php(325): eme_add_member_form_short in [path]/wp-content/plugins/events-made-easy/eme_members.php on line 2442

    What am I missing?

    Hope you can help, kind regards,
    Leo

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Franky

    (@liedekef)

    This is a valid support forum, so no problem posting here ??
    first: the form has no support for the template_id parameter, so you can leave that out.
    Second: there is indeed an issue with the function arguments of the mentioned function, this should fix it:
    https://plugins.trac.www.ads-software.com/changeset/2080391

    It’s weird that I don’t get the error on my production site, but I should …
    I’ll release a new version to fix this.

    Plugin Author Franky

    (@liedekef)

    Btw, concerning the forum on the EME site: you tried to log in with your email address, not your username. That causes an IP block for at least an hour. Also, there’s no user matching the email you tried, so I guess you need to reregister first (sometimes I do a cleanup of people that created a login but never posted a question so far).

    Thread Starter StickyPixels

    (@stickypixels)

    Wow, two very helpful answers in one go! You rule!

    I’ll try out both, will let you know how it goes.

    Thanks a bunch!
    Leo

    Thread Starter StickyPixels

    (@stickypixels)

    Success on both issues!
    Many thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Membership form not working’ is closed to new replies.