Problem/Motivation

I'm getting this error after assigning a component to a field without a preprocess.

Symfony\Component\Finder\Exception\DirectoryNotFoundException: The "themes/custom_theme/components/calendar-date/preprocess/field" directory does not exist. in Symfony\Component\Finder\Finder->in() (line 649 of /app/vendor/symfony/finder/Finder.php).

sdc_display_preprocess_preprocess_field(Array, 'field', Array)
call_user_func_array('sdc_display_preprocess_preprocess_field', Array) (Line: 261)
Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 480)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 240)
Drupal\Core\Render\Renderer->render(Array) (Line: 123)
Drupal\sdc_display\Util::computePropValues(Array, Array, Array, Array, Object, Object) (Line: 111)
Drupal\sdc_display\Plugin\field_group\FieldGroupFormatter\SingleDirectoryComponent->process(Array, Array) (Line: 143)
Drupal\sdc_display\Plugin\field_group\FieldGroupFormatter\SingleDirectoryComponent->preRender(Array, Array) (Line: 511)
field_group_field_group_pre_render(Array, Object, Array) (Line: 847)
{closure}(Object, 'field_group') (Line: 388)
Drupal\Core\Extension\ModuleHandler->invokeAllWith('field_group_pre_render', Object) (Line: 848)
field_group_pre_render(Array, Object, Array) (Line: 742)
field_group_fields_nest(Array, Array, 'node') (Line: 621)
field_group_build_entity_groups(Array, 'node', Array)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mortona2k created an issue. See original summary.

mortona2k’s picture

Status: Active » Needs review

I threw in some is_dir() checks in the functions.

ksere’s picture

Comparison looks good to me. Green light for a merge request to be created!

mortona2k’s picture

I don't have permission to do that on this issue for some reason.

  • ksere committed 006485bc on 1.0.x
    Issue #3424202 by mortona2k: Crashes when preprocess directory is...
ksere’s picture

Committed into 1.0.x. Since this fixes an important bug I'll be creating an alpha1 release.

ksere’s picture

Status: Needs review » Reviewed & tested by the community
ksere’s picture

Status: Reviewed & tested by the community » Fixed
ksere’s picture

Status: Fixed » Closed (fixed)

Will be closing this now, it's released into 1.0.0-alpha1!