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

alexm

Member
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
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.
 

alexm

Member
That did it! (y)

You have to tick the warning about the file being different, then it goes ahead and does it.

Thanks Chris

Alex
 
Top