alexm Active member Nov 30, 2017 #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... Here's the error... Is it permission that needs to be set or...? Alex
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...? Alex
Chris D XenForo developer Staff member Nov 30, 2017 #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.
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 Active member Nov 30, 2017 #3 That did it! You have to tick the warning about the file being different, then it goes ahead and does it. Thanks Chris Alex
That did it! You have to tick the warning about the file being different, then it goes ahead and does it. Thanks Chris Alex
Chris D XenForo developer Staff member Nov 30, 2017 #4 Great. That’s fixed for the next release then.