"Add new users" - Fatal Error on activation

hi,

I've just installed my WP from fresh and I'm getting this error when I try to activate "Add New Users"

Parse error: syntax error, unexpected 'new' (T_NEW) in /var/www/html/prodootos.com.br/www/wp-content/plugins/add-new-users/add-new-users.php on line 480

Could anyone take a look at this?

Rgds,
Victor

  • Rupok

    Hi Victor,

    So sorry for the inconvenience. Are you using PHP 7 on your server? I could not regenerate this with PHP 5.6 but I could regenerate this with PHP 7. So I'm marking this as a confirmed bug and reporting to our developer right now. I believe, he will fix it in our next release of this plugin.

    Please keep in mind, our developers work round the clock and they have to deal with lots of critical issues and other things. So it may take a little while for them to check this and release a fix.

    In the mean time, to fix the issue, please login to your server with any FTP application like FileZilla and go to "/wp-content/plugins/add-new-users/" and there you will get a file named "add-new-users.php". Open that file to and go to Line: 480
    You will see the following line:
    $add_new_users =& new Add_New_Users;
    Remove the '&' symbol, or replace that line with the following:
    $add_new_users = new Add_New_Users;
    Save the file.

    Now try to activate that plugin. It will work.

    Please let us know if you have any further query. We will be glad to help.

    Have a nice day. Cheers!
    Rupok