Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello, if I try to install this module ( 8.x-2.x-dev ) I see an HTTP 500 Error,
I attach the php error log:
[10-Nov-2017 16:37:32 Europe/Rome] PHP Fatal error: Call to undefined method Drupal\yoast_seo\SeoManager::getAvailableBundles() in /var/www/html/webdesign2017/modules/yoast_seo/yoast_seo.install on line 30
[10-Nov-2017 16:37:32 Europe/Rome] PHP Stack trace:
[10-Nov-2017 16:37:32 Europe/Rome] PHP 1. {main}() /var/www/html/webdesign2017/index.php:0
[10-Nov-2017 16:37:32 Europe/Rome] PHP 2. Drupal\Core\DrupalKernel->handle() /var/www/html/webdesign2017/index.php:19
[10-Nov-2017 16:37:32 Europe/Rome] PHP 3. Stack\StackedHttpKernel->handle() /var/www/html/webdesign2017/core/lib/Drupal/Core/DrupalKernel.php:657
[10-Nov-2017 16:37:32 Europe/Rome] PHP 4. Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() /var/www/html/webdesign2017/vendor/stack/builder/src/Stack/StackedHttpKernel.php:23
[10-Nov-2017 16:37:32 Europe/Rome] PHP 5. Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() /var/www/html/webdesign2017/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php:50
[10-Nov-2017 16:37:32 Europe/Rome] PHP 6. Drupal\page_cache\StackMiddleware\PageCache->handle() /var/www/html/webdesign2017/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php:47
[10-Nov-2017 16:37:32 Europe/Rome] PHP 7. Drupal\page_cache\StackMiddleware\PageCache->pass() /var/www/html/webdesign2017/core/modules/page_cache/src/StackMiddleware/PageCache.php:78
[10-Nov-2017 16:37:32 Europe/Rome] PHP 8. Drupal\Core\StackMiddleware\KernelPreHandle->handle() /var/www/html/webdesign2017/core/modules/page_cache/src/StackMiddleware/PageCache.php:99
[10-Nov-2017 16:37:32 Europe/Rome] PHP 9. Drupal\Core\StackMiddleware\Session->handle() /var/www/html/webdesign2017/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php:47
[10-Nov-2017 16:37:32 Europe/Rome] PHP 10. Symfony\Component\HttpKernel\HttpKernel->handle() /var/www/html/webdesign2017/core/lib/Drupal/Core/StackMiddleware/Session.php:57
[10-Nov-2017 16:37:32 Europe/Rome] PHP 11. Symfony\Component\HttpKernel\HttpKernel->handleRaw() /var/www/html/webdesign2017/vendor/symfony/http-kernel/HttpKernel.php:68
[10-Nov-2017 16:37:32 Europe/Rome] PHP 12. call_user_func_array:{/var/www/html/webdesign2017/vendor/symfony/http-kernel/HttpKernel.php:153}() /var/www/html/webdesign2017/vendor/symfony/http-kernel/HttpKernel.php:153
[10-Nov-2017 16:37:32 Europe/Rome] PHP 13. Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() /var/www/html/webdesign2017/vendor/symfony/http-kernel/HttpKernel.php:153
[10-Nov-2017 16:37:32 Europe/Rome] PHP 14. Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() /var/www/html/webdesign2017/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php:97
[10-Nov-2017 16:37:32 Europe/Rome] PHP 15. Drupal\Core\Render\Renderer->executeInRenderContext() /var/www/html/webdesign2017/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php:124
[10-Nov-2017 16:37:32 Europe/Rome] PHP 16. Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() /var/www/html/webdesign2017/core/lib/Drupal/Core/Render/Renderer.php:576
[10-Nov-2017 16:37:32 Europe/Rome] PHP 17. call_user_func_array:{/var/www/html/webdesign2017/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php:123}() /var/www/html/webdesign2017/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php:123
[10-Nov-2017 16:37:32 Europe/Rome] PHP 18. Drupal\Core\Controller\FormController->getContentResult() /var/www/html/webdesign2017/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php:123
[10-Nov-2017 16:37:32 Europe/Rome] PHP 19. Drupal\Core\Form\FormBuilder->buildForm() /var/www/html/webdesign2017/core/lib/Drupal/Core/Controller/FormController.php:74
[10-Nov-2017 16:37:32 Europe/Rome] PHP 20. Drupal\Core\Form\FormBuilder->processForm() /var/www/html/webdesign2017/core/lib/Drupal/Core/Form/FormBuilder.php:314
[10-Nov-2017 16:37:32 Europe/Rome] PHP 21. Drupal\Core\Form\FormSubmitter->doSubmitForm() /var/www/html/webdesign2017/core/lib/Drupal/Core/Form/FormBuilder.php:585
[10-Nov-2017 16:37:32 Europe/Rome] PHP 22. Drupal\Core\Form\FormSubmitter->executeSubmitHandlers() /var/www/html/webdesign2017/core/lib/Drupal/Core/Form/FormSubmitter.php:51
[10-Nov-2017 16:37:32 Europe/Rome] PHP 23. call_user_func_array:{/var/www/html/webdesign2017/core/lib/Drupal/Core/Form/FormSubmitter.php:111}() /var/www/html/webdesign2017/core/lib/Drupal/Core/Form/FormSubmitter.php:111
[10-Nov-2017 16:37:32 Europe/Rome] PHP 24. Drupal\system\Form\ModulesListForm->submitForm() /var/www/html/webdesign2017/core/lib/Drupal/Core/Form/FormSubmitter.php:111
[10-Nov-2017 16:37:32 Europe/Rome] PHP 25. Drupal\Core\ProxyClass\Extension\ModuleInstaller->install() /var/www/html/webdesign2017/core/modules/system/src/Form/ModulesListForm.php:448
[10-Nov-2017 16:37:32 Europe/Rome] PHP 26. Drupal\Core\Extension\ModuleInstaller->install() /var/www/html/webdesign2017/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php:83
[10-Nov-2017 16:37:32 Europe/Rome] PHP 27. Drupal\Core\Extension\ModuleHandler->invoke() /var/www/html/webdesign2017/core/lib/Drupal/Core/Extension/ModuleInstaller.php:291
[10-Nov-2017 16:37:32 Europe/Rome] PHP 28. call_user_func_array:{/var/www/html/webdesign2017/core/lib/Drupal/Core/Extension/ModuleHandler.php:391}() /var/www/html/webdesign2017/core/lib/Drupal/Core/Extension/ModuleHandler.php:391
[10-Nov-2017 16:37:32 Europe/Rome] PHP 29. yoast_seo_install() /var/www/html/webdesign2017/core/lib/Drupal/Core/Extension/ModuleHandler.php:391
[10-Nov-2017 16:37:32 Europe/Rome] PHP 30. _yoast_seo_attach_to_all_content_types() /var/www/html/webdesign2017/modules/yoast_seo/yoast_seo.install:15
Comments
Comment #3
KingdutchWhoops! It seems like some of the installation functions were left behind during the changes. It should work properly now.
Comment #4
SkinThanks Now I can Install the module, but in admin/config/yoast_seo if I try to select the bundles Real-time SEO will be enabled for I see a blank page with this error "The website encountered an unexpected error. Please try again later."
In the error log:
Recoverable fatal error: Argument 1 passed to Drupal\yoast_seo\SeoManager::getEntityBundles() must be of the type array, string given, called in /var/www/html/webdesign2017/modules/contrib/yoast_seo/src/Form/ConfigForm.php on line 109 and defined in Drupal\yoast_seo\SeoManager->getEntityBundles() (line 71 of /var/www/html/webdesign2017/modules/contrib/yoast_seo/src/SeoManager.php) #0 /var/www/html/webdesign2017/core/includes/bootstrap.inc(566): _drupal_error_handler_real(4096, 'Argument 1 pass...', '/var/www/html/w...', 71, Array) #1 /var/www/html/webdesign2017/modules/contrib/yoast_seo/src/SeoManager.php(71): _drupal_error_handler(4096, 'Argument 1 pass...', '/var/www/html/w...', 71, Array) #2 /var/www/html/webdesign2017/modules/contrib/yoast_seo/src/Form/ConfigForm.php(109): Drupal\yoast_seo\SeoManager->getEntityBundles('node') #3 [internal function]: Drupal\yoast_seo\Form\ConfigForm->submitForm(Array, Object(Drupal\Core\Form\FormState)) #4 /var/www/html/webdesign2017/core/lib/Drupal/Core/Form/FormSubmitter.php(111): call_user_func_array(Array, Array) #5 /var/www/html/webdesign2017/core/lib/Drupal/Core/Form/FormSubmitter.php(51): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\Core\Form\FormState)) #6 /var/www/html/webdesign2017/core/lib/Drupal/Core/Form/FormBuilder.php(585): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState)) #7 /var/www/html/webdesign2017/core/lib/Drupal/Core/Form/FormBuilder.php(314): Drupal\Core\Form\FormBuilder->processForm('yoast_seo_confi...', Array, Object(Drupal\Core\Form\FormState)) #8 /var/www/html/webdesign2017/core/lib/Drupal/Core/Form/FormBuilder.php(212): Drupal\Core\Form\FormBuilder->buildForm('Drupal\\yoast_se...', Object(Drupal\Core\Form\FormState)) #9 /var/www/html/webdesign2017/modules/contrib/yoast_seo/src/Controller/SettingsController.php(29): Drupal\Core\Form\FormBuilder->getForm('Drupal\\yoast_se...') #10 [internal function]: Drupal\yoast_seo\Controller\SettingsController->index() #11 /var/www/html/webdesign2017/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #12 /var/www/html/webdesign2017/core/lib/Drupal/Core/Render/Renderer.php(576): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #13 /var/www/html/webdesign2017/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #14 /var/www/html/webdesign2017/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 /var/www/html/webdesign2017/vendor/symfony/http-kernel/HttpKernel.php(153): call_user_func_array(Object(Closure), Array) #17 /var/www/html/webdesign2017/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #18 /var/www/html/webdesign2017/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #19 /var/www/html/webdesign2017/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #20 /var/www/html/webdesign2017/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #21 /var/www/html/webdesign2017/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #22 /var/www/html/webdesign2017/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #23 /var/www/html/webdesign2017/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #24 /var/www/html/webdesign2017/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #25 /var/www/html/webdesign2017/core/lib/Drupal/Core/DrupalKernel.php(657): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /var/www/html/webdesign2017/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #27 {main}.
May be is better if I open a different issue?
Comment #6
KingdutchWhelp, that's embarrassing, looks like I missed a few methods when I changed how data was moved around through the various classes and didn't catch it in testing.
I've pushed some changes that should ensure that it works now. I'll create a follow-up issue to create some unittests for these parts.
Thanks for testing!
Comment #7
SkinHello, thanks to you, this module is becoming every day better.
I tried the latest dev version, but I still have various errors if I go in admin/config/yoast_seo and i try so select a bundle.
Comment #8
KingdutchWith the latest version I'm able to change the bundles that are selected for nodes without any errors.
If the errors are not related to what we discussed above, could you open a new issue with the error message(s) that you receive so I can try and fix them?
Comment #9
SkinOk, the http 500 error is fixed.
Tomorrow I`ll try to install and play with the latest dev release, if I`ll find something I`ll open a new issue, thanks.