Reposting this here (in addition to https://www.drupal.org/project/insert_view_adv/issues/3180525#comment-14... ) in hopes of helping anyone else who ran into this issue:
I was using the insert view module and encountered this error when re-indexing a Search API index.
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /batch?id=20&op=do_nojs&op=do
StatusText: OK
ResponseText: TypeError: Argument 1 passed to Drupal\Core\Cache\CacheableMetadata::createFromRenderArray() must be of the type array, null given, called in /var/www/sandbox/vhost/web/core/lib/Drupal/Core/Render/Renderer.php on line 349 in Drupal\Core\Cache\CacheableMetadata::createFromRenderArray() (line 149 of /var/www/sandbox/vhost/web/core/lib/Drupal/Core/Cache/CacheableMetadata.php).Following a comment from the other issue report, I uninstalled Insert View and installed Advanced Insert View instead, and now my re-indexing is working.
If others run into a similar issue, Advanced Insert View might be a good workaround.
Insert View has been a part of many of my Drupal sites for many years - thank you so much for all your work on it over the years!
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | Screenshot_19.png | 9.39 KB | anandaakrishnan-ga |
Issue fork insert_view-3301896
Show commands
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 #2
igor mashevskyi commentedComment #3
igor mashevskyi commentedComment #5
gslexie commentedI tested the following steps:
Confirmed, when running cron to build the search index, I crash with the same TypeError cited here.
I then added the patch:
I can confirm that the patch resolved the error during cron run.
Comment #6
gslexie commentedComment #7
diegoluisr commentedThis patch solves an issue related to search_api_solr module too, before the patch full text rendering was failing, making those fields rendering empty.
Comment #8
anandaakrishnan-ga commentedThe current version of insert_view (2.1.0) does not support Drupal 11 due to the version constraint
"drupal/core": "^8.8 || ^9 || ^10"
To ensure compatibility with Drupal 11, I recommend updating the constraint to include:
"^8.8 || ^9 || ^10 || ^11"
//
getting this issue while updating to Drupal11
//
Comment #11
robloach