• Hello,
    I’m using this plugin with WP-Members Security Extension,
    but I have an issue during the registration:

    Undefined property: WP_Members::$fields
    wp-members-security/includes/class-wp-members-security.php on line 662

    This is the line

    if ( ! in_array( 'password', $wpmem->fields ) ) {

    maybe $wpmem->fields should be replaced with wpmem_fields() ?

    thank you!

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

    (@cbutlerjr)

    For general reference, anytime the question pertains to one of the plugin’s extensions, make sure that your question comes through https://rocketgeek.com/contact/ or https://rocketgeek.com/contact/extension-support/. The forum on www.ads-software.com only pertains to the core plugin that is available in the repository (the extensions are not part of the www.ads-software.com plugin repo).

    Your assumption is correct – it should be wpmem_fields().

    The wpmem_fields() function retrieves what is contained in $wpmem->fields with the added possibility that if the object is empty, it loads the fields.

    What version do you have installed?

    Thread Starter Emanuela Castorina

    (@kreamweb)

    Hello,
    thank you for your reply, I’m sorry if I posted this in a wrong place.
    The version is the latest 1.0.2, I replaced for the moment
    $wpmem->fields with wpmem_fields() to avoid the error.

    I’m sure that you’ll make the same in the next plugin release.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘$wpmem->fields is not defined’ is closed to new replies.