If I klick on "bulk generate" I get following fatal error:
The website encountered an unexpected error. Please try again later.
Recoverable fatal error: Argument 7 passed to Drupal\pathauto\Plugin\pathauto\AliasType\EntityAliasTypeBase::__construct() must be an instance of Drupal\Core\Database\Connection, none given, called in /medjxcwh/drupal.mediaweb.at/modules/pathauto/src/Plugin/pathauto/AliasType/ForumAliasType.php on line 53 and defined in Drupal\pathauto\Plugin\pathauto\AliasType\EntityAliasTypeBase->__construct() (line 80 of modules/pathauto/src/Plugin/pathauto/AliasType/EntityAliasTypeBase.php).
Drupal\pathauto\Plugin\pathauto\AliasType\EntityAliasTypeBase->__construct(Array, 'forum', Array, Object, Object, Object) (Line: 53)
.......
This on two different installation.
At the first installation I got this error message also when I submitted a new blog entry with blog-module and when i tried to remove pattern (/admin/config/search/path/patterns). After reinstalling module this worked again, but not "bulk generate" ...
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | pathauto-forum-2845694.diff | 5.47 KB | lpsolit |
Comments
Comment #2
lpsolit commentedBug confirmed. My fault! :(
Here is a patch which fixes the issue. I will update my patch later with a test to make sure we don't regress forums again.
Comment #3
lpsolit commentedNow with a test. There is no need to create a forum ourselves. This is automatically done when installing the "Forum" module.
Comment #5
berdirYeah, forum again.. thanks for the test, hopefully we won't regress as badly as this anymore in the future thanks to that.
Comment #6
markagregory commentedI have the same issue but using cpanel so cannot apply diff file - no command line access. Please release new dev version asap or please email me the new files so that I can copy the module in to my modules/pathauto folder
Comment #7
lpsolit commentedA new dev release is already available, see the "Development releases" section at the very bottom of the https://www.drupal.org/project/pathauto page. The only file which you need to update/upload is src/Plugin/pathauto/AliasType/ForumAliasType.php. Other changes are only about tests, so you don't need them.
Comment #8
markagregory commentedthank you for your response, it is appreciated.
Comment #9
markagregory commentedI applied the files and still get the same error.
Recoverable fatal error: Argument 7 passed to Drupal\pathauto\Plugin\pathauto\AliasType\EntityAliasTypeBase::__construct() must be an instance of Drupal\Core\Database\Connection, none given, called in /home/gtgt1226/public_html/modules/pathauto/src/Plugin/pathauto/AliasType/ForumAliasType.php on line 53 and defined in Drupal\pathauto\Plugin\pathauto\AliasType\EntityAliasTypeBase->__construct() (line 80 of /home/gtgt1226/public_html/modules/pathauto/src/Plugin/pathauto/AliasType/EntityAliasTypeBase.php) #0 /home/gtgt1226/public_html/core/includes/bootstrap.inc(548): _drupal_error_handler_real(4096, 'Argument 7 pass...', '/home/gtgt1226/...', 80, Array) #1 /home/gtgt1226/public_html/modules/pathauto/src/Plugin/pathauto/AliasType/EntityAliasTypeBase.php(80): _drupal_error_handler(4096, 'Argument 7 pass...', '/home/gtgt1226/...', 80, Array) #2 /home/gtgt1226/public_html/modules/pathauto/src/Plugin/pathauto/AliasType/ForumAliasType.php(53): Drupal\pathauto\Plugin\pathauto\AliasType\EntityAliasTypeBase->__construct(Array, 'forum', Array, Object(Drupal\Core\Extension\ModuleHandler), Object(Drupal\Core\Language\LanguageManager), Object(Drupal\Core\Entity\EntityTypeManager)) #3 /home/gtgt1226/public_html/modules/pathauto/src/Plugin/pathauto/AliasType/ForumAliasType.php(69): Drupal\pathauto\Plugin\pathauto\AliasType\ForumAliasType->__construct(Array, 'forum', Array, Object(Drupal\Core\Extension\ModuleHandler), Object(Drupal\Core\Language\LanguageManager), Object(Drupal\Core\Entity\EntityTypeManager), Object(Drupal\Core\Config\ConfigFactory)) #4 /home/gtgt1226/public_html/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php(21): Drupal\pathauto\Plugin\pathauto\AliasType\ForumAliasType::create(Object(Drupal\Core\DependencyInjection\Container), Array, 'forum', Array) #5 /home/gtgt1226/public_html/core/lib/Drupal/Component/Plugin/PluginManagerBase.php(76): Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('forum', Array) #6 /home/gtgt1226/public_html/modules/pathauto/src/Form/PathautoBulkUpdateForm.php(70): Drupal\Component\Plugin\PluginManagerBase->createInstance('forum') #7 [internal function]: Drupal\pathauto\Form\PathautoBulkUpdateForm->buildForm(Array, Object(Drupal\Core\Form\FormState)) #8 /home/gtgt1226/public_html/core/lib/Drupal/Core/Form/FormBuilder.php(514): call_user_func_array(Array, Array) #9 /home/gtgt1226/public_html/core/lib/Drupal/Core/Form/FormBuilder.php(271): Drupal\Core\Form\FormBuilder->retrieveForm('pathauto_bulk_u...', Object(Drupal\Core\Form\FormState)) #10 /home/gtgt1226/public_html/core/lib/Drupal/Core/Controller/FormController.php(74): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\pathauto\Form\PathautoBulkUpdateForm), Object(Drupal\Core\Form\FormState)) #11 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch)) #12 /home/gtgt1226/public_html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #13 /home/gtgt1226/public_html/core/lib/Drupal/Core/Render/Renderer.php(574): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #14 /home/gtgt1226/public_html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #15 /home/gtgt1226/public_html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #16 [internal function]: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #17 /home/gtgt1226/public_html/vendor/symfony/http-kernel/HttpKernel.php(139): call_user_func_array(Object(Closure), Array) #18 /home/gtgt1226/public_html/vendor/symfony/http-kernel/HttpKernel.php(62): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #19 /home/gtgt1226/public_html/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #20 /home/gtgt1226/public_html/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #21 /home/gtgt1226/public_html/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #22 /home/gtgt1226/public_html/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #23 /home/gtgt1226/public_html/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #24 /home/gtgt1226/public_html/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #25 /home/gtgt1226/public_html/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /home/gtgt1226/public_html/core/lib/Drupal/Core/DrupalKernel.php(652): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #27 /home/gtgt1226/public_html/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #28 {main}.
Comment #10
markagregory commentedI still get the same problem with the new code installed in Drupal 8.2.5. I've posted the error message. Please help fix.