After update to 8.1.2 with the new installation method I get following error and my ckeditor rendering crashes:


Warning: file_get_contents(/plugin.js): failed to open stream: No such file or directory in _locale_parse_js_file() (line 1133 of core/modules/locale/locale.module).

_locale_parse_js_file('/plugin.js') (Line: 545)
locale_js_translate(Array) (Line: 305)
Drupal\ckeditor\Plugin\Editor\CKEditor->getJSSettings(Object) (Line: 220)
Drupal\ckeditor\Plugin\Editor\CKEditor->settingsForm(Array, Object, Object) (Line: 64)
Drupal\editor\Plugin\EditorBase->buildConfigurationForm(Array, Object) (Line: 176)
editor_form_filter_format_form_alter(Array, Object, 'filter_format_edit_form') (Line: 539)
Drupal\Core\Extension\ModuleHandler->alter('form', Array, Object, 'filter_format_edit_form') (Line: 835)
Drupal\Core\Form\FormBuilder->prepareForm('filter_format_edit_form', Array, Object) (Line: 277)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 93)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 582)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 693)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Comments

dercheffe created an issue. See original summary.

dercheffe’s picture

Even after a complete reinstall (following the steps described at the updated project page of this module the error occurs.
I guess it has somethinmg to do with this older issue https://www.drupal.org/project/ckeditor_emojione/issues/2971957

rj’s picture

Hmmm, I am not getting that error on a fresh install. Couple of questions:

  • Are you using the libraries module?
  • Where is the emojione library located in your Drupal installation?
dercheffe’s picture

Hi rj,

thanks for your reply.

yes, I have the libraries module installed (version 8.x-3.0-alpha1).

Before the module upgrade to 1.2, the emojione lib is located in Drupal-Root/libraries/emojione

Before the update to the new module version I deleted the mentioned library and did the install as described at the project page.

After modifying the site's composer.json (installing wikimedia/composer-merge-plugin and added the lines under the extra section too) the library gets installed again at Drupal-Root/libraries/emojione.

jyve’s picture

Same issue here. The warning appears on the first page load every now and then.

jejddx’s picture

Same issue here. Solved it by replacing code in src/Plugin/CKEditorPlugin/EmojioneCKEditorButton.php line 59

- return libraries_get_path('link');
+ return libraries_get_path('emojione');
dercheffe’s picture

Status: Active » Needs review
StatusFileSize
new331 bytes

Tried to create a patch (first time I do that in my life...) with the changes in comment #6. Please review :)

Kabinfo’s picture

#7 Thanks. Its work.

rj’s picture

StatusFileSize
new625 bytes

Thanks everyone, #6 is the correct fix, the patch in #7 doesn't apply because it wasn't created in the ckeditor_emojione docroot. The attached patch applies correctly.

  • rj committed 383bbde on 8.x-1.x
    Issue #3093301 by dercheffe, rj, Jejddx: Warning: file_get_contents(/...
rj’s picture

Assigned: Unassigned » rj
Status: Needs review » Fixed
rj’s picture

Status: Fixed » Closed (fixed)