When I enable this module, I see this error:

User warning: The following module is missing from the file system: in drupal_get_filename() (line 255 of core/includes/bootstrap.inc).
drupal_get_filename('profile', NULL)
drupal_get_path('profile', NULL)
Drupal\social_media_links\IconsetFinderService->setSearchDirs()
Drupal\social_media_links\IconsetFinderService->__construct()
Drupal\Core\DependencyInjection\Container\prod\service_container_prod_74565478->getSocialMediaLinks_FinderService()
Symfony\Component\DependencyInjection\Container->get('social_media_links.finder')
Drupal::service('social_media_links.finder')
Drupal\social_media_links\Plugin\Block\SocialMediaLinksBlock->__construct(Array, 'social_media_links_block', Array)
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('social_media_links_block', Array)
Drupal\Component\Plugin\PluginManagerBase->createInstance('social_media_links_block', Array)
Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->initializePlugin('social_media_links_block')
Drupal\block\BlockPluginCollection->initializePlugin('social_media_links_block')
Drupal\Component\Plugin\LazyPluginCollection->get('social_media_links_block')
Drupal\block\BlockPluginCollection->get('social_media_links_block')
Drupal\block\Entity\Block->getPlugin()
Drupal\block\BlockAccessControlHandler->checkAccess(Object, 'view', 'x-default', Object)
Drupal\Core\Entity\EntityAccessControlHandler->access(Object, 'view', 'x-default', NULL, 1)
Drupal\Core\Entity\Entity->access('view', NULL, 1)
Drupal\block\BlockRepository->getVisibleBlocksPerRegion(Array)
Drupal\block\Plugin\DisplayVariant\BlockPageVariant->build()
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1)
Stack\StackedHttpKernel->handle(Object, 1, 1)
Drupal\Core\DrupalKernel->handle(Object)

I'm working with Drupal 8.0.0-beta13.

I think the fix is to change the call to drupal_get_path in src/IconsetFinderService.php so that it'll only run if drupal_get_profile isn't null, to account for this change: https://www.drupal.org/node/2235431 (drupal_get_profile no longer falls back to "standard").

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hey_germano created an issue. See original summary.

hey_germano’s picture

Here's a patch for this. It's working for me in beta13.

hey_germano’s picture

(Apologies for the duplicate comments! Not sure what went wrong there and I can't delete them.)

  • cbeier committed 28ed995 on 8.x-2.x authored by hey_germano
    Issue #2558283 by hey_germano: User warning from drupal_get_path
    
cbeier’s picture

Status: Needs review » Fixed

Hmmm, I had never this error (not even with the current beta). But I have the patch committed to 8.x-2.x-dev.

  • cbeier committed f9ee7a8 on 8.x-2.x
    Issue #2558283 by hey_germano, cbeier: Fixed a related issue to User...
hey_germano’s picture

Status: Fixed » Needs review
FileSize
727 bytes

I just tried this on a different install and noticed I created a PHP notice in some cases with this ($profile is undefined when drupal_get_profile() returns NULL). Sorry about that. Patch attached.

hey_germano’s picture

Disregard that last one, this works better.

  • cbeier committed 89106fe on 8.x-2.x authored by hey_germano
    Issue #2558283 by hey_germano, cbeier: User warning from drupal_get_path
    
cbeier’s picture

Status: Needs review » Fixed

Patch committed again. Thank you.

Status: Fixed » Closed (fixed)

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