Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Fatal error: Uncaught TypeError: Argument 1 passed to Bokt\Phpbb\Models\AclGroup::getGroup() #3

Open
gustjoha opened this issue May 22, 2020 · 1 comment

Comments

@gustjoha
Copy link

gustjoha commented May 22, 2020

Migration for forum:

PHP Fatal error:  Uncaught TypeError: Argument 1 passed to Bokt\Phpbb\Models\AclGroup::getGroup() must be an instance of Bokt\Phpbb\Models\Group, null given, called in /path/to/flarum/vendor/bokt/flarum-phpbb-migrate/src/Models/AclGroup.php on line 47 and defined in /path/to/flarum/vendor/bokt/flarum-phpbb-migrate/src/Concerns/ReplacesGenericGroups.php:17
Stack trace:
#0 /path/to/flarum/vendor/bokt/flarum-phpbb-migrate/src/Models/AclGroup.php(47): Bokt\Phpbb\Models\AclGroup->getGroup(NULL)
#1 /path/to/flarum/vendor/bokt/flarum-phpbb-migrate/src/Models/Forum.php(93): Bokt\Phpbb\Models\AclGroup->import()
#2 /path/to/flarum/vendor/illuminate/database/Concerns/BuildsQueries.php(62): Bokt\Phpbb\Models\Forum->Bokt\Phpbb\Models\{closure}(Object(Bokt\Phpbb\Models\AclGroup), 2)
#3 /path/to/flarum/vendor/illuminate/database/Concerns/BuildsQueries.php(39): Illuminate\Database\Eloquent\Builder->Illuminate\Database\ in /home/hockeyb/beta.hockeybulletin.se/vendor/bokt/flarum-phpbb-migrate/src/Concerns/ReplacesGenericGroups.php on line 17
@jslirola
Copy link

I get the same error. This is the output of var_dump($this):

{"group_id":3,"forum_id":1,"auth_option_id":0,"auth_role_id":15,"auth_setting":0,"group":null}"

I'll try to figure it out what's the cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants