Problem:

I am seeing this error:

The website encountered an unexpected error. Please try again later.</br></br><em class="placeholder">Exception</em>: Only local files should be passed to _locale_parse_js_file(). in <em class="placeholder">_locale_parse_js_file()</em> (line <em class="placeholder">1126</em> of <em class="placeholder">core/modules/locale/locale.module</em>). <pre class="backtrace">locale_js_translate(Array) (Line: 502)
locale_js_alter(Array, Object, NULL) (Line: 539)
Drupal\Core\Extension\ModuleHandler-&gt;alter(&#039;js&#039;, Array, Object) (Line: 276)
Drupal\Core\Asset\AssetResolver-&gt;getJsAssets(Object, ) (Line: 298)
Drupal\Core\Render\HtmlResponseAttachmentsProcessor-&gt;processAssetLibraries(Object, Array) (Line: 161)
Drupal\Core\Render\HtmlResponseAttachmentsProcessor-&gt;processAttachments(Object) (Line: 45)
Drupal\Core\EventSubscriber\HtmlResponseSubscriber-&gt;onRespond(Object, &#039;kernel.response&#039;, Object)
call_user_func(Array, Object, &#039;kernel.response&#039;, Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher-&gt;dispatch(&#039;kernel.response&#039;, Object) (Line: 191)
Symfony\Component\HttpKernel\HttpKernel-&gt;filterResponse(Object, Object, 1) (Line: 173)
Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel-&gt;handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session-&gt;handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle-&gt;handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache-&gt;pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache-&gt;handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware-&gt;handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware-&gt;handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel-&gt;handle(Object, 1, 1) (Line: 665)
Drupal\Core\DrupalKernel-&gt;handle(Object) (Line: 19)
</pre>

Solution:

This is happening because an external library is missing type: external

drupal.sharethispickerexternal:
  version: VERSION
  js:
    https://ws.sharethis.com/share5x/js/stcommon.js: { }
  dependencies:
      - core/jquery

Comments

partdigital created an issue. See original summary.

partdigital’s picture

Status: Active » Needs review
StatusFileSize
new424 bytes

Status: Needs review » Needs work

The last submitted patch, 2: fatal-error-malformed-external-library.patch, failed testing. View results

partdigital’s picture

Status: Needs work » Needs review
StatusFileSize
new425 bytes
greg boggs’s picture

Status: Needs review » Reviewed & tested by the community

Works as expected.

naveenvalecha’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.x-2.x

Status: Fixed » Closed (fixed)

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