• Hey
    got strange error since 5 days. This block all site an access to admin.

    [08-Mar-2017 07:28:52 UTC] PHP Fatal error: Call to a member function has_cap() on null in /home/XXX/public_html/wp-content/plugins/bp-profile-search/bps-main.php on line 179

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter manouille

    (@manouille)

    Ops forgot versions.
    WP 4.7.3
    BPPS : 4.7.3 (same bug with 4.7.2)
    BP : 2.8.1

    Thread Starter manouille

    (@manouille)

    After retore backup with WP 4.7.2 got this error

    
    PHP Warning:  Creating default object from empty value in /home/massynfb/public_html/wp-content/plugins/bp-profile-search/bps-main.php on line 64
    Plugin Author Andrea Tarantini

    (@dontdream)

    Hi Manouille,

    As a workaround, please add this code to your functions.php or bp-custom.php file:

    add_filter ('bps_form_caps', 'form_caps');
    function form_caps ($caps)
    {
    	return array ();
    }

    Please let me know if that removes the error!

    Thread Starter manouille

    (@manouille)

    Thxs for reply.

    For the moment this solves the problem.

    I’ll keep you informed.

    I ve got the same bug since a month ago and this solve the problem ! Thank you for this asson script witch work perfectly with KLEO theme

    THANK YOU !!!!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error’ is closed to new replies.