• Resolved Mike

    (@mvasin)


    Here’s what I get in admin panel, at least on php7:

    Notify admin Notice: Array to string conversion in /home/webadmin/www/wordpress/wp-content/plugins/wp-members/admin/tab-options.php on line 161

    Notice: Undefined property: WP_Members::$Array in /home/webadmin/www/wordpress/wp-content/plugins/wp-members/admin/tab-options.php on line 161
    /> Notify webadmin@musweb.ru for each new registration? Change or Filter this address
    Moderate registration Notice: Array to string conversion in /home/webadmin/www/wordpress/wp-content/plugins/wp-members/admin/tab-options.php on line 161

    Notice: Undefined property: WP_Members::$Array in /home/webadmin/www/wordpress/wp-content/plugins/wp-members/admin/tab-options.php on line 161
    /> Holds new registrations for admin approval
    Ignore warning messages Notice: Array to string conversion in /home/webadmin/www/wordpress/wp-content/plugins/wp-members/admin/tab-options.php on line 161

    Notice: Undefined property: WP_Members::$Array in /home/webadmin/www/wordpress/wp-content/plugins/wp-members/admin/tab-options.php on line 161
    /> Ignores WP-Members warning messages in the admin panel

    https://wordpress.org/plugins/wp-members/

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

    (@cbutlerjr)

    That may be a php 7 issue, which, if it is, I’d like to clear up.

    That line (161) looks like this:

    <input name="<?php echo $arr[$row][1]; ?>" type="checkbox" id="<?php echo $arr[$row][1]; ?>" value="1" <?php if ( $wpmem->$arr[$row][3] == 1 ) { echo "checked"; }?> />&nbsp;&nbsp;

    Please change it to this and let me know if that resolves the notices:

    <input name="<?php echo $arr[$row][1]; ?>" type="checkbox" id="<?php echo $arr[$row][1]; ?>" value="1" <?php if ( $wpmem->{$arr[$row][3]} == 1 ) { echo "checked"; }?> />&nbsp;&nbsp;

    Plugin Author Chad Butler

    (@cbutlerjr)

    That may be a php 7 issue, which, if it is, I’d like to clear up.

    That line (161) looks like this:

    <input name="<?php echo $arr[$row][1]; ?>" type="checkbox" id="<?php echo $arr[$row][1]; ?>" value="1" <?php if ( $wpmem->$arr[$row][3] == 1 ) { echo "checked"; }?> />&nbsp;&nbsp;

    Please change it to this and let me know if that resolves the notices:

    <input name="<?php echo $arr[$row][1]; ?>" type="checkbox" id="<?php echo $arr[$row][1]; ?>" value="1" <?php if ( $wpmem->{$arr[$row][3]} == 1 ) { echo "checked"; }?> />&nbsp;&nbsp;

    Thread Starter Mike

    (@mvasin)

    Yes, it seems to work. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘php7 notifications’ is closed to new replies.