Problem/Motivation
Hello, i recently migrated from a docker image bitnami/drupal:10.1.6 to bitnami/drupal:10.3.6 and the automatic upgrade of the database apparently broke my Drupal.
I am now unable to deploy my website, i get a 500 error :
error Failed to fetch http://velwatest.azurewebsites.net/jsonapi/block/block Response code 500 (Internal Server Error)
HTTPError: Response code 500 (Internal Server Error)
or
error Failed to fetch https://velwatest.azurewebsites.net/jsonapi/search_page/search_page Response code 500 (Internal Server Error)
HTTPError: Response code 500 (Internal Server Error)
When checking my drupal logs, i see a warning :
Deprecated function: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 207 of /opt/bitnami/drupal/core/lib/Drupal/Core/Routing/UrlGenerator.php)
As well as this error :
Symfony\Component\Routing\Exception\InvalidParameterException: Parameter "entity" for route "jsonapi.search_page--search_page.individual" must match "[^/]++" ("" given) to generate a corresponding URL. in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 209 of /opt/bitnami/drupal/core/lib/Drupal/Core/Routing/UrlGenerator.php).
If i import back my database backup from before the migration to 10.3.6, the problem disappears.
Do you know why the database upgrade might break my data, or how to fix it ?
What i have tested is : upgrading all modules as well as drupal core to 10.4.3 with composer, it did not help.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet