• 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

#1
Hi there,

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

1512074747938.png

Here's the error...

1512074534061.png

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

Alex
 

Chris D

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

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

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

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