Closed (fixed)
Project:
Commerce CardPointe
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
8 Nov 2025 at 17:53 UTC
Updated:
1 Dec 2025 at 20:14 UTC
Jump to comment: Most recent
When visiting the status report page, I'm seeing a dozen warnings, all starting with this:
Warning: foreach() argument must be of type array|object, null given in Drupal\commerce\CommerceContentEntityStorageSchema->getSharedTableFieldSchema() (line 21 of modules/contrib/commerce/src/CommerceContentEntityStorageSchema.php).
Drupal\commerce\CommerceContentEntityStorageSchema->getSharedTableFieldSchema() (Line: 979)
Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema->getEntitySchema() (Line: 212)
Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema->requiresEntityStorageSchemaChanges() (Line: 1456)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->requiresEntityStorageSchemaChanges() (Line: 324)
Drupal\Core\Entity\EntityDefinitionUpdateManager->requiresEntityStorageSchemaChanges() (Line: 261)
Drupal\Core\Entity\EntityDefinitionUpdateManager->getChangeList() (Line: 88)
Drupal\Core\Entity\EntityDefinitionUpdateManager->getChangeSummary() (Line: 955)
system_requirements()
call_user_func_array() (Line: 404)
Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}() (Line: 357)
Drupal\Core\Extension\ModuleHandler->invokeAllWith() (Line: 403)
Drupal\Core\Extension\ModuleHandler->invokeAll() (Line: 128)
Drupal\system\SystemManager->listRequirements() (Line: 53)
Drupal\system\Controller\SystemInfoController->status()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 627)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 183)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 90)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 53)
Asm89\Stack\Cors->handle() (Line: 50)
Drupal\ban\BanMiddleware->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 53)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 715)
Drupal\Core\DrupalKernel->handle() (Line: 19)This spams the status report page.
Install/configure this module, along with Drupal Commerce 3. Visit the status report page.
The "Hsn" field could be indexed -- add an index to this field, and then Commerce's updates will complete without warning.
New index installed on Hsn field.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
freelockFix in MR.
Comment #4
tomtech commentedHi @freelock,
Thanks for the report and MR.
This actually can be fixed with an empty array definition for the indexes, but I guess we can consider adding an index for Hsn field.
Going to re-target this at the 1.x branch, as all MRs should start there. (And move back to earlier branches, if necessary.)
Comment #6
tomtech commentedmerged, thanks!
Comment #8
freelockGreat, thanks!