WordPress.org

Ready to get started?Download WordPress

Forums

Moderator Role
[resolved] Not able to activate plugin due to fatal error (6 posts)

  1. Marcus
    Member
    Posted 1 year ago #

    Hey,

    I am not able to activate the plugin in (either single nor network installation) due to a fatal error.

    Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of do_action(). in /www/htdocs/w0102bf3/wp-content/plugins/baw-moderator-role/baw_moderator.php on line 61

    http://wordpress.org/extend/plugins/baw-moderator-role/

  2. Julio Potier
    Member
    Plugin Author

    Posted 1 year ago #

    Hello

    Are you running a 5.4/5.5 PHP version ?

    Thx

  3. Marcus
    Member
    Posted 1 year ago #

    Hello,

    yes (5.4), and the pass-by-reference possibility is deprecated.

    For a first glance, does the call do_action( 'baw_before_admin_bar_render', $wp_admin_bar ); without & do the job?

    Thx2

  4. Julio Potier
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, logically it's ok, did you tested it without "&" ?

  5. Marcus
    Member
    Posted 1 year ago #

    Yes I did and it seems to work.

    Although I cannot be quiet sure. After activation I am forced to be an ordinary (comment) moderator (also with PHP4 and current network-WP 3.5.1 without &-fix) and have to stick to a dashboard with just comment-section, so I am not the best tester at this point ;)

  6. Marcus
    Member
    Posted 1 year ago #

    Open another topic for this issue: http://wordpress.org/support/topic/super-admin-have-moderator-dashboard

    Fix tested and is working.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.