Getting error when clicking on the abort button on clone page.
On the browser page it gives the following error:
The website encountered an unexpected error. Please try again later.

Instead it should redirect to that respective content.?

And

Processing logs are as follows:

Recoverable fatal error: Argument 1 passed to Drupal\Core\Form\FormState::setSubmitHandlers() must be of the type array, string given, called in /var/www/html/drupal8/core/lib/Drupal/Core/Form/FormBuilder.php on line 1093 and defined in Drupal\Core\Form\FormState->setSubmitHandlers() (line 739 of /var/www/html/drupal8/core/lib/Drupal/Core/Form/FormState.php).

Comments

AsadKamil created an issue. See original summary.

AsadKamil’s picture

Priority: Normal » Major
Issue summary: View changes
AsadKamil’s picture

Issue summary: View changes
alan-ps’s picture

Status: Active » Needs review
StatusFileSize
new422 bytes

Current patch fixes this issue.

Status: Needs review » Needs work

The last submitted patch, 4: entity_clone-abort_clone_causes_fatal_error-2769823-4.patch, failed testing.

The last submitted patch, 4: entity_clone-abort_clone_causes_fatal_error-2769823-4.patch, failed testing.

The last submitted patch, 4: entity_clone-abort_clone_causes_fatal_error-2769823-4.patch, failed testing.

The last submitted patch, 4: entity_clone-abort_clone_causes_fatal_error-2769823-4.patch, failed testing.

alan-ps’s picture

Status: Needs work » Needs review

I tested and current patch works well. There is a problem with the test cases. This is appropriate issue: https://www.drupal.org/node/2770151

I think we should retest current patch after 2770151 will be solved.

AsadKamil’s picture

Status: Needs review » Reviewed & tested by the community

Thanks for the Patch @alan-ps, patch working fine, now moving the issue to RTBC

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 4: entity_clone-abort_clone_causes_fatal_error-2769823-4.patch, failed testing.

donaldp’s picture

Issue #2908414 fixed this issue for me.

colan’s picture

Status: Needs work » Closed (duplicate)

Let's work over there then.

websiteworkspace’s picture

Still seeing this problem with the latest release:


Recoverable fatal error: Argument 1 passed to Drupal\Core\Form\FormState::setSubmitHandlers() must be of the type array, string given, called in {site}/core/lib/Drupal/Core/Form/FormBuilder.php on line 1096 and defined in Drupal\Core\Form\FormState->setSubmitHandlers() 
(line 742 of {site}/core/lib/Drupal/Core/Form/FormState.php) 
#0 {site}/core/includes/bootstrap.inc(566): _drupal_error_handler_real(4096, 'Argument 1 pass...', '{site}', 742, Array) 
#1 {site}/core/lib/Drupal/Core/Form/FormState.php(742): _drupal_error_handler(4096, 'Argument 1 pass...', '{site}', 742, Array) 
#2 {site}/core/lib/Drupal/Core/Form/FormBuilder.php(1096): Drupal\Core\Form\FormState->setSubmitHandlers('::cancelForm') 
#3 {site}/core/lib/Drupal/Core/Form/FormBuilder.php(557): Drupal\Core\Form\FormBuilder->doBuildForm('entity_clone_fo...', Array, Object(Drupal\Core\Form\FormState)) 
#4 {site}/core/lib/Drupal/Core/Form/FormBuilder.php(314): Drupal\Core\Form\FormBuilder->processForm('entity_clone_fo...', Array, Object(Drupal\Core\Form\FormState)) 
#5 {site}/core/lib/Drupal/Core/Controller/FormController.php(74): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\entity_clone\Form\EntityCloneForm), Object(Drupal\Core\Form\FormState))
#6 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch)) 
#7 {site}/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) 
#8 {site}/core/lib/Drupal/Core/Render/Renderer.php(574): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() 
#9 {site}/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) 
#10 {site}/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) 
#11 [internal function]: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() 
#12 {site}/vendor/symfony/http-kernel/HttpKernel.php(144): call_user_func_array(Object(Closure), Array) 
#13 {site}/vendor/symfony/http-kernel/HttpKernel.php(64): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) 
#14 {site}/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) 
#15 {site}/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) 
#16 {site}/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#17 {site}/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) 
#18 {site}/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) 
#19 {site}/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\ban\BanMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) 
#20 {site}/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) 
#21 {site}/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) 
#22 {site}/core/lib/Drupal/Core/DrupalKernel.php(656): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) 
#23 {site}/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) 
#24 {main}.