Change WordPress user roles and capabilities Forums Bug Reports Fatal error on upgrade to 4.18.5

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #1541

    Just upgraded and got this error:

    Plugin failed to reactivate due to a fatal error.

    Parse error: syntax error, unexpected ‘)’, expecting T_PAAMAYIM_NEKUDOTAYIM in *************/wp/wp-content/plugins/user-role-editor-pro/includes/pro/class-ure-lib-pro.php on line 36


    As a temporary fix I have done this:

    1 – Added licence key to wp_config, But using this code:
    define(URE_LICENSE_KEY, ‘mykey’);

    Your readme.txt file says to use
    define(URE_LICENSE, ‘your-license-code-here’);
    I think that is the wrong constant.

    2 – I completely removed (commented) the function is_license_key_editable() in plugins/user-role-editor-pro/includes/pro/class-ure-lib-pro.php

    By doing this I was able to activate the plugin again.


    Thank you.
    I fixed the issue without version change. So you may download 4.18.5 again and replace class-ure-lib-pro.php file with the latest one.

    There is no syntax error apparently at the line 36. But it is raised at PHP versions 5.4 and older. My fault that I did not test the update with earlier PHP versions.

    Function is_license_key_editable() is used to show URE’s Settings page.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.