- Issue created by @jimmynash
- πͺπΈSpain candelas
Hi @jimmynash,
I have just realize on this problem with Webform.
Could you please tell to me which patches have I to apply to solve it?My error:
Object { message: "\nAn AJAX HTTP error occurred.\nHTTP Result Code: 500\nDebugging information follows.\nPath: /admin/structure/webform/manage/questionari_conxeiments_tic/element/add?parent=flexbox\nStatusText: error\nResponseText: The website encountered an unexpected error. Try again later.TypeError: substr(): Argument #1 ($string) must be of type string, int given in substr() (line 44 of modules/contrib/media_contextual_crop_iwc_adapter/media_contextual_crop_iwc_adapter.module). media_contextual_crop_iwc_adapter_form_alter() (Line: 552)\nDrupal\\Core\\Extension\\ModuleHandler->alter() (Line: 839)\nDrupal\\Core\\Form\\FormBuilder->prepareForm() (Line: 285)\nDrupal\\Core\\Form\\FormBuilder->buildForm() (Line: 73)\nDrupal\\Core\\Controller\\FormController->getContentResult()\ncall_user_func_array() (Line: 123)\nDrupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->Drupal\\Core\\EventSubscriber\\{closure}() (Line: 638)\nDrupal\\Core\\Render\\Renderer->executeInRenderContext() (Line: 124)\nDrupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)\nDrupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->Drupal\\Core\\EventSubscriber\\{closure}() (Line: 181)\nSymfony\\Component\\HttpKernel\\HttpKernel->handleRaw() (Line: 76)\nSymfony\\Component\\HttpKernel\\HttpKernel->handle() (Line: 53)\nDrupal\\Core\\StackMiddleware\\Session->handle() (Line: 48)\nDrupal\\Core\\StackMiddleware\\KernelPreHandle->handle() (Line: 28)\nDrupal\\Core\\StackMiddleware\\ContentLength->handle() (Line: 116)\nDrupal\\page_cache\\StackMiddleware\\PageCache->pass() (Line: 90)\nDrupal\\page_cache\\StackMiddleware\\PageCache->handle() (Line: 50)\nDrupal\\ban\\BanMiddleware->handle() (Line: 48)\nDrupal\\Core\\StackMiddleware\\ReverseProxyMiddleware->handle() (Line: 51)\nDrupal\\Core\\StackMiddleware\\NegotiationMiddleware->handle() (Line: 36)\nDrupal\\Core\\StackMiddleware\\AjaxPageState->handle() (Line: 51)\nDrupal\\Core\\StackMiddleware\\StackedHttpKernel->handle() (Line: 741)\nDrupal\\Core\\DrupalKernel->handle() (Line: 19)\n", name: "AjaxError", stack: "@https://test.net/core/misc/ajax.js?v=10.4.3:196:32\n@https://test.net/core/misc/ajax.js?v=10.4.3:1935:3\n" } β message: "\nAn AJAX HTTP error occurred.\nHTTP Result Code: 500\nDebugging information follows.\nPath: /admin/structure/webform/manage/questionari_conxeiments_tic/element/add?parent=flexbox\nStatusText: error\nResponseText: The website encountered an unexpected error. Try again later.TypeError: substr(): Argument #1 ($string) must be of type string, int given in substr() (line 44 of modules/contrib/media_contextual_crop_iwc_adapter/media_contextual_crop_iwc_adapter.module). media_contextual_crop_iwc_adapter_form_alter() (Line: 552)\nDrupal\\Core\\Extension\\ModuleHandler->alter() (Line: 839)\nDrupal\\Core\\Form\\FormBuilder->prepareForm() (Line: 285)\nDrupal\\Core\\Form\\FormBuilder->buildForm() (Line: 73)\nDrupal\\Core\\Controller\\FormController->getContentResult()\ncall_user_func_array() (Line: 123)\nDrupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->Drupal\\Core\\EventSubscriber\\{closure}() (Line: 638)\nDrupal\\Core\\Render\\Renderer->executeInRenderContext() (Line: 124)\nDrupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)\nDrupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->Drupal\\Core\\EventSubscriber\\{closure}() (Line: 181)\nSymfony\\Component\\HttpKernel\\HttpKernel->handleRaw() (Line: 76)\nSymfony\\Component\\HttpKernel\\HttpKernel->handle() (Line: 53)\nDrupal\\Core\\StackMiddleware\\Session->handle() (Line: 48)\nDrupal\\Core\\StackMiddleware\\KernelPreHandle->handle() (Line: 28)\nDrupal\\Core\\StackMiddleware\\ContentLength->handle() (Line: 116)\nDrupal\\page_cache\\StackMiddleware\\PageCache->pass() (Line: 90)\nDrupal\\page_cache\\StackMiddleware\\PageCache->handle() (Line: 50)\nDrupal\\ban\\BanMiddleware->handle() (Line: 48)\nDrupal\\Core\\StackMiddleware\\ReverseProxyMiddleware->handle() (Line: 51)\nDrupal\\Core\\StackMiddleware\\NegotiationMiddleware->handle() (Line: 36)\nDrupal\\Core\\StackMiddleware\\AjaxPageState->handle() (Line: 51)\nDrupal\\Core\\StackMiddleware\\StackedHttpKernel->handle() (Line: 741)\nDrupal\\Core\\DrupalKernel->handle() (Line: 19)\n" β name: "AjaxError" β stack: "@https://test.net/core/misc/ajax.js?v=10.4.3:196:32\n@https://test.net/core/misc/ajax.js?v=10.4.3:1935:3\n"
Thanks
- πͺπΈSpain candelas
I am already using "drupal/media_contextual_crop_iwc_adapter": "2.0.x-dev@dev"
- πͺπΈSpain candelas
I had a previous version and with
composer require 'drupal/media_contextual_crop_iwc_adapter:2.0.x-dev@dev'
I solved.
But yes, it would be nice to have a new release.
Thanks a lot :)