Hi
I got the below error message when adding quick tabs. Can anyone help me?
Thanks advance
Location http://localhost/demo/admin/structure/quicktabs/add?_wrapper_format=drup...
Referrer http://localhost/demo/admin/structure/quicktabs/add
Strict warning: call_user_func_array() expects parameter 1 to be a valid callback, non-static method Drupal\quicktabs\Plugin\TabType\BlockContent::blockTitleAjaxCallback() should not be called statically in Drupal\Core\Form\FormAjaxResponseBuilder->buildResponse() (line 69 of /var/www/html/demo/core/lib/Drupal/Core/Form/FormAjaxResponseBuilder.php) #0 /var/www/html/demo/core/includes/bootstrap.inc(566): _drupal_error_handler_real(2048, 'call_user_func_...', '/var/www/html/d...', 69, Array) #1 [internal function]: _drupal_error_handler(2048, 'call_user_func_...', '/var/www/html/d...', 69, Array) #2 /var/www/html/demo/core/lib/Drupal/Core/Form/FormAjaxResponseBuilder.php(69): call_user_func_array('Drupal\\quicktab...', Array) #3 /var/www/html/demo/core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php(98): Drupal\Core\Form\FormAjaxResponseBuilder->buildResponse(Object(Symfony\Component\HttpFoundation\Request), Array, Object(Drupal\Core\Form\FormState), Array) #4 /var/www/html/demo/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(108): Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber->onException(Object(Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent), 'kernel.exceptio...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #5 /var/www/html/demo/vendor/symfony/http-kernel/HttpKernel.php(230): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.exceptio...', Object(Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent)) #6 /var/www/html/demo/vendor/symfony/http-kernel/HttpKernel.php(79): Symfony\Component\HttpKernel\HttpKernel->handleException(Object(Drupal\Core\Form\FormAjaxException), Object(Symfony\Component\HttpFoundation\Request), 1) #7 /var/www/html/demo/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #8 /var/www/html/demo/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #9 /var/www/html/demo/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #10 /var/www/html/demo/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #11 /var/www/html/demo/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #12 /var/www/html/demo/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #13 /var/www/html/demo/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #14 /var/www/html/demo/core/lib/Drupal/Core/DrupalKernel.php(657): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #15 /var/www/html/demo/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #16 {main}.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 2917477-8.patch | 1.1 KB | jungle |
Comments
Comment #2
pvsureshmca commentedone more issue
Warning: call_user_func() expects parameter 1 to be a valid callback, function 'quicktabs_machine_name_exists' not found or invalid function name in Drupal\Core\Render\Element\MachineName::validateMachineName() (line 252 of /home/wheuser2/public_html/Nakkheeran/core/lib/Drupal/Core/Render/Element/MachineName.php) #0 /home/wheuser2/public_html/Nakkheeran/core/includes/bootstrap.inc(566): _drupal_error_handler_real(2, 'call_user_func(...', '/home/wheuser2/...', 252, Array) #1 [internal function]: _drupal_error_handler(2, 'call_user_func(...', '/home/wheuser2/...', 252, Array) #2 /home/wheuser2/public_html/Nakkheeran/core/lib/Drupal/Core/Render/Element/MachineName.php(252): call_user_func('quicktabs_machi...', 'duplicate_of_ta...', Array, Object(Drupal\Core\Form\FormState)) #3 [internal function]: Drupal\Core\Render\Element\MachineName::validateMachineName(Array, Object(Drupal\Core\Form\FormState), Array) #4 /home/wheuser2/public_html/Nakkheeran/core/lib/Drupal/Core/Form/FormValidator.php(281): call_user_func_array(Array, Array) #5 /home/wheuser2/public_html/Nakkheeran/core/lib/Drupal/Core/Form/FormValidator.php(239): Drupal\Core\Form\FormValidator->doValidateForm(Array, Object(Drupal\Core\Form\FormState)) #6 /home/wheuser2/public_html/Nakkheeran/core/lib/Drupal/Core/Form/FormValidator.php(119): Drupal\Core\Form\FormValidator->doValidateForm(Array, Object(Drupal\Core\Form\FormState), 'quicktabs_insta...') #7 /home/wheuser2/public_html/Nakkheeran/core/lib/Drupal/Core/Form/FormBuilder.php(571): Drupal\Core\Form\FormValidator->validateForm('quicktabs_insta...', Array, Object(Drupal\Core\Form\FormState)) #8 /home/wheuser2/public_html/Nakkheeran/core/lib/Drupal/Core/Form/FormBuilder.php(314): Drupal\Core\Form\FormBuilder->processForm('quicktabs_insta...', Array, Object(Drupal\Core\Form\FormState)) #9 /home/wheuser2/public_html/Nakkheeran/core/lib/Drupal/Core/Controller/FormController.php(74): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\quicktabs\Form\QuickTabsInstanceDuplicateForm), Object(Drupal\Core\Form\FormState)) #10 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch)) #11 /home/wheuser2/public_html/Nakkheeran/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #12 /home/wheuser2/public_html/Nakkheeran/core/lib/Drupal/Core/Render/Renderer.php(576): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #13 /home/wheuser2/public_html/Nakkheeran/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #14 /home/wheuser2/public_html/Nakkheeran/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #15 [internal function]: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #16 /home/wheuser2/public_html/Nakkheeran/vendor/symfony/http-kernel/HttpKernel.php(153): call_user_func_array(Object(Closure), Array) #17 /home/wheuser2/public_html/Nakkheeran/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #18 /home/wheuser2/public_html/Nakkheeran/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #19 /home/wheuser2/public_html/Nakkheeran/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #20 /home/wheuser2/public_html/Nakkheeran/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #21 /home/wheuser2/public_html/Nakkheeran/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #22 /home/wheuser2/public_html/Nakkheeran/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #23 /home/wheuser2/public_html/Nakkheeran/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #24 /home/wheuser2/public_html/Nakkheeran/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #25 /home/wheuser2/public_html/Nakkheeran/core/lib/Drupal/Core/DrupalKernel.php(657): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /home/wheuser2/public_html/Nakkheeran/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #27 {main}.
Comment #3
pvsureshmca commentedPHP version 5.6.31
Comment #4
vinod.honey commentedHi,
I am unable to see block in block layout for D8 Quick tabs and getting below error
Deprecated function: call_user_func_array() expects parameter 1 to be a valid callback, non-static method Drupal\quicktabs\Plugin\TabType\ViewContent::viewsDisplaysAjaxCallback() should not be called statically in Drupal\Core\Form\FormAjaxResponseBuilder->buildResponse() (line 69 of D:\xampp\htdocs\drupal853\core\lib\Drupal\Core\Form\FormAjaxResponseBuilder.php) #0 D:\xampp\htdocs\drupal853\core\includes\bootstrap.inc(582): _drupal_error_handler_real(8192, 'call_user_func_...', 'D:\\xampp\\htdocs...', 69, Array) #1 [internal function]: _drupal_error_handler(8192, 'call_user_func_...', 'D:\\xampp\\htdocs...', 69, Array) #2 D:\xampp\htdocs\drupal853\core\lib\Drupal\Core\Form\FormAjaxResponseBuilder.php(69): call_user_func_array('Drupal\\quicktab...', Array) #3 D:\xampp\htdocs\drupal853\core\lib\Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber.php(98): Drupal\Core\Form\FormAjaxResponseBuilder->buildResponse(Object(Symfony\Component\HttpFoundation\Request), Array, Object(Drupal\Core\Form\FormState), Array) #4 [internal function]: Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber->onException(Object(Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent), 'kernel.exceptio...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #5 D:\xampp\htdocs\drupal853\core\lib\Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent), 'kernel.exceptio...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #6 D:\xampp\htdocs\drupal853\vendor\symfony\http-kernel\HttpKernel.php(228): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.exceptio...', Object(Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent)) #7 D:\xampp\htdocs\drupal853\vendor\symfony\http-kernel\HttpKernel.php(79): Symfony\Component\HttpKernel\HttpKernel->handleException(Object(Drupal\Core\Form\FormAjaxException), Object(Symfony\Component\HttpFoundation\Request), 1) #8 D:\xampp\htdocs\drupal853\core\lib\Drupal\Core\StackMiddleware\Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #9 D:\xampp\htdocs\drupal853\core\lib\Drupal\Core\StackMiddleware\KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #10 D:\xampp\htdocs\drupal853\core\modules\page_cache\src\StackMiddleware\PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #11 D:\xampp\htdocs\drupal853\core\modules\page_cache\src\StackMiddleware\PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #12 D:\xampp\htdocs\drupal853\core\lib\Drupal\Core\StackMiddleware\ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #13 D:\xampp\htdocs\drupal853\core\lib\Drupal\Core\StackMiddleware\NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #14 D:\xampp\htdocs\drupal853\vendor\stack\builder\src\Stack\StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #15 D:\xampp\htdocs\drupal853\core\lib\Drupal\Core\DrupalKernel.php(664): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #16 D:\xampp\htdocs\drupal853\index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #17 {main}.
Any help on this.
Comment #5
scottsawyerYep, I am getting this error. Initially, the QT block doesn't appear in layout_builder, but after clearing the cache it shows up. Tons of log messages related to this.
Comment #6
shelaneI am not able to reproduce this issue. Please confirm if this is still an issue with the current version. Provide information on the version of Drupal you are using, PHP version, and any other details or screenshots that can be used to help reproduce this.
Comment #7
jungleStep to reproduce:
Comment #8
jungleThe fix is changing ::viewsDisplaysAjaxCallback() to static.
The tag quicktabs is unnecessary, removing.
Comment #9
shelaneComment #11
shelaneComment #13
joelpittetThe callback
quicktabs_machine_name_existserror in comment #2 was fixed here #3437354: all_user_func(): Argument #1 ($callback) must be a valid callback, function "quicktabs_machine_name_exists" not found or invalid function name in call_user_func() (