Fatal errors when clearing cache after 1.19 upgrade

aotu
Hello, After applying the 1.19 upgrade and clearing the cache, the site crashes and can only be recovered by running the update script. The errors in php_error.log are as below: PHP Notice: Undefined index: /profiles/opigno_lms/modules/contrib/entity/entity.rules.inc on line 51 PHP Notice: Undefined index: schema_fields_sql in /includes/entity.inc on line 298 PHP Catchable fatal error: Argument 2 passed to SelectQuery::fields() must be of the type array, null given, called in /includes/entity.inc on line 317 and defined in /includes/database/select.inc on line 1301 In the Drupal logs there is also the error: Warning: Invalid argument supplied for foreach() in user_permission_get_modules() (line 3082 of /modules/user/user.module). Do you have any ideas for a fix? Thanks, Gavin
Profile picture for user James Aparicio
James Aparicio

Hi aotu,

Hi aotu,

Have you ran update.php?

Also if you are using opigno webex app or opigno in house training app update them.

Let me know if it fixed your issue.

Best regards

aotu

Hi James,

Hi James, Thanks for your reply, Every time the site crashes, running update.php fixes the issue temporarily. I do not have " opigno webex app" or "opigno in house training app" installed This issue provides a patch, however it does not resolve the issue: https://www.drupal.org/node/1259458 There are also two other issues in the log which I missed before: Notice: Undefined index: scale in number_field_schema() (line 36 of /modules/field/modules/number/number.install). Notice: Undefined index: precision in number_field_schema() (line 35 of /modules/field/modules/number/number.install). Thanks for your help, Gavin
aotu

I have the cache 'working'

I have the cache 'working' again now, in that there are no more fatal errors...however there are around 70 notices and warnings all related to Rules Applied patches: https://www.drupal.org/files/issues/drupal-component-1158114-63.patch https://www.drupal.org/files/1438278-entityreference-schema-rebuild-error.patch php log (condensed): PHP Warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/profiles/opigno_lms/modules/contrib/rules/includes/rules.core.inc on line 56 PHP Notice: Undefined index: schema_fields_sql in /Applications/MAMP/htdocs/profiles/opigno_lms/modules/contrib/rules/includes/rules.core.inc on line 56 PHP Notice: Undefined index: field cache in /Applications/MAMP/htdocs/modules/field/field.attach.inc on line 634 PHP Notice: Undefined index: revision in /Applications/MAMP/htdocs/includes/common.inc on line 7839