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

alexm

Active 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.webp

Here's the error...

1512074534061.webp

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

Alex
 
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.
 
Top Bottom