70 comments found.
Hi,
I’d like to request a feature which it’s very common and important, at least for me, in building pages: the possibility to insert a row inside a column, in order to get a nested grid like described in https://getbootstrap.com/docs/4.0/layout/grid/#nestingThank you for the suggestion. We will brainstorm on the idea and get back to you with a possible solution.
Hi,
there are two possible bugs with the Image Carousel Plugin:
1) If one of the image present in the carousel is deleted from the system but not from the carousel – so for example via Content -> Files – the page with the carousel become inaccessible, and provide this error:
Error: Call to a member function getFileUri() on null in Drupal\visual_editor\Plugin\VisualEditorComponent\ImageCarousel->render() (line 70 of modules/custom/visual_editor/src/Plugin/VisualEditorComponent/ImageCarousel.php).
2) In the settings the options “Show indicators” and “Show controls” don’t work: if you de-check them and save, after re-entering in the page\plugin they are still selected
Hi,
I have noted the issue and will get back to you with a patch as soon as we resolve it.
Please check updated version for resolved issue
Hi,
I’ve found two possible bugs with Bootstrap 4:
1) Most serious: the editor use the col-xs-n (e.g. col-xs-12) syntax, but in Bootstrap 4 that class has been replaced with col-n (e.g. col-12). This cause major problem in layout in mobile.
2) When adding via the interface columns smaller than 12 – e.g. column 8-4, the columns are created with extra-small and extra-large breakpoint at size of 12 instead of the specified one.
Hi,
I have noted the issue and will get back to you with a patch as soon as we resolve it.
Please check updated version for resolved issue
Hi, I’ve found a bug: when using the ‘menu’ widget, if one of the link in the chosen menu is empty – in other words using ’#’ special char – it’s printed the following error: Notice: Undefined index: #attached in Drupal\visual_editor\Plugin\VisualEditorComponent\MenuComponent->render() (line 48 of modules/custom/visual_editor/src/Plugin/VisualEditorComponent/MenuComponent.php).
× ERROR MESSAGE
Hi,
I have noted the issue and will get back to you with a patch as soon as we resolve it.
Please check updated version for resolved issue
Hello,
we found a bug while trying to add a Fontawesome icon on a multilanguage site.
While trying to add the icon via the widget, in the console of the browser inspector we get the error GET http://sitename.local/enmodules/custom/visual_editor/js/json/fa.json 404 (Not Found)
As you can see, the path is incorrect as the “enmodule” part is wrong.
We found that in visual-editor.js on the line 382 var editorPath = Drupal.VisualEditor0.settings.basePath + Drupal.VisualEditor0.settings.editorPath;
the basePath doesn’t seem correct and it should enough something like var editorPath = ”/” + Drupal.VisualEditor0.settings.editorPath;
Anyway we’d like to ask an appropriate patch to fix this bug.
Moreover, it could be very useful to us if you could add two new functionalities regarding icons:
1) The support for Fontawesome 5 2) The possibility to add a link with a font icon without a Link Title
Thank you for your assistance.
Hi,
I have noted the issue mentioned by you and started work on patch.
For fontawesome you can directly add font awesome class instead of choosing it from icon list(Will update icons list).
You can add your own component by creating a component plugin. Given below is the link to see how it works:
http://drupalthemez.com/content/create-endless-components-visual-editorIf you need any help, please let me know.
Please find below a link to patch for mentioned issue:
http://www.drupalthemez.com/patches/visual-editor-8.x-2.5-2018-07-31.patchHi, Can’t make your module work. On the content page I get this error when I select “Visual Editor” :
visual-editor.js?pa61au:293 Uncaught TypeError: Cannot read property ‘key’ of null at Object.attach (visual-editor.js?pa61au:293) at Drupal.editorAttach (editor.js?v=8.5.4:152) at Object.success (editor.js?v=8.5.4:188) at i (jquery.min.js?v=3.2.1:2) at Object.fireWith [as resolveWith] (jquery.min.js?v=3.2.1:2) at A (jquery.min.js?v=3.2.1:4) at XMLHttpRequest.<anonymous> (jquery.min.js?v=3.2.1:4)
Hi,
Can you provide more details like browser used, field type of the field?
This is required to help you resolve the issue. Also please check if there is any javascript file conflicting with Visual Editor js.
Main content HTML field. I de-installed most of the modules and still not working.
Hi,
Try adding gmap api key. That may resolve the issue. Steps are given in documentation.
YES ! It is working with the API key.Thx !
Hello, i install the module and it works fine But when i try to put some animation on a rich text for example, it disappear i dont know what to do
Hi,
To make animation work element needs to reach to 50% of the viewport from top. If you want to change that behavior, edit visual-editor-front.js and on line number 61 change the offset percent.
Thanks for your answer, but it was at 50%, i try to change the value but either way it doesnt work :/
Animation of that component will depend on the position from the top. If it is a small and last element having lesser height that the offset set, it will not display.
Hi ! Does the visual editor work properly with Drupal 8.5.x? I am starting a new project for a University and I would like to use a stable page builder.
Hi,
Yes, Visual Editor works with Drupal 8.5.x.
Hi,
I’ve installed your module and it works fine when I add rows and sections, but, adding “CssJs settings”, it doesn’t save this values. I think the problem is the js array of editor storage.
This is the browser console error:
Uncaught TypeError: Cannot read property ‘length’ of undefined at r.fn.init.$.fn.updateComponent (visual-editor.js?p96×38:352) at Drupal.AjaxCommands.invoke (ajax.js?v=8.5.3:575) at Drupal.Ajax.success (ajax.js?p96×38:155) at Object.success (ajax.js?v=8.5.3:226) at Object.t.success (jquery.form.min.js?v=3.51:11) at i (jquery.min.js?v=3.2.1:2) at Object.fireWith [as resolveWith] (jquery.min.js?v=3.2.1:2) at A (jquery.min.js?v=3.2.1:4)
Hi,
Please apply patch given in the following file:
http://www.drupalthemez.com/patches/visual-editor-8.x-2.4-multiinstance.patchHello,
we purchased your module and it is all working fine. But when we try to use 2 Content Fields with the Editor, it is not saving any changes made to one of the editors.
Is it possible to use 2 visual editors?
Hi,
We will get back to you on this with a patch.
Thank you.
Hi,
thanks for your feedback. We have to launch a project – so can you please tell us when you can provide us with this patch.
thanks
Hi,
If you are using version downloaded after 15th May, 2018, then apply patch given at following path
http://drupalthemez.com/patches/visual-editor-8.x-2.3-multiinstance.patchElse use following:
http://drupalthemez.com/patches/visual-editor-8.x-2.2-multiinstance.patchHi guys.
As I mentioned before, we bought the visual Editor and installed it. It is working on the first view. When we try to use it, all the options are selectable, but there is no effect on the layout. For example the image carousel: All the images are displayed below the other, no carousel. e.g. the Youtube plugin: it is displayed in the smallest size.
So I looked into the stylesheets. They are shorter than 170 lines.
What are we doing wrong?
Hi,
In order to enable image carousel and responsive video embed, you must have bootstrap libraries enabled for active theme.
Hi guys,
after installing bootstrap libraries youtube and accordeon is now working fine. image carousel is still not working. images are displayed one below the other. do we still have to install anything.
thanks
Hi,
Image carousel is based on bootstrap3 js, so please check if correct is is attached in a theme.
Also check if there is any JavaScript error which is blocking carousel js execution.
hi guys,
thanks for your quick answer. carousel is working with version 3 but now the frontend is disrupted. size of all elements is reduced.
thanks
Hi,
Which version of bootstrap are you using? Theme should have bootstrap 3 css and js.
hi,
clean 8.5.3 drupal version and bootstrap 3.3.7. but it is the same with 3.0
if i am using 4.1.1 all looks good but image carousel is not working
Hi,
Do you have a public url of the setup to check?
can i write you an email?
Send mail at support@drupalthemez.com
Hi,
I think your theme is built for bootstrap 4.x framework, but our module supports bootstrap 3.x framework as of now. So overwriting some templates and javascript for carousel may work.
Hi guys,
we bought this visual editor but it is not working correctly. All the style sheets are missing. Can you please support us?!
regards sascha
Hi,
Please check if libraries directory is properly configured or not.
libraries directory has to be in drupal root directory.
Hello I have one question. Is it works with custom block in custom module?
No, but you can achieve this by creating your custom component plugin for the same.
http://www.drupalthemez.com/content/create-endless-components-visual-editorHello if i order extra function how much for version with custom block and plugin can add code php pure (i want show some information in session)?
It depends on the complexity of the extra functions.
I’m using Visual editor on my Drupal site. I’ve added a Heading component and an image component. How do I link the heading and image to go to a page? I don’t see an option in the settings. Am I missing something? Or should I use the Rich text component instead?
Hi,
Currently you cannot link heading or image to a page. So you will have to use rich text to achieve the same.
Thanks for providing an idea of linking heading and image. I will implement it and update the module to meet the functionality.
fa icon nt showing in composer
Hi,
Please check location of font awesome directory.
It has to be inside DRUPAL_ROOT/libraries/.
I cant get the webform to show, is this working? Can someone confirm?
Hi can you provide drupal8 version and webform module version? I will get back to you this.
Hi,
Please check demo link for webform functionality.
In webform id field enter the webform id of webform.
You can get it by going to Admin -> Structure -> Webforms
Click on Settings from dropdown button and copy ID from General settings fieldset.
Hi,
Please check if libraries directories is properly configured or not.
Its not reading http://construccionesreis.es/libraries/font-awesome/css/font-awesome.min.css file.
libraries directory has to be in drupal root directory.
Hey about to update the drupal core to 8.4.4, can you confirm if the module works?
Yes it works.
Hello, I have installed the Visual Editor module in Drupal 8. I’m having an issue when I add the Image widget in a column. I am able to add it and upload an image but I see the following error when viewing the page in preview or after saving and publishing the page. Do you know how to fix this?
Notice: Undefined variable: key in Drupal\visual_editor\Plugin\VisualEditorComponent\ImageComponent->render() (line 71 of modules/visual_editor-8.x-2.1/modules/custom/visual_editor/src/Plugin/VisualEditorComponent/ImageComponent.php). Drupal\visual_editor\Plugin\VisualEditorComponent\ImageComponent->render(Array) (Line: 34) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->renderText(Object, Array) (Line: 36) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->renderText(Object, Array) (Line: 36) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->renderText(Object, Array) (Line: 22) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->process(Array, ‘en’) (Line: 112) Drupal\filter\Element\ProcessedText::preRenderText(Array) call_user_func(Array, Array) (Line: 378) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array) (Line: 490) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, ‘html’, NULL, 1) (Line: 91) __TwigTemplate_e74a4433eec1a3e06c95293ba9f9e8f3d38c6ce8971a0bcab1f50e49712fde3a->doDisplay(Array, Array) (Line: 432) Twig_Template->displayWithErrorHandling(Array, Array) (Line: 403) Twig_Template->display(Array) (Line: 411) Twig_Template->render(Array) (Line: 64) twig_render_template(‘themes/bootstrap/templates/field/field.html.twig’, Array) (Line: 384) Drupal\Core\Theme\ThemeManager->render(‘field’, Array) (Line: 437) Drupal\Core\Render\Renderer->doRender(Array) (Line: 450) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array) (Line: 490) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, ‘html’, NULL, 1) (Line: 111) __TwigTemplate_0cf7bf215c39faf5a00644ac5ce5353d0e73c36d98b0901542b2916c4bd4ff18->doDisplay(Array, Array) (Line: 432) Twig_Template->displayWithErrorHandling(Array, Array) (Line: 403) Twig_Template->display(Array) (Line: 411) Twig_Template->render(Array) (Line: 64) twig_render_template(‘themes/bootstrap/templates/node/node.html.twig’, Array) (Line: 384) Drupal\Core\Theme\ThemeManager->render(‘node’, Array) (Line: 437) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array, ) (Line: 226) Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 582) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 227) Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 117) Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90) Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, ‘kernel.view’, Object) (Line: 108) Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(‘kernel.view’, Object) (Line: 158) 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: 99) Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78) Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23) Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 657) Drupal\Core\DrupalKernel->handle(Object) (Line: 19) Notice: Undefined variable: key in Drupal\visual_editor\Plugin\VisualEditorComponent\ImageComponent->render() (line 72 of modules/visual_editor-8.x-2.1/modules/custom/visual_editor/src/Plugin/VisualEditorComponent/ImageComponent.php). Drupal\visual_editor\Plugin\VisualEditorComponent\ImageComponent->render(Array) (Line: 34) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->renderText(Object, Array) (Line: 36) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->renderText(Object, Array) (Line: 36) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->renderText(Object, Array) (Line: 22) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->process(Array, ‘en’) (Line: 112) Drupal\filter\Element\ProcessedText::preRenderText(Array) call_user_func(Array, Array) (Line: 378) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array) (Line: 490) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, ‘html’, NULL, 1) (Line: 91) __TwigTemplate_e74a4433eec1a3e06c95293ba9f9e8f3d38c6ce8971a0bcab1f50e49712fde3a->doDisplay(Array, Array) (Line: 432) Twig_Template->displayWithErrorHandling(Array, Array) (Line: 403) Twig_Template->display(Array) (Line: 411) Twig_Template->render(Array) (Line: 64) twig_render_template(‘themes/bootstrap/templates/field/field.html.twig’, Array) (Line: 384) Drupal\Core\Theme\ThemeManager->render(‘field’, Array) (Line: 437) Drupal\Core\Render\Renderer->doRender(Array) (Line: 450) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array) (Line: 490) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, ‘html’, NULL, 1) (Line: 111) __TwigTemplate_0cf7bf215c39faf5a00644ac5ce5353d0e73c36d98b0901542b2916c4bd4ff18->doDisplay(Array, Array) (Line: 432) Twig_Template->displayWithErrorHandling(Array, Array) (Line: 403) Twig_Template->display(Array) (Line: 411) Twig_Template->render(Array) (Line: 64) twig_render_template(‘themes/bootstrap/templates/node/node.html.twig’, Array) (Line: 384) Drupal\Core\Theme\ThemeManager->render(‘node’, Array) (Line: 437) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array, ) (Line: 226) Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 582) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 227) Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 117) Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90) Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, ‘kernel.view’, Object) (Line: 108) Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(‘kernel.view’, Object) (Line: 158) 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: 99) Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78) Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23) Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 657) Drupal\Core\DrupalKernel->handle(Object) (Line: 19) Notice: Undefined index: in Drupal\visual_editor\Plugin\VisualEditorComponent\ImageComponent->render() (line 72 of modules/visual_editor-8.x-2.1/modules/custom/visual_editor/src/Plugin/VisualEditorComponent/ImageComponent.php). Drupal\visual_editor\Plugin\VisualEditorComponent\ImageComponent->render(Array) (Line: 34) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->renderText(Object, Array) (Line: 36) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->renderText(Object, Array) (Line: 36) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->renderText(Object, Array) (Line: 22) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->process(Array, ‘en’) (Line: 112) Drupal\filter\Element\ProcessedText::preRenderText(Array) call_user_func(Array, Array) (Line: 378) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array) (Line: 490) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, ‘html’, NULL, 1) (Line: 91) __TwigTemplate_e74a4433eec1a3e06c95293ba9f9e8f3d38c6ce8971a0bcab1f50e49712fde3a->doDisplay(Array, Array) (Line: 432) Twig_Template->displayWithErrorHandling(Array, Array) (Line: 403) Twig_Template->display(Array) (Line: 411) Twig_Template->render(Array) (Line: 64) twig_render_template(‘themes/bootstrap/templates/field/field.html.twig’, Array) (Line: 384) Drupal\Core\Theme\ThemeManager->render(‘field’, Array) (Line: 437) Drupal\Core\Render\Renderer->doRender(Array) (Line: 450) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array) (Line: 490) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, ‘html’, NULL, 1) (Line: 111) __TwigTemplate_0cf7bf215c39faf5a00644ac5ce5353d0e73c36d98b0901542b2916c4bd4ff18->doDisplay(Array, Array) (Line: 432) Twig_Template->displayWithErrorHandling(Array, Array) (Line: 403) Twig_Template->display(Array) (Line: 411) Twig_Template->render(Array) (Line: 64) twig_render_template(‘themes/bootstrap/templates/node/node.html.twig’, Array) (Line: 384) Drupal\Core\Theme\ThemeManager->render(‘node’, Array) (Line: 437) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array, ) (Line: 226) Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 582) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 227) Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 117) Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90) Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, ‘kernel.view’, Object) (Line: 108) Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(‘kernel.view’, Object) (Line: 158) 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: 99) Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78) Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23) Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 657) Drupal\Core\DrupalKernel->handle(Object) (Line: 19) Notice: Undefined variable: key in Drupal\visual_editor\Plugin\VisualEditorComponent\ImageComponent->render() (line 72 of modules/visual_editor-8.x-2.1/modules/custom/visual_editor/src/Plugin/VisualEditorComponent/ImageComponent.php). Drupal\visual_editor\Plugin\VisualEditorComponent\ImageComponent->render(Array) (Line: 34) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->renderText(Object, Array) (Line: 36) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->renderText(Object, Array) (Line: 36) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->renderText(Object, Array) (Line: 22) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->process(Array, ‘en’) (Line: 112) Drupal\filter\Element\ProcessedText::preRenderText(Array) call_user_func(Array, Array) (Line: 378) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array) (Line: 490) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, ‘html’, NULL, 1) (Line: 91) __TwigTemplate_e74a4433eec1a3e06c95293ba9f9e8f3d38c6ce8971a0bcab1f50e49712fde3a->doDisplay(Array, Array) (Line: 432) Twig_Template->displayWithErrorHandling(Array, Array) (Line: 403) Twig_Template->display(Array) (Line: 411) Twig_Template->render(Array) (Line: 64) twig_render_template(‘themes/bootstrap/templates/field/field.html.twig’, Array) (Line: 384) Drupal\Core\Theme\ThemeManager->render(‘field’, Array) (Line: 437) Drupal\Core\Render\Renderer->doRender(Array) (Line: 450) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array) (Line: 490) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, ‘html’, NULL, 1) (Line: 111) __TwigTemplate_0cf7bf215c39faf5a00644ac5ce5353d0e73c36d98b0901542b2916c4bd4ff18->doDisplay(Array, Array) (Line: 432) Twig_Template->displayWithErrorHandling(Array, Array) (Line: 403) Twig_Template->display(Array) (Line: 411) Twig_Template->render(Array) (Line: 64) twig_render_template(‘themes/bootstrap/templates/node/node.html.twig’, Array) (Line: 384) Drupal\Core\Theme\ThemeManager->render(‘node’, Array) (Line: 437) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array, ) (Line: 226) Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 582) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 227) Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 117) Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90) Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, ‘kernel.view’, Object) (Line: 108) Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(‘kernel.view’, Object) (Line: 158) 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: 99) Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78) Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23) Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 657) Drupal\Core\DrupalKernel->handle(Object) (Line: 19) Notice: Undefined variable: key in Drupal\visual_editor\Plugin\VisualEditorComponent\ImageComponent->render() (line 73 of modules/visual_editor-8.x-2.1/modules/custom/visual_editor/src/Plugin/VisualEditorComponent/ImageComponent.php). Drupal\visual_editor\Plugin\VisualEditorComponent\ImageComponent->render(Array) (Line: 34) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->renderText(Object, Array) (Line: 36) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->renderText(Object, Array) (Line: 36) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->renderText(Object, Array) (Line: 22) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->process(Array, ‘en’) (Line: 112) Drupal\filter\Element\ProcessedText::preRenderText(Array) call_user_func(Array, Array) (Line: 378) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array) (Line: 490) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, ‘html’, NULL, 1) (Line: 91) __TwigTemplate_e74a4433eec1a3e06c95293ba9f9e8f3d38c6ce8971a0bcab1f50e49712fde3a->doDisplay(Array, Array) (Line: 432) Twig_Template->displayWithErrorHandling(Array, Array) (Line: 403) Twig_Template->display(Array) (Line: 411) Twig_Template->render(Array) (Line: 64) twig_render_template(‘themes/bootstrap/templates/field/field.html.twig’, Array) (Line: 384) Drupal\Core\Theme\ThemeManager->render(‘field’, Array) (Line: 437) Drupal\Core\Render\Renderer->doRender(Array) (Line: 450) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array) (Line: 490) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, ‘html’, NULL, 1) (Line: 111) __TwigTemplate_0cf7bf215c39faf5a00644ac5ce5353d0e73c36d98b0901542b2916c4bd4ff18->doDisplay(Array, Array) (Line: 432) Twig_Template->displayWithErrorHandling(Array, Array) (Line: 403) Twig_Template->display(Array) (Line: 411) Twig_Template->render(Array) (Line: 64) twig_render_template(‘themes/bootstrap/templates/node/node.html.twig’, Array) (Line: 384) Drupal\Core\Theme\ThemeManager->render(‘node’, Array) (Line: 437) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array, ) (Line: 226) Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 582) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 227) Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 117) Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90) Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, ‘kernel.view’, Object) (Line: 108) Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(‘kernel.view’, Object) (Line: 158) 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: 99) Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78) Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23) Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 657) Drupal\Core\DrupalKernel->handle(Object) (Line: 19) Notice: Undefined variable: key in Drupal\visual_editor\Plugin\VisualEditorComponent\ImageComponent->render() (line 73 of modules/visual_editor-8.x-2.1/modules/custom/visual_editor/src/Plugin/VisualEditorComponent/ImageComponent.php). Drupal\visual_editor\Plugin\VisualEditorComponent\ImageComponent->render(Array) (Line: 34) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->renderText(Object, Array) (Line: 36) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->renderText(Object, Array) (Line: 36) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->renderText(Object, Array) (Line: 22) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->process(Array, ‘en’) (Line: 112) Drupal\filter\Element\ProcessedText::preRenderText(Array) call_user_func(Array, Array) (Line: 378) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array) (Line: 490) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, ‘html’, NULL, 1) (Line: 91) __TwigTemplate_e74a4433eec1a3e06c95293ba9f9e8f3d38c6ce8971a0bcab1f50e49712fde3a->doDisplay(Array, Array) (Line: 432) Twig_Template->displayWithErrorHandling(Array, Array) (Line: 403) Twig_Template->display(Array) (Line: 411) Twig_Template->render(Array) (Line: 64) twig_render_template(‘themes/bootstrap/templates/field/field.html.twig’, Array) (Line: 384) Drupal\Core\Theme\ThemeManager->render(‘field’, Array) (Line: 437) Drupal\Core\Render\Renderer->doRender(Array) (Line: 450) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array) (Line: 490) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, ‘html’, NULL, 1) (Line: 111) __TwigTemplate_0cf7bf215c39faf5a00644ac5ce5353d0e73c36d98b0901542b2916c4bd4ff18->doDisplay(Array, Array) (Line: 432) Twig_Template->displayWithErrorHandling(Array, Array) (Line: 403) Twig_Template->display(Array) (Line: 411) Twig_Template->render(Array) (Line: 64) twig_render_template(‘themes/bootstrap/templates/node/node.html.twig’, Array) (Line: 384) Drupal\Core\Theme\ThemeManager->render(‘node’, Array) (Line: 437) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array, ) (Line: 226) Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 582) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 227) Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 117) Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90) Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, ‘kernel.view’, Object) (Line: 108) Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(‘kernel.view’, Object) (Line: 158) 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: 99) Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78) Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23) Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 657) Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Hi,
Edit ImageComponent.php file and in render function replace following line:
foreach ($files as $file) {
with
foreach ($files as $key => $file) {
I’ve done that but now see this error:
Notice: Undefined offset: 0 in Drupal\visual_editor\Plugin\VisualEditorComponent\ImageComponent->render() (line 72 of modules/visual_editor-8.x-2.1/modules/custom/visual_editor/src/Plugin/VisualEditorComponent/ImageComponent.php). Drupal\visual_editor\Plugin\VisualEditorComponent\ImageComponent->render(Array) (Line: 34) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->renderText(Object, Array) (Line: 36) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->renderText(Object, Array) (Line: 36) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->renderText(Object, Array) (Line: 22) Drupal\visual_editor\Plugin\Filter\VisualEditorFilter->process(Array, ‘en’) (Line: 112) Drupal\filter\Element\ProcessedText::preRenderText(Array) call_user_func(Array, Array) (Line: 378) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array) (Line: 490) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, ‘html’, NULL, 1) (Line: 91) __TwigTemplate_e74a4433eec1a3e06c95293ba9f9e8f3d38c6ce8971a0bcab1f50e49712fde3a->doDisplay(Array, Array) (Line: 432) Twig_Template->displayWithErrorHandling(Array, Array) (Line: 403) Twig_Template->display(Array) (Line: 411) Twig_Template->render(Array) (Line: 64) twig_render_template(‘themes/bootstrap/templates/field/field.html.twig’, Array) (Line: 384) Drupal\Core\Theme\ThemeManager->render(‘field’, Array) (Line: 437) Drupal\Core\Render\Renderer->doRender(Array) (Line: 450) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array) (Line: 490) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, ‘html’, NULL, 1) (Line: 111) __TwigTemplate_0cf7bf215c39faf5a00644ac5ce5353d0e73c36d98b0901542b2916c4bd4ff18->doDisplay(Array, Array) (Line: 432) Twig_Template->displayWithErrorHandling(Array, Array) (Line: 403) Twig_Template->display(Array) (Line: 411) Twig_Template->render(Array) (Line: 64) twig_render_template(‘themes/bootstrap/templates/node/node.html.twig’, Array) (Line: 384) Drupal\Core\Theme\ThemeManager->render(‘node’, Array) (Line: 437) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array, ) (Line: 226) Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 582) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 227) Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 117) Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90) Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, ‘kernel.view’, Object) (Line: 108) Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(‘kernel.view’, Object) (Line: 158) 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: 99) Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78) Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23) Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 657) Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
I replaced the line and now there is no error when I view the page which is good. However, when I add an image widget and the popup window “Select image” opens where I can either Upload image or List images. If I select List images, I see this error. Do you know how I can fix this?
Notice: Undefined index: default in Drupal\views\Plugin\views\PluginBase->setOptionDefaults() (line 184 of core/modules/views/src/Plugin/views/PluginBase.php). Drupal\views\Plugin\views\PluginBase->setOptionDefaults(Array, Array) (Line: 138) Drupal\views\Plugin\views\PluginBase->init(Object, Object, Array) (Line: 102) Drupal\views\Plugin\views\HandlerBase->init(Object, Object, Array) (Line: 118) Drupal\views\Plugin\views\field\FieldPluginBase->init(Object, Object, Array) (Line: 895) Drupal\views\Plugin\views\display\DisplayPluginBase->getHandlers(‘field’) (Line: 1040) Drupal\views\ViewExecutable->_initHandler(‘field’, Array) (Line: 898) Drupal\views\ViewExecutable->initHandlers() (Line: 2268) Drupal\views\Plugin\views\display\DisplayPluginBase->preExecute() (Line: 1689) Drupal\views\ViewExecutable->preExecute(Array) (Line: 1624) Drupal\views\ViewExecutable->executeDisplay(‘entity_browser_1’) (Line: 120) Drupal\entity_browser\Plugin\EntityBrowser\Widget\View->getForm(Array, Object, Array) (Line: 136) Drupal\entity_browser\Form\EntityBrowserForm->buildForm(Array, Object) call_user_func_array(Array, Array) (Line: 514) Drupal\Core\Form\FormBuilder->retrieveForm(‘entity_browser_files_form’, Object) (Line: 364) Drupal\Core\Form\FormBuilder->rebuildForm(‘entity_browser_files_form’, Object, Array) (Line: 621) Drupal\Core\Form\FormBuilder->processForm(‘entity_browser_files_form’, Array, Object) (Line: 314) Drupal\Core\Form\FormBuilder->buildForm(‘entity_browser_files_form’, Object) (Line: 74) 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}() call_user_func_array(Object, Array) (Line: 153) 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: 99) Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78) Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23) Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 657) Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
It may be a possible issue from drupal core.
Please try patch provided on the following path. If does not solves the issue, let me know.
https://www.drupal.org/node/2907760Yes, that patched worked. Thanks!
its not working, i use drupal 8.4 and php 7.1
Hi
Can you tell me the error you are getting?
Meanwhile I am checking the module on the mentioned configuration.
Hi,
Just finished testing Visual Editor on Drupal 8.4 and php 7.1 configuration and its working fine. Can you please check if there is any javascript error which may block executing script?
Hi, are you able to get it work? Please let me know if you need a help installing Visual editor.