Error from adding new Module

unqtious
Forums
I've been working on this all day, but I can't seem to add a new module. Every time I get this error: The website encountered an unexpected error. Please try again later. Error: Call to a member function id() on null in Drupal\opigno_module\Form\OpignoModuleForm->save() (line 312 of modules/contrib/opigno_module/src/Form/OpignoModuleForm.php). Drupal\opigno_module\Form\OpignoModuleForm->save(Array, Object) call_user_func_array(Array, Array) (Line: 111) Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 51) Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 590) Drupal\Core\Form\FormBuilder->processForm('opigno_module_form', Array, Object) (Line: 319) Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 61) Drupal\Core\Entity\EntityFormBuilder->getForm(Object) (Line: 20) Drupal\opigno_module\Controller\LearningPathController->addIndex() call_user_func_array(Array, Array) (Line: 123) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber{closure}() (Line: 582) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber{closure}() (Line: 151) Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68) Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57) Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47) Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106) Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85) Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23) Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 693) Drupal\Core\DrupalKernel->handle(Object) (Line: 19) This is the affected code: $route_params = current(\Drupal::routeMatch()->getParameters()); $group_id = $route_params['group']->id(); Given the above code, it appears as though there's a missing parameterof group id from the form's POST. Does anyone know if this is a bug or caused by a third-party module? Or any other explanation would be appreciated. Thanks in advance.
asikuy

adding new module

how are you adding the new module? drush? composer? tar ball? and how did you install Opigno? If you installed Opigno via Composer, you should install the new module with Composer.
unqtious

Found a the issue in queue

Hi asikuy, Yes, I used composer for everything. I found the issue in Drupal issue queue: https://www.drupal.org/project/opigno_lms/issues/3090943 But I'm using Opingo 2.9, which it states that's when the issue is fixed.
asikuy

Error from adding new Module

It seems like a bug in 2.8 and prob not fixed yet in 2.9. Hopefully you can restore to a previous working copy.