I get a WSOD after I click save on a BEE enabled entity

InvalidArgumentException: Field field_use_open_hours is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 580 of drupal-8.5.3/html/core/lib/Drupal/Core/Entity/ContentEntityBase.php).

Comments

SocialNicheGuru created an issue. See original summary.

socialnicheguru’s picture

In the module neither of these has storage configurations:
field_open_hours
field_use_open_hours

acrollet’s picture

Status: Active » Postponed (maintainer needs more info)

Hi there,

I've attempted to reproduce this without success. Could you post step by step instructions to reproduce this error on a new simplytest site? thanks!

socialnicheguru’s picture

create a bee type
on the manage display add Office Hours -> rendered entity to the display
hit save

create the bee entity from the content type
hit save
WSOD

socialnicheguru’s picture

Status: Postponed (maintainer needs more info) » Active
acrollet’s picture

Status: Active » Postponed (maintainer needs more info)

Hi there, I don't have an option for 'rendered entity' when setting the display - could you post screenshots?

socialnicheguru’s picture

Status: Postponed (maintainer needs more info) » Active

ok so I create a content type called scheduler
I enabled BEE on that
I then created an entity type called organization
I created an entity reference between organization and scheduler. I allow for more than one schedule ie. walk-ins, call times
I made that an inilne_entity_form.
On the display for the entity reference I have the option to render entity for scheduler
If I include office_hours I get a WSOD.
I do not know if I even need to include it or not.

acrollet’s picture

Is this a bug with how we're using the office hours module, or does it not support inline_entity_form? Have you tried adding an office hours field to a non bee-enabled entity and displaying that field with IEF? thanks!

acrollet’s picture

Status: Active » Postponed (maintainer needs more info)
gebiss’s picture

Hi,

I am using BEE 8.x-1.0-beta7 on Drupal 8.7.7

I get exactly the same error while trying to update availability (node with the calendar > tab Availability > Update availability > Available/Unavailable, Start date/End date > Update availability button).

I have setup content type with the calendar as:
Booking length:
- Daily Bookings (allows bookings of 1 or more full days)
Availability:
- Generally available (Use for resources that are usually available unless there is a booking. Examples are meeting rooms and equipment).

+Add Reservation button works file, just problems with updating Availability.

Full error message:
InvalidArgumentException: Field field_availability_hourly is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 587 of /home/d3signeu/bee.com/core/lib/Drupal/Core/Entity/ContentEntityBase.php).

Jacek

acrollet’s picture

@gebiss can you provide instructions for reproducing this error from a new d8 site? thanks!!

gebiss’s picture

Hi,

Of course:

Fresh D8 install (Drupal 8.7.7) plus following modules: admin_toolbar, adminimal_admin_toolbar, bat, bat_api, bee, ctools, facets, fullcalendar_library, ludwig, office_hours, search_api, services.

Downoaded all required libraries: jquery-ui-slider-pips.min.css, jquery-ui-slider-pips.min.js and the roomify/bat (via Ludwig module: https://www.drupal.org/project/ludwig)

Created content type for the availability calendar > Make this entity type bookable:
Booking length:
- Daily Bookings (allows bookings of 1 or more full days)
Availability:
- Generally available (Use for resources that are usually available unless there is a booking. Examples are meeting rooms and equipment).

Created content with the calendar.

ISSUE: As I said in previous post I receive error when trying to update availability for Daily bookings. +Add Reservation button works file. I can create reservations.

Today I also created content type for Flexible Bookings (allows bookings of any length) and created availability calendar. Here everything works fine (changing availability and adding reservations).

If this helps I can share access to the backend for you.

Regards,
Jacek

  • nicola85 committed 440bdb2 on 8.x-1.x
    Issue #2973469 by gebiss: Use the right ‘daily’ field on the Update...

acrollet credited nicola85.

acrollet’s picture

Status: Postponed (maintainer needs more info) » Fixed

Thanks for the clear bug report! Fixed in -dev (I'll be releasing beta8 shortly)

gebiss’s picture

Great! Tested beta8 and it works fine. Thanks for the fix

acrollet’s picture

:-)

Status: Fixed » Closed (fixed)

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