- 🇮🇳India Neeraj420
I am also facing the same issue even after upgrading to 7.97. Whenever I clear the cache views stop giving results.
I have to always run update.php and every this back to normal. I am not sure why or what is the problem. - First commit to issue fork.
- Open on Drupal.org →Environment: PHP 8.2 & MySQL 8
52:21 52:21 Queueing - @pavel_spn opened merge request.
Hi there!
As the drupal_get_schema() function (see bootstrap.inc) can returns FALSE I propose to add additional checks
to prevent FATAL errors on PHP8.1for drupal_schema_field_types():
`$table_schema_fields = (!empty($table_schema['fields']) && is_array($table_schema['fields'])) ? $table_schema['fields'] : array();`for drupal_schema_fields_sql():
`$schema_fields = (!empty($schema['fields']) && is_array($schema['fields'])) ? $schema['fields'] : array();`All changes see in proposed merge request.
Best Regards,
Pavel- last update
about 1 year ago 2,161 pass - Status changed to Needs review
about 1 year ago 10:29am 20 September 2023 - 🇵🇱Poland driverok
checked MR!4835 - fixed the problem for me.
STR - any Drupal 7 site with incorrectly ( not fully ) deleted fields (instances). Basically, everything that makes drupal_get_schema() return False.
Thanks @Pavel_SPN!
- 🇰🇿Kazakhstan Dmitrii_Zadorozhnyi
It works for me! The problem appeared after incorrectly removed fields
- 🇧🇾Belarus O-khainouski
Checked MR!4835 - fixed the problem for me.
Thanks @Pavel_SPN! - 🇸🇰Slovakia poker10
@Dmitrii_Zadorozhnyi can you please explain a bit more, how this could happen (or what exactly do you meant by this)?
incorrectly removed fields
Thanks!
- 🇰🇿Kazakhstan Dmitrii_Zadorozhnyi
@poker10
As far as I remember after uninstalling module, which implemented some fields, fields were not completely removed from the database. So after switching to PHP 8.1 the error occurred. Module was removed a long time ago, so I can't provide more details