• Resolved vaniafilipaasf

    (@vaniafilipaasf)


    When I activate activate the WP-Members Advanced Options plugin and check “Unload ACF fields if content is blocked”, when I try to enter any page of the site without loggin done, gives me the following error:

    Fatal error: Call to a member function is_blocked () on null in C: \ xampp \ htdocs \ [name of project] \ wp-content \ plugins \ wp-members-advanced-options \ includes \ class-wp-members-advanced -options.php on line 1184

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

    (@cbutlerjr)

    Support for any of the plugin’s premium extensions needs to be handled through https://rocketgeek.com. There are two reasons for this. First, the www.ads-software.com forum rules don’t allow it. Second, I am not as able to review the forums here as I am working on supporting customers of rocketgeek.com. I’ll see your request sooner if it comes through the site. (If you’ve only purchased a premium extension and not support for WP-Members itself, you are still supported for the extension.)

    The issue you noted will require a plugin update to the Advanced Options (which I will work to get resolved as quickly as possible). But you can patch it immediately by doing the following:

    In the /includes/class-wp-members-advanced-options.php file, at around line 1184 you’ll be looking at the unload_acf() function. In that function, you see and ‘if’ condition that looks like the following:

    if ( $wpmem->is_blocked() ) {

    Change that to this:

    if ( wpmem_is_blocked() ) {

    The problem is that the global $wpmem is not established in the function, but it should be. However, using the WP-Members API function wpmem_is_blocked() avoids the need for the global because it is a wrapper for the method in the $wpmem object.

    Contact me through the site and I’ll help you get it resolved.

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error: Call to a member function is_blocked () on null’ is closed to new replies.