- Issue created by @Nelo_Drup
- πΊπΈUnited States bobbysaul
Hello,
Thank you for reporting this issue. I want to check first if you ran the database update? There was an update hook with version 4 of this module, inline_formatter_field_update_8005, which should create the a text editor that uses the Ace Editor.
Can you verify the following:
- the hook ran ([site url]/update.php or drush updb)
- the text editor iff_ace_editor was created ([site url]/admin/config/content/formats)
- the module's configuration is set to use that new editor ([site url]/config/inline_formatter_field/settings)
If all of those are correct, can you see if there is any errors logged?
Thanks!
As you told me, I updated the database and the editor was solved, although now the option appears, the editor still does not work since I have a javascript error:
Note: I am doing this from a paragraph
In console:
Uncaught TypeError: window.IffAceEditor is not a constructorIn status report:
Warning: file_get_contents(modules/contrib/inline_formatter_field/js/IffAceEditor.js): Failed to open stream: No such file or directory in Drupal\Core\Asset\JsOptimizer->optimize() (line 25 of /var/www/example.com/core/lib/Drupal/Core/Asset/JsOptimizer.php) #0 /var/www/example.com/core/includes/bootstrap.inc(158): _drupal_error_handler_real()
#1 [internal function]: _drupal_error_handler()
#2 /var/www/example.com/core/lib/Drupal/Core/Asset/JsOptimizer.php(25): file_get_contents()
#3 /var/www/example.com/core/lib/Drupal/Core/Asset/JsCollectionOptimizer.php(126): Drupal\Core\Asset\JsOptimizer->optimize()
#4 /var/www/example.com/core/lib/Drupal/Core/Asset/AssetResolver.php(282): Drupal\Core\Asset\JsCollectionOptimizer->optimize()
#5 /var/www/example.com/core/lib/Drupal/Core/Ajax/AjaxResponseAttachmentsProcessor.php(145): Drupal\Core\Asset\AssetResolver->getJsAssets()
#6 /var/www/example.com/core/lib/Drupal/Core/Ajax/AjaxResponseAttachmentsProcessor.php(113): Drupal\Core\Ajax\AjaxResponseAttachmentsProcessor->buildAttachmentsCommands()
#7 /var/www/example.com/core/lib/Drupal/Core/EventSubscriber/AjaxResponseSubscriber.php(62): Drupal\Core\Ajax\AjaxResponseAttachmentsProcessor->processAttachments()
#8 [internal function]: Drupal\Core\EventSubscriber\AjaxResponseSubscriber->onResponse()
#9 /var/www/example.com/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
#10 /var/www/example.com/vendor/symfony/http-kernel/HttpKernel.php(196): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#11 /var/www/example.com/vendor/symfony/http-kernel/HttpKernel.php(247): Symfony\Component\HttpKernel\HttpKernel->filterResponse()
#12 /var/www/example.com/vendor/symfony/http-kernel/HttpKernel.php(89): Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
#13 /var/www/example.com/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#14 /var/www/example.com/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#15 /var/www/example.com/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#16 /var/www/example.com/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#17 /var/www/example.com/vendor/asm89/stack-cors/src/Cors.php(53): Drupal\page_cache\StackMiddleware\PageCache->handle()
#18 /var/www/example.com/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Asm89\Stack\Cors->handle()
#19 /var/www/example.com/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#20 /var/www/example.com/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#21 /var/www/example.com/core/lib/Drupal/Core/DrupalKernel.php(692): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#22 /var/www/example.com/index.php(19): Drupal\Core\DrupalKernel->handle()
#23 {main}.- πΊπΈUnited States bobbysaul
Hello,
This issue looks to be a duplicate of another issue, issue 3414750 π Warning: file_get_contents(modules/contrib/inline_formatter_field/js/IffAceEditor.js): Failed to open stream: No such file or directory Needs review . The issue is currently in the "Needs review" state. I believe it is resolved with the newest 4.x-dev commit. If you could please try using the newest 4.x-dev branch to see if it fixes your issue? If it does work, please, mark that issue as reviewed and tested by the community.
Thanks!
@bobbysaul Hello, I confirm that the version of the problem was solved, I usually do not use the dev versions, let's hope a final version comes out soon
- Status changed to Closed: duplicate
10 months ago 2:42am 19 January 2024 - πΊπΈUnited States bobbysaul
Marking this as duplicate and closing.
The fix has been released in the newest 4.0.0-rc3 release.