• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed I've got an error trying to upgrade the gallery

Hi there,

I've got an error trying to upgrade the Gallery. I've uploaded the files and I have the button to Upgrade...


Here's the error...


Is it permission that needs to be set or...?


Chris D

XenForo developer
Staff member
Actually, this could be a bug.

If you open the Setup.php file indicated in the error and find:

$viewInherit = in_array('-1', $viewGroups);
$addInherit = in_array('-1', $addGroups);
And change that to:

$viewInherit = in_array('-1', $viewGroups ?: []);
$addInherit = in_array('-1', $addGroups ?: []);
I think that should sort it.