Closed laryn closed 3 months ago
This may be a special case -- an upgrade from a Drupal 7 site where I had neglected to copy this module over during the upgrade. Afterwards I copied the module over and enabled it, and it was trying to load the configuration but there was none.
In any event, I have now imported the default configuration manually through the UI and am testing further.
Hmm... then later I was prompted to run the upgrade for socialfield and it crashed the site again until I did a config sync on the command line with bee.
TypeError: array_keys(): Argument #1 ($array) must be of type array, string given in array_keys() (line 101 of /var/www/html/modules/contrib/socialfield/socialfield.module).
@jenlampton If you're open to some defensive coding here, I've added a PR.
I will be revising the PR -- the next time I tried to run this upgrade with the first version I got further but then ran into:
StatusText: error ResponseText: ValueError: array_combine(): Argument #1 ($keys) and argument #2 ($values) must have the same number of elements in array_combine() (line 109 of /var/www/html/modules/contrib/socialfield/socialfield.module).
@jenlampton I added a failsafe value to this array in the case that it was returning nothing, and then was able to complete the upgrade from Drupal 7 locally without a fatal error.
I tried to activate this module and got this: