πŸ‡ΊπŸ‡ΈUnited States @kwiechmann

Account created on 11 January 2011, almost 14 years ago
#

Recent comments

πŸ‡ΊπŸ‡ΈUnited States kwiechmann

@mkalkbrenner Thank you for responding.

search_api_solr_legacy: Enabled @ 4.3.0

Connector Workarounds > Solr version override: Determine automatically

πŸ‡ΊπŸ‡ΈUnited States kwiechmann

After upgrading to search_api 1.30 and search_api_solr 4.3, search_api_solr had four new hook updates that were not applied:

  • 8418 - Replace WhitespaceTokenizer with StandardTokenizer.
  • 8419 - Adds missing solr.FlattenGraphFilterFactory to index analyzers.
  • 8420 - Add Solr 9 configs, don't build suggesters on commit, add offsets for unified highlighter.
  • 8421 - Install new Korean configs.

Once drush updatedb along with the drush cache-rebuild were both executed via the CLI, the WSOD disappeared from /admin/reports/status. The error message for WSOD unfortunately does not easily lead to a solution.

πŸ‡ΊπŸ‡ΈUnited States kwiechmann

Have seen this error at least once while working on reducing technical debt -- many moving parts. Unfortunately, I have not been able to reproduce it yet.

My environment:

  1. Drupal Core 10.1.4
  2. PHP 8.2.11
  3. MySQL 5.7.42-log
  4. drupal/search_api 8.x-1.29
  5. drupal/search_api_solr 4.2.12
  6. drupal/search_api_solr_legacy 4.2.12



Error message:

User error: "cache" is an invalid render array key in Drupal\Core\Render\Element::children() (line 98 of C:\xampp\htdocs\cia-drupal\docroot\core\lib\Drupal\Core\Render\Element.php)
```
#0 C:\xampp\htdocs\cia-drupal\docroot\core\includes\bootstrap.inc(164): _drupal_error_handler_real(256, '"cache" is an i...', 'C:\\xampp\\htdocs...', 98)
#1 [internal function]: _drupal_error_handler(256, '"cache" is an i...', 'C:\\xampp\\htdocs...', 98)
#2 C:\xampp\htdocs\cia-drupal\docroot\core\lib\Drupal\Core\Render\Element.php(98): trigger_error('"cache" is an i...', 256)
#3 C:\xampp\htdocs\cia-drupal\docroot\core\lib\Drupal\Core\Render\Renderer.php(416): Drupal\Core\Render\Element::children(Array, false)
#4 C:\xampp\htdocs\cia-drupal\docroot\core\lib\Drupal\Core\Render\Renderer.php(458): Drupal\Core\Render\Renderer->doRender(Array)
#5 C:\xampp\htdocs\cia-drupal\docroot\core\lib\Drupal\Core\Render\Renderer.php(458): Drupal\Core\Render\Renderer->doRender(Array)
#6 C:\xampp\htdocs\cia-drupal\docroot\core\lib\Drupal\Core\Render\Renderer.php(458): Drupal\Core\Render\Renderer->doRender(Array)
#7 C:\xampp\htdocs\cia-drupal\docroot\core\lib\Drupal\Core\Render\Renderer.php(204): Drupal\Core\Render\Renderer->doRender(Array, true)
#8 C:\xampp\htdocs\cia-drupal\docroot\core\lib\Drupal\Core\Render\Renderer.php(148): Drupal\Core\Render\Renderer->render(Array, true)
#9 C:\xampp\htdocs\cia-drupal\docroot\core\lib\Drupal\Core\Render\Renderer.php(592): Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}()
#10 C:\xampp\htdocs\cia-drupal\docroot\core\lib\Drupal\Core\Render\Renderer.php(147): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#11 C:\xampp\htdocs\cia-drupal\docroot\core\lib\Drupal\Core\Render\MainContent\AjaxRenderer.php(66): Drupal\Core\Render\Renderer->renderRoot(Array)
#12 C:\xampp\htdocs\cia-drupal\docroot\core\lib\Drupal\Core\EventSubscriber\MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\AjaxRenderer->renderResponse(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch))
#13 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#14 C:\xampp\htdocs\cia-drupal\docroot\core\lib\Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#15 C:\xampp\htdocs\cia-drupal\vendor\symfony\http-kernel\HttpKernel.php(187): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view')
#16 C:\xampp\htdocs\cia-drupal\vendor\symfony\http-kernel\HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#17 C:\xampp\htdocs\cia-drupal\docroot\modules\contrib\simple_oauth\src\HttpMiddleware\BasicAuthSwap.php(68): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#18 C:\xampp\htdocs\cia-drupal\docroot\core\lib\Drupal\Core\StackMiddleware\Session.php(58): Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#19 C:\xampp\htdocs\cia-drupal\docroot\core\lib\Drupal\Core\StackMiddleware\KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#20 C:\xampp\htdocs\cia-drupal\docroot\core\modules\page_cache\src\StackMiddleware\PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#21 C:\xampp\htdocs\cia-drupal\docroot\core\modules\page_cache\src\StackMiddleware\PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 C:\xampp\htdocs\cia-drupal\vendor\asm89\stack-cors\src\Cors.php(53): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#23 C:\xampp\htdocs\cia-drupal\docroot\core\lib\Drupal\Core\StackMiddleware\ReverseProxyMiddleware.php(48): Asm89\Stack\Cors->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#24 C:\xampp\htdocs\cia-drupal\docroot\core\lib\Drupal\Core\StackMiddleware\NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#25 C:\xampp\htdocs\cia-drupal\docroot\core\lib\Drupal\Core\StackMiddleware\StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#26 C:\xampp\htdocs\cia-drupal\docroot\core\lib\Drupal\Core\DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#27 C:\xampp\htdocs\cia-drupal\docroot\index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#28 {main}
```
πŸ‡ΊπŸ‡ΈUnited States kwiechmann

