Forums
Hello!
I'm experiencing the following problem (installend Opigno 2.6 with Composer)
When I create a Group (i.e. Course) I'm getting the following error... see below
It points to line 1434 in a Opigno file ( $group_visibility = $group->field_learning_path_visibility->value; ) but apparently doesn't receive the wanted input.
Does anyone know how to solve this? Was the database properly updated?
Thnx
Notice: Trying to get property of non-object in opigno_learning_path_group_access() (line 1434 of modules/contrib/opigno_learning_path/opigno_learning_path.module).
opigno_learning_path_group_access(Object, 'view', Object)
call_user_func_array('opigno_learning_path_group_access', Array) (Line: 403)
Drupal\Core\Extension\ModuleHandler->invokeAll('group_access', Array) (Line: 97)
Drupal\Core\Entity\EntityAccessControlHandler->access(Object, 'view', Object, 1) (Line: 709)
Drupal\Core\Entity\ContentEntityBase->access('view', Object, 1) (Line: 65)
Drupal\Core\Entity\EntityAccessCheck->access(Object, Object, Object)
call_user_func_array(Array, Array) (Line: 159)
Drupal\Core\Access\AccessManager->performCheck('access_check.entity', Object) (Line: 135)
Drupal\Core\Access\AccessManager->check(Object, Object, Object, 1) (Line: 112)
Drupal\Core\Access\AccessManager->checkRequest(Object, Object, 1) (Line: 109)
Drupal\Core\Routing\AccessAwareRouter->checkAccess(Object) (Line: 94)
Drupal\Core\Routing\AccessAwareRouter->matchRequest(Object) (Line: 115)
Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest(Object, 'kernel.request', Object)
call_user_func(Array, Object, 'kernel.request', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.request', Object) (Line: 127)
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)
Hi,
Hi,
This is a notice, not an error.
It will not have any impact on the features.
Btw if this is a production server, you should disable display of notices (in Apache settings).
In reply to Hi, by axel
notice or error
In reply to notice or error by viragom
Are you managing your course
Are you managing your course from the learning path manager ?
If nothing appears on your page then you have an error, other than the issue that you mention.
You should check your console, and your Apache logs