[Fatal error] Cannot access protected property Drupal\field\Entity\FieldStorageConfig::$type
[0] file:///var/www/site/docroot/profiles/hungry_kickstart/modules/contrib/office_hours/office_hours.module.office_hours_form_field_ui_field_storage_edit_form_alter:63
[1] file:///var/www/site/docroot/core/lib/Drupal/Core/Extension/ModuleHandler.php.Drupal\Core\Extension\ModuleHandler->alter:494
[2] file:///var/www/site/docroot/core/lib/Drupal/Core/Form/FormBuilder.php.Drupal\Core\Form\FormBuilder->prepareForm:633
[3] file:///var/www/site/docroot/core/lib/Drupal/Core/Form/FormBuilder.php.Drupal\Core\Form\FormBuilder->buildForm:211
[4] file:///var/www/site/docroot/core/lib/Drupal/Core/Controller/FormController.php.Drupal\Core\Controller\FormController->getContentResult:79
[5] file:///var/www/site/docroot/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php.call_user_func_array:145
[6] file:///var/www/site/docroot/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php.Symfony\Component\HttpKernel\HttpKernel->handleRaw:145
[7] file:///var/www/site/docroot/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php.Symfony\Component\HttpKernel\HttpKernel->handle:66
[8] file:///var/www/site/docroot/core/lib/Drupal/Core/StackMiddleware/Session.php.Drupal\Core\StackMiddleware\Session->handle:62
[9] file:///var/www/site/docroot/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php.Drupal\Core\StackMiddleware\KernelPreHandle->handle:53
[10] file:///var/www/site/docroot/core/lib/Drupal/Core/StackMiddleware/PageCache.php.Drupal\Core\StackMiddleware\PageCache->pass:115
[11] file:///var/www/site/docroot/core/lib/Drupal/Core/StackMiddleware/PageCache.php.Drupal\Core\StackMiddleware\PageCache->handle:94
[12] file:///var/www/site/docroot/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php.Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle:58
[13] file:///var/www/site/docroot/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php.Drupal\Core\StackMiddleware\NegotiationMiddleware->handle:65
[14] file:///var/www/site/docroot/core/vendor/stack/builder/src/Stack/StackedHttpKernel.php.Stack\StackedHttpKernel->handle:23
[15] file:///var/www/site/docroot/core/lib/Drupal/Core/DrupalKernel.php.Drupal\Core\DrupalKernel->handle:565
[16] file:///var/www/site/docroot/index.php.{main}:24

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Mschudders’s picture

Mschudders’s picture

This happens when you try to edit the field.

For example: admin/structure/types/manage/shop/fields/node.shop.field_opening_hours

Mschudders’s picture

Assigned: Mschudders » Unassigned
johnv’s picture

Status: Needs review » Fixed

The Widget interface was changed. Repaired this.

The office_hours widget still has a bug: setting the cardinality to the field is necessary for having multiple slots per day, but this insert a '+' in front of the widget.

  • johnv committed 91dbda3 on 8.x-1.x
    Issue #2485433: Set Unlimited cardinality in Field settings.
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.