πŸ‡ͺπŸ‡ΈSpain @qpro

Spain
Account created on 22 September 2008, almost 16 years ago
#

Recent comments

πŸ‡ͺπŸ‡ΈSpain qpro Spain

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/)

πŸ‡ͺπŸ‡ΈSpain qpro Spain

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)

πŸ‡ͺπŸ‡ΈSpain qpro Spain

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

πŸ‡ͺπŸ‡ΈSpain qpro Spain

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.

πŸ‡ͺπŸ‡ΈSpain qpro Spain

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}

πŸ‡ͺπŸ‡ΈSpain qpro Spain

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)

πŸ‡ͺπŸ‡ΈSpain qpro Spain

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

Production build 0.69.0 2024