Purpose is to avoid an warning (or potentially future error if PHP > 8.2) makes more changes to prevent sloppy code. Will need to work on producing repeatable steps.

πŸ‡ΊπŸ‡ΈUnited States kwiechmann

Confirming this patch resolves the "stat" in callables issue applies to Group 8.x-1.6 with PHP 8.2. The issue which this is a "duplicate" of is actually against the Group 3.x code base.

πŸ‡ΊπŸ‡ΈUnited States kwiechmann

Was there any resolution on the original issue when executing db update? I have a similar issue and wonder if someone has a solution to share. The goal is to be on PHP 8.2 and silence overwhelming number of '"static" callables' errors in dblog. I found that group_update_9200, group_update_9201, and group_update_9202 executed cleanly. group_update_9203 continues to throw errors.

I began with

  • Drupal Core:10.1.4
  • PHP 8.2
  • drupal/group:1.5
  • drupal/webform_group:1.0.0-x-dev@dev
  • no drupal/flexible_permissions

After the updates,

  • Drupal Core:10.1.4
  • PHP 8.2
  • drupal/group:2.2.0
  • drupal/webform_group:2.0.x-dev@dev
  • drupal/flexible_permissions:1.0.0

When running the db update, I started getting a string of IDs that started at 50745 and through 50748 which err with a "Column 'gid' cannot be null" message. As this is still in development, I was deleting from group_content. For scale of the project, group_content table is large with 120K+ rows.

 [info] Executing: C:/xampp/htdocs/cia-drupal/vendor/bin/drush updatedb:status --verbose --yes --strict=0 --uri=default --root=C:\xampp\htdocs\cia-drupal\docroot [34.3 sec, 68.87 MB]
 -------- ----------- --------------- -----------------------------------------------------------------------------------
  Module   Update ID   Type            Description
 -------- ----------- --------------- -----------------------------------------------------------------------------------
  group    9203        hook_update_n   9203 - Update group_content DB table, fields and indexes.
  group    9204        hook_update_n   9204 - Remove the 'bypass group access' permission from all roles.
  group    9205        hook_update_n   9205 - Convert group roles with the 'administer group' permission to admin roles.
  group    9206        hook_update_n   9206 - Convert synchronized group roles to new scope and target_role structure.
  group    9207        hook_update_n   9207 - Convert default group roles to new scope and target_role structure.
  group    9208        hook_update_n   9208 - Convert user created group roles to new scope and target_role structure.
  group    9209        hook_update_n   9209 - Remove label and description from relationship types.
  group    9210        hook_update_n   9210 - Introduce the group_config_wrapper entity type.
 -------- ----------- --------------- -----------------------------------------------------------------------------------


 // Do you wish to run the specified pending updates?: yes.

 [info] Executing: C:/xampp/htdocs/cia-drupal/vendor/bin/drush updatedb:batch-process 28980 --uri=default --root=C:\xampp\htdocs\cia-drupal\docroot [59.6 sec, 69.84 MB]
>  [notice] Update started: group_update_9203
>  [error]  Drupal\Core\Database\IntegrityConstraintViolationException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'gid' cannot be null: INSERT INTO "tmp_a49152group_relationship_field_data" ("id",
 "type", "langcode", "gid", "entity_id", "label", "uid", "created", "changed", "default_langcode", "plugin_id", "group_type") 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_inser
t_placeholder_11); Array
> (
>     [:db_insert_placeholder_0] => 50748
>     [:db_insert_placeholder_1] => default-group_membership
>     [:db_insert_placeholder_2] => en
>     [: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] => group_membership
>     [:db_insert_placeholder_11] => default
> )
>  in Drupal\mysql\Driver\Database\mysql\ExceptionHandler->handleExecutionException() (line 43 of C:\xampp\htdocs\cia-drupal\docroot\core\modules\mysql\src\Driver\Database\mysql\ExceptionHandler.php).
>  [error]  The entity update process failed while processing the entity type group_content, ID: 50748.
>  [error]  Update failed: group_update_9203
 [error]  Update aborted by: group_update_9203 [128.14 sec, 69.83 MB]
 [error]  Finished performing updates. [128.15 sec, 69.81 MB]

AdvThanksance!!!

Production build 0.71.5 2024