ui_patterns icon indicating copy to clipboard operation
ui_patterns copied to clipboard

Missing module in a theme

Open johnreytanquinco opened this issue 7 years ago • 5 comments

User warning: The following theme is missing from the file system: ui_patterns_test in drupal_get_filename() (line 250 of /opt/app-root/src/core/includes/bootstrap.inc) #0 /opt/app-root/src/core/includes/bootstrap.inc(566): _drupal_error_handler_real(512, 'The following t...', '/opt/app-root/s...', 250, Array) #1 [internal function]: _drupal_error_handler(512, 'The following t...', '/opt/app-root/s...', 250, Array) #2 /opt/app-root/src/core/includes/bootstrap.inc(250): trigger_error('The following t...', 512) #3 /opt/app-root/src/core/includes/bootstrap.inc(273): drupal_get_filename('theme', 'ui_patterns_tes...') #4 /opt/app-root/src/core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php(390): drupal_get_path('theme', 'ui_patterns_tes...') #5 /opt/app-root/src/core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php(85): Drupal\Core\Asset\LibraryDiscoveryParser->drupalGetPath('theme', 'ui_patterns_tes...') #6 /opt/app-root/src/core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php(87): Drupal\Core\Asset\LibraryDiscoveryParser->buildByExtension('ui_patterns_tes...')

johnreytanquinco avatar Oct 31 '17 03:10 johnreytanquinco

Hello @johnreytanquinco how did you get that message exactly?

ademarco avatar Oct 31 '17 07:10 ademarco

I was trying to fix this issue , and able to access /pattens link by just doing this step. Then I received that warning message in Drupal logs.

johnreytanquinco avatar Oct 31 '17 07:10 johnreytanquinco

I'm having a very similar issue, but a little different in that when my site attempts to build, when Drupal is looking up the dependency, such as my_custom_theme, the build error shows: drupal_get_path('module&', 'my_custom_theme')

Of course, my_custom_theme is not a module, it's a theme. This seems to stem from the fact that the feature module YML has a dependency on that theme, such as: custom_paragraphs.yml: `name: 'Paragraph Components' type: module description: 'Shared and reusable paragraph components.' package: Custom core: 8.x dependencies:

  • field
  • field_layout
  • layout_discovery
  • link
  • media_entity
  • node
  • my_custom_theme
  • paragraphs
  • text`

Essentially, I configured the field mapping for UI Patterns on the paragraph fields, and because of that integration, I think that's why the dependency on the theme occurs.

joshuaboltzmc avatar Nov 17 '17 22:11 joshuaboltzmc

I put together a patch for Features to resolve this issue:

  • https://www.drupal.org/project/features/issues/2924625

Please give it a spin, it should help with this.

damienmckenna avatar Nov 27 '17 15:11 damienmckenna

Thanks for following up @damienmckenna ! @joshuaboltzmc does this Features patch solve the issue for you?

ademarco avatar Dec 30 '17 15:12 ademarco