Forums

[resolved] [closed] Admin panel user section error... (4 posts)

  1. AkeB0N0
    Member
    Posted 6 years ago #

    I Have 1.5.1.3 version and I get it below the error.

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in c:\Inetpub\wwwroot\WP\wp-includes\capabilities.php on line 141

    PS: I was updated capabilities.php and punction.php from trunk version, but it's not solved my problem.

    Thanks

  2. AkeB0N0
    Member
    Posted 6 years ago #

    capabilities.php code details below

    //Build $allcaps from role caps, overlay user's $caps
    $this->allcaps = array();
    foreach($this->roles as $role => $value) {
    $role = $wp_roles->get_role($role);
    $this->allcaps = array_merge($this->allcaps, $role->capabilities);
    }
    $this->allcaps = array_merge($this->allcaps, $this->caps);
    }

  3. Mark (podz)
    Support Maven
    Posted 6 years ago #

    I am fairly sure that is code from 1.6
    The forums do not support 1.6 code at all.
    The only place you can ask for support - because none is promised - is the testers list:
    http://codex.wordpress.org/Mailing_Lists

    If that were my blog, I would backup and reinstall 1.5.1.3
    Backing up before you do anything else is a Good Thing.

  4. masquerade
    Member
    Posted 6 years ago #

    To confirm, the above is 1.6 code. capabilities.php doesn't even exist before 1.6. As Podz said, 1.6 is unsupported, and the only reason you should be using 1.6 is if you are a test (in which case this post belongs on the WP-Testers mailing list) or if you are capable of writing PHP in your sleep (in which case patches belong at http://trac.wordpress.org/ )

Topic Closed

This topic has been closed to new replies.

About this Topic