• Resolved s1r0n

    (@s1r0n)


    I get the following error when trying to activate the plugin

    `
    Warning: Attempt to read property “roles” on bool in /usr/local/lsws/www/lightningpath.org/wp-content/plugins/wpforo/wpf-includes/class-members.php on line 1090

    Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/lsws/www/lightningpath.org/wp-content/plugins/wpforo/wpf-includes/class-members.php:1090 Stack trace: #0 /usr/local/lsws/www/lightningpath.org/wp-content/plugins/wpforo/wpf-includes/class-members.php(1090): in_array() #1 /usr/local/lsws/www/lightningpath.org/wp-content/plugins/wpforo/wpf-includes/class-members.php(1133): wpForoMember->synchronize_user() #2 /usr/local/lsws/www/lightningpath.org/wp-content/plugins/wpforo/wpf-includes/functions-installation.php(64): wpForoMember->synchronize_users() #3 /usr/local/lsws/www/lightningpath.org/wp-content/plugins/wpforo/wpf-includes/functions-installation.php(17): wpforo_activation() #4 /usr/local/lsws/www/lightningpath.org/wp-includes/class-wp-hook.php(292): do_wpforo_activation() #5 /usr/local/lsws/www/lightningpath.org/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters() #6 /usr/local/lsws/www/lightningpath.org/wp-includes/plugin.php(484): WP_Hook->do_action() #7 /usr/local/lsws/www/lightningpath.org/wp-admin/plugins.php(193): do_action() #8 {main} thrown in /usr/local/lsws/www/lightningpath.org/wp-content/plugins/wpforo/wpf-includes/class-members.php on line 1090

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support gVectors Dev

    (@gvectorsdevs)

    Hi @s1r0n,
    Go to wp-content\plugins\wpforo\wpf-includes, open class-members.php file, find 1090 line, add `
    (array)
    like it in this screenshot`
    2021-12-03_16-57-56

    Thread Starter s1r0n

    (@s1r0n)

    ya. you need to add the (array) cast to all three instances of $user-roles in that if/then loop.

    Presume this will be fixed in code with the next update?

    Plugin Support gVectors Dev

    (@gvectorsdevs)

    @s1r0n,
    This will be added in code in the new update

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error activating plugin’ is closed to new replies.