Change WordPress user roles and capabilities Forums Bug Reports Update to 4.38 causing error 500 on Multisites

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4378
    creativeblogs
    Participant

    Hi,

    I’ve just run a plugin update of URE pro on two separate multisites. Both produced the same error:

    Parse error: syntax error, unexpected ‘[‘ in /wp-content/plugins/user-role-editor-pro/pro/includes/classes/page-permissions-view.php on line 64

    update to 4.38

    #4379
    Vladimir
    Keymaster

    Hi,

    Thanks for this information.
    Developing and testing under PHP 7.0, I missed somehow an earlier PHP versions.
    Quick workaround – replace line 64 at /wp-content/plugins/user-role-editor-pro/pro/includes/classes/page-permissions-view.php

    
    $capability = array_values($caps)[0];
    

    with this version:

    
    $caps_list = array_values($caps);
    $capability = $caps_list[0];
    

    Or rollback to previous version and wait an updated version. I will publish it next 1-2 weeks.

    #4380
    Vladimir
    Keymaster

    It seems that it’s critical for PHP versions 5.3 and earlier. PHP 5.4+ should parse such code normally. Do your sites still work under unsupported PHP version?

    It’s time to think about an upgrade: PHP supported versions.

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