Tested in 3.1.35, (Drupal 10.4.1) same error:
ArgumentCountError: Too few arguments to function Drupal\permissions_by_term\Service\AccessStorage::__construct(), 7 passed in /var/www/.../web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 261 and at least 8 expected in /var/www/.../web/modules/contrib/permissions_by_term/src/Service/AccessStorage.php on line 34 #0 /var/www/.../web/core/lib/Drupal/Component/DependencyInjection/Container.php(261): Drupal\permissions_by_term\Service\AccessStorage->__construct()
#1 /var/www/.../web/core/lib/Drupal/Component/DependencyInjection/Container.php(179): Drupal\Component\DependencyInjection\Container->createService()
#2 /var/www/.../web/core/lib/Drupal/Component/DependencyInjection/Container.php(438): Drupal\Component\DependencyInjection\Container->get()
#3 /var/www/.../web/core/lib/Drupal/Component/DependencyInjection/Container.php(239): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters()
#4 /var/www/.../web/core/lib/Drupal/Component/DependencyInjection/Container.php(179): Drupal\Component\DependencyInjection\Container->createService()
#5 /var/www/.../vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(289): Drupal\Component\DependencyInjection\Container->get()
#6 /var/www/.../vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(253): Drush\Runtime\LegacyServiceInstantiator->resolveFromContainer()
#7 [internal function]: Drush\Runtime\LegacyServiceInstantiator->resolveArgument()
#8 /var/www/.../vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(223): array_map()
#9 /var/www/.../vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(193): Drush\Runtime\LegacyServiceInstantiator->resolveArguments()
#10 /var/www/.../vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(167): Drush\Runtime\LegacyServiceInstantiator->instantiateObject()
#11 /var/www/.../vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(117): Drush\Runtime\LegacyServiceInstantiator->create()
#12 /var/www/.../vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(54): Drush\Runtime\LegacyServiceInstantiator->instantiateServices()
#13 /var/www/.../vendor/drush/drush/src/Boot/DrupalBoot8.php(242): Drush\Runtime\LegacyServiceInstantiator->loadServiceFiles()
#14 /var/www/.../vendor/drush/drush/src/Boot/DrupalBoot8.php(218): Drush\Boot\DrupalBoot8->addDrupalModuleDrushCommands()
#15 /var/www/.../vendor/drush/drush/src/Boot/BootstrapManager.php(211): Drush\Boot\DrupalBoot8->bootstrapDrupalFull()
#16 /var/www/.../vendor/drush/drush/src/Boot/BootstrapManager.php(397): Drush\Boot\BootstrapManager->doBootstrap()
#17 /var/www/.../vendor/drush/drush/src/Application.php(219): Drush\Boot\BootstrapManager->bootstrapMax()
#18 /var/www/.../vendor/drush/drush/src/Application.php(185): Drush\Application->bootstrapAndFind()
#19 /var/www/.../vendor/symfony/console/Application.php(266): Drush\Application->find()
#20 /var/www/.../vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
#21 /var/www/.../vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run()
#22 /var/www/.../vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun()
#23 /var/www/.../vendor/drush/drush/drush.php(140): Drush\Runtime\Runtime->run()
#24 /var/www/.../vendor/bin/drush.php(117): include('...')
#25 {main}
ArgumentCountError: Too few arguments to function Drupal\permissions_by_term\Service\AccessStorage::__construct(), 7 passed in /var/www/.../web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 261 and at least 8 expected in Drupal\permissions_by_term\Service\AccessStorage->__construct() (line 34 of /var/www/.../web/modules/contrib/permissions_by_term/src/Service/AccessStorage.php).
Solved with composer require "drupal/permissions_by_term:3.1.33" but this time it was not necessary run "composer dump-autoload -o"
Solved:
1) First i did a module downgrade changing composer.json to require "drupal/permissions_by_term": "3.1.33"
(and previous error disappear)
2) The to solve WSOD caused by:
"FastCGI sent in stderr: "PHP message: Uncaught PHP Exception Error: "Class "Doctrine\Deprecations\Deprecation" not found" at /.../vendor/doctrine/lexer/src/Token.php line 104" while reading response header from upstream, client: 87.125.252.246, server: ..., request: "GET /user/login HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php8.3-fpm.sock:", host: "..."
Run "composer dump-autoload -o"
Note: Error seems not to be directly related to permissions_by_term but this https://www.drupal.org/project/drupal/issues/3492523#comment-15892853 π Class "Doctrine\Deprecations\Deprecation" not found Active
Same error in Drupal v11 after:
composer update "drupal/*" --with-all-dependencies (permissions_by_term went from 3.1.33 to 3.1.35)
vendor/bin/drush updatedb
vendor/bin/drush cache:rebuild
And then
ArgumentCountError: Too few arguments to function Drupal\permissions_by_term\Service\AccessStorage::__construct(), 7 passed in /.../web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 261 and at least 8 expected in /.../web/modules/contrib/permissions_by_term/src/Service/AccessStorage.php on line 34 #0 /.../web/core/lib/Drupal/Component/DependencyInjection/Container.php(261): Drupal\permissions_by_term\Service\AccessStorage->__construct()
#1 /.../web/core/lib/Drupal/Component/DependencyInjection/Container.php(179): Drupal\Component\DependencyInjection\Container->createService()
#2 /.../web/core/lib/Drupal/Component/DependencyInjection/Container.php(438): Drupal\Component\DependencyInjection\Container->get()
#3 /.../web/core/lib/Drupal/Component/DependencyInjection/Container.php(239): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters()
#4 /.../web/core/lib/Drupal/Component/DependencyInjection/Container.php(179): Drupal\Component\DependencyInjection\Container->createService()
#5 /.../vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(289): Drupal\Component\DependencyInjection\Container->get()
#6 /.../vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(253): Drush\Runtime\LegacyServiceInstantiator->resolveFromContainer()
#7 [internal function]: Drush\Runtime\LegacyServiceInstantiator->resolveArgument()
#8 /.../vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(223): array_map()
#9 /.../vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(193): Drush\Runtime\LegacyServiceInstantiator->resolveArguments()
#10 /.../vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(167): Drush\Runtime\LegacyServiceInstantiator->instantiateObject()
#11 /.../vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(117): Drush\Runtime\LegacyServiceInstantiator->create()
#12 /.../vendor/drush/drush/src/Runtime/LegacyServiceInstantiator.php(54): Drush\Runtime\LegacyServiceInstantiator->instantiateServices()
#13 /.../vendor/drush/drush/src/Boot/DrupalBoot8.php(242): Drush\Runtime\LegacyServiceInstantiator->loadServiceFiles()
#14 /.../vendor/drush/drush/src/Boot/DrupalBoot8.php(218): Drush\Boot\DrupalBoot8->addDrupalModuleDrushCommands()
#15 /.../vendor/drush/drush/src/Boot/BootstrapManager.php(211): Drush\Boot\DrupalBoot8->bootstrapDrupalFull()
#16 /.../vendor/drush/drush/src/Boot/BootstrapManager.php(397): Drush\Boot\BootstrapManager->doBootstrap()
#17 /.../vendor/drush/drush/src/Application.php(219): Drush\Boot\BootstrapManager->bootstrapMax()
#18 /.../vendor/drush/drush/src/Application.php(185): Drush\Application->bootstrapAndFind()
#19 /.../vendor/symfony/console/Application.php(266): Drush\Application->find()
#20 /.../vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
#21 /.../vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run()
#22 /.../vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun()
#23 /.../vendor/drush/drush/drush.php(140): Drush\Runtime\Runtime->run()
#24 /.../vendor/bin/drush.php(117): include('...')
#25 {main}
ArgumentCountError: Too few arguments to function Drupal\permissions_by_term\Service\AccessStorage::__construct(), 7 passed in /.../web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 261 and at least 8 expected in Drupal\permissions_by_term\Service\AccessStorage->__construct() (line 34 of /.../web/modules/contrib/permissions_by_term/src/Service/AccessStorage.php).
#18 π Not applying to oEmbed videos Needs work works for me, thanks, it save my day, although it's a workaround that could lead to some problems, for example when changing beetween environments with diferent domain ( dev.example.com/beta.example.com/example.com)
qpro β created an issue.
Tested
#72
π
Call to a member function isTranslatable() on null in SqlContentEntityStorage
Needs work
in Drupal 10.2.6 and 8.1.27,
it works but I had to set patchLevel to -p1 in composer.json , usually is -p2 for core patches.
It could be better to change lines, .../core/lib/... instead .../lib/...
(explanation patch level here: https://architecture.lullabot.com/adr/20220119-composer-patches/)
Same issue as #10 and #12
Apart from error
"Deprecated function: strtr(): Passing null to parameter #1 ($string) of type string is deprecated in locale_translation_build_server_pattern() (line 323 of core/modules/locale/locale.translation.inc)"
also this one
"TypeError: Drupal\locale\Form\LocaleSettingsForm::Drupal\locale\Form\{closure}(): Argument #1 ($overwrite_customized) must be of type bool, null given, called in /var/www/html/comg/web/core/lib/Drupal/Core/Form/ConfigTarget.php on line 187 in Drupal\locale\Form\LocaleSettingsForm->Drupal\locale\Form\{closure}() (line 82 of core/modules/locale/src/Form/LocaleSettingsForm.php)."
Based on #10 & #12, I fixed with:
drush cim --partial --source=/var/www/html/site/<custom directory>
with locale.settings.yml inside (without --partial option you could delete the rest of configurations)
(Drupal 10.2.5 & PHP 8.1.2)
I had this issue too but finally find the problem:
TLTR:
Solved adding "client_max_body_size 10M;" in "/etc/nginx/nginx.conf" to increase size limit.
https://www.cyberciti.biz/faq/linux-unix-bsd-nginx-413-request-entity-too-large/
Long versiΓ³n:
The issue was that when accessing the webform from a mobile device, I could upload a photo from the gallery, but I couldn't upload a photo directly taken with the camera (message "File upload inprogress. Uploaded file may be lost.")
Checking the size of a very similar photo in the Android gallery (photos taken directly with the camera don't get saved in the gallery when there's an error), it occupied 1.5 MB, which is below the 2 MB limit of the website.
Using Chrome's development tools with USB debugging on the mobile device enabled, I encountered the error "413 Payload Too Large." , and in the NGINX logs, there was "client intended to send too large body: 2984188 bytes," which was indeed above the PHP limit.
It seems that the image is optimized when saved on the mobile device but not when sent directly. So, I increased the limit to 10 MB, but the error still persisted.
This article provided me with the hint to make changes in NGINX and also include a larger margin for BASE64 encoding.
https://drupal.stackexchange.com/questions/80809/413-file-entity-too-large-ugly-error
In case it helps someone, this is the module that can cover this functionality while this issue is unsolved https://www.drupal.org/project/entitygroupfield β . Since yesterday a new release, compatible with Groups v2 and v3, is availiable.
Reviewed, get this error:
TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in array_keys() (line 37 of /var/www/pxsm/web/modules/contrib/content_to_group/content_to_group.module)
#0 /var/www/pxsm/web/modules/contrib/content_to_group/content_to_group.module(37): array_keys()
#1 [internal function]: content_to_group_node_insert()
#2 /var/www/pxsm/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(426): call_user_func_array()
#3 /var/www/pxsm/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(405): Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}()
#4 /var/www/pxsm/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(433): Drupal\Core\Extension\ModuleHandler->invokeAllWith()
#5 /var/www/pxsm/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(249): Drupal\Core\Extension\ModuleHandler->invokeAll()
#6 /var/www/pxsm/web/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(900): Drupal\Core\Entity\EntityStorageBase->invokeHook()
#7 /var/www/pxsm/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(598): Drupal\Core\Entity\ContentEntityStorageBase->invokeHook()
#8 /var/www/pxsm/web/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(781): Drupal\Core\Entity\EntityStorageBase->doPostSave()
#9 /var/www/pxsm/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(523): Drupal\Core\Entity\ContentEntityStorageBase->doPostSave()
#10 /var/www/pxsm/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(804): Drupal\Core\Entity\EntityStorageBase->save()
#11 /var/www/pxsm/web/core/lib/Drupal/Core/Entity/EntityBase.php(339): Drupal\Core\Entity\Sql\SqlContentEntityStorage->save()
#12 /var/www/pxsm/web/core/modules/node/src/NodeForm.php(270): Drupal\Core\Entity\EntityBase->save()
#13 [internal function]: Drupal\node\NodeForm->save()
#14 /var/www/pxsm/web/core/lib/Drupal/Core/Form/FormSubmitter.php(114): call_user_func_array()
#15 /var/www/pxsm/web/core/lib/Drupal/Core/Form/FormSubmitter.php(52): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers()
#16 /var/www/pxsm/web/core/lib/Drupal/Core/Form/FormBuilder.php(597): Drupal\Core\Form\FormSubmitter->doSubmitForm()
#17 /var/www/pxsm/web/core/lib/Drupal/Core/Form/FormBuilder.php(325): Drupal\Core\Form\FormBuilder->processForm()
#18 /var/www/pxsm/web/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm()
#19 /var/www/pxsm/web/core/modules/layout_builder/src/Controller/LayoutBuilderHtmlEntityFormController.php(39): Drupal\Core\Controller\FormController->getContentResult()
#20 [internal function]: Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController->getContentResult()
#21 /var/www/pxsm/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#22 /var/www/pxsm/web/core/lib/Drupal/Core/Render/Renderer.php(580): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#23 /var/www/pxsm/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext()
#24 /var/www/pxsm/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#25 /var/www/pxsm/vendor/symfony/http-kernel/HttpKernel.php(169): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#26 /var/www/pxsm/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#27 /var/www/pxsm/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#28 /var/www/pxsm/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#29 /var/www/pxsm/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#30 /var/www/pxsm/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#31 /var/www/pxsm/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#32 /var/www/pxsm/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#33 /var/www/pxsm/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#34 /var/www/pxsm/web/core/lib/Drupal/Core/DrupalKernel.php(718): Stack\StackedHttpKernel->handle()
#35 /var/www/pxsm/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#36 {main}
I have tested it with diferent elements (fields, sections, etc..) on webforms. In my case the problem is only with "name" field, no with sections.
To recreate it:
1) create a webform with a "name" element, select checkboxes for "name" and "surname" and save it
2) go to Webform Content Create menu, and add a configuration where the name field in webform maps to title in content
3) fill the webform and send it, then check /admin/reports/dblog
Test in:
webform: 6.2.0-beta5
webform content creator: 4.0.4 (neither alpha version nor patches this time)
In case it helps someone, this is the module that can cover this functionality while this issue is unsolved https://www.drupal.org/project/views_aggregator β
Thanks for the patch.
Before apply the patch a I got the same error, but now I get this one:
SQLSTATE[23502]: Not null violation: 7 ERROR: null value in column "title" of relation "node_field_data" violates not-null constraint DETAIL: Failing row contains (1048, 1960, platform_user, gl, 1, 1, null, 1678677378, 1678677378, 0, 0, 1, 1).: INSERT INTO "node_field_data" ("nid", "vid", "type", "langcode", "status", "uid", "title", "created", "changed", "promote", "sticky", "default_langcode", "revision_translation_affected") VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9, :db_insert_placeholder_10, :db_insert_placeholder_11, :db_insert_placeholder_12); Array ( )
Tested in:
- Drupal 9.5.4
- PHP 8.1.11
- PostgreSQL 14.7)
- Webform 6.2.0-beta5
- Webform Content Creator 3.0.0-alpha2