• Hi, yesterday after updating my Hustle plugin I started getting this messages in the main page:

    Notice: Undefined property: WP_Members::$regchk in /home/g1000458/public_html/blog/wp-content/plugins/wp-members/inc/class-wp-members.php on line 483

    And in the dashboard configuration I get the following messages

    Notice: Trying to get property of non-object in /home/g1000458/public_html/blog/wp-content/plugins/wp-members/inc/utilities.php on line 189

    Notice: Trying to get property of non-object in /home/g1000458/public_html/blog/wp-content/plugins/wp-members/inc/utilities.php on line 282

    Notice: Trying to get property of non-object in /home/g1000458/public_html/blog/wp-content/plugins/wp-members/inc/utilities.php on line 282

    Notice: Undefined property: WP_Members::$regchk in /home/g1000458/public_html/blog/wp-content/plugins/wp-members/inc/class-wp-members.php on line 483

    I have to disable the plugin to stop the errors. Please let me know if the will be any update fixing this issues.

    I talked with the Hustle support and as the error ir produced by wp-members plugin they could not help me.

    Please let me know how can this be fix,
    Thank you for your time

    • This topic was modified 7 years, 9 months ago by tamahome1039.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    As mentioned in this post, I’m not certain why this would occur in the admin as that value is not used by the plugin there, but I suspect this (and other plugins) may have some element that loads something in WP that causes a filter or action to load that WP-Members is also hooked to. So even though it’s not used and would be empty, it’s undefined.

    Also as I mentioned here, it will be resolved in the next update.

    Regardless of whether it should be there or not in the admin, it probably should be defined in the object so that even if it lacks a value (which it should here) that it is not undefined. So I’ll address that in the next update.

    In the meantime, you can apply this yourself with a slight change to the main class file.

    In the file /wp-members/inc/class-wp-members.php, at the beginning of the class where several variables are defined, add the following:

    public $action;
    public $regchk;

    This should come immediately after public $post_types;

    Thread Starter tamahome1039

    (@tamahome1039)

    Chad,
    Thank you so much for the reply and quick responde. I did what you told me and added

    public $action;
    public $regchk;

    right after public $post_types;

    The errors dissapeared from the main site but in Hustle plugin configuration I’m not getting this

    Notice: Trying to get property of non-object in /home/g1000458/public_html/blog/wp-content/plugins/wp-members/inc/utilities.php on line 189

    Notice: Trying to get property of non-object in /home/g1000458/public_html/blog/wp-content/plugins/wp-members/inc/utilities.php on line 282

    Notice: Trying to get property of non-object in /home/g1000458/public_html/blog/wp-content/plugins/wp-members/inc/utilities.php on line 282

    Im also in contact with Hustle support to let them know and try to find a fix in a future update maybe.

    Thank you again

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP-Member errors with Hustle Plugin’ is closed to new replies.