WordPress.org

Ready to get started?Download WordPress

Forums

BuddyPress Activity Plus
PHP Strict Errors (4 posts)

  1. qstudio
    Member
    Posted 1 month ago #

    Hey,

    The plugin gives the following strict errors:

    Non-static method BpfbInstaller::check_paths() should not be called statically --- wp-content/plugins/buddypress-activity-plus/lib/class_bpfb_installer.php:34

    Non-static method BpfbBinder::serve() should not be called statically --- wp-content/plugins/buddypress-activity-plus/bpfb.php:119

    Non-static method BpfbCodec::register() should not be called statically, assuming $this from incompatible context --- wp-content/plugins/buddypress-activity-plus/lib/class_bpfb_binder.php:376

    Please can you check into the cause and issue a fix for these?

    Thanks

    https://wordpress.org/plugins/buddypress-activity-plus/

  2. WPMU DEV
    Member
    Posted 1 month ago #

    Hi @qstudio,

    Greetings and thanks for posting on the forums.

    I have notified the plugin developer to fix it in the plugin.

    In the meanwhile to fix it you can try using the solutions posted in the following replies.

    http://stackoverflow.com/a/10768663/1287548
    http://stackoverflow.com/a/4684514/1287548

    Is it affecting any of your functionality?

    Kind Regards,
    WPMU DEV

  3. maijavilkina
    Member
    Posted 1 week ago #

    Hi!

    I also had the notices showing up and the plugin did not work on installation. After fixing the errors the plugin works fine.
    So yes, it does affect functionality, at least on my site.

  4. WPMU DEV
    Member
    Posted 1 week ago #

    Hi @maijavilkina,

    Sorry to hear of the problem you are having.

    The notices are fixed in the plugin and the new updated updated plugin version will be released soon.

    In the meanwhile you can fix this issue by editing the BuddyPress Activity Plus plugin file as following.

    BuddyPress Activity Plus plugin file:
    buddypress-activity-plus/lib/class_bpfb_installer.php

    Before editing on line number 43 :

    function check_paths () {

    After editing on line number 43 :

    static function check_paths () {

    BuddyPress Activity Plus plugin file:
    buddypress-activity-plus/lib/class_bpfb_binder.php

    Before editing on line number 14 :

    function serve () {

    After editing on line number 14 :

    static function serve () {

    BuddyPress Activity Plus plugin file:
    buddypress-activity-plus/lib/class_bpfb_codec.php

    Before editing on line number 95 :

    static function register () {

    After editing on line number 95 :

    static function register () {

    Note: You are making changes in the plugin file and these changes will be overwritten and lost when you update the plugin and you will have to make these again after plugin updation.

    Cheers,
    WPMU DEV

Reply

You must log in to post.

About this Plugin

About this Topic

Tags