The error
Schema errors for better_social_share.settings with the following errors: better_social_share.settings:social_share_platforms missing schema, better_social_share.settings:btn_border_round missing schema, better_social_share.settings:btn_show_label missing schema, better_social_share.settings:enable_button_spacing missing schema, better_social_share.settings:buttons_label missing schema, better_social_share.settings:btn_type missing schema, better_social_share.settings:btn_bg_color missing schema, better_social_share.settings:icon_color_type missing schema, better_social_share.settings:icon_color missing schema. These errors mean there is configuration that does not comply with its schema. This is not a fatal error, but it is recommended to fix these issues. For more information on configuration schemas, check out <a href="https://www.drupal.org/docs/drupal-apis/configuration-api/configuration-schemametadata">the documentation</a>.
I added the missing config in the schema and replaced lable by label in config custom_more_button
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | better_social_share_20260929.patch | 3.19 KB | philalawst |
| better_social_share_20260917.patch | 1.37 KB | philalawst |
Comments
Comment #2
dkmishra commentedHi @philalawst, thanks for sharing the patch.
I applied the patch. I installed
better_social_share 1.1.6and then randrush config:inspect --detail --only-error,and I got the following missing schema validation error:I then applied this patch and ran
drush config:inspect --detail --only-erroragain, and got:It seems that the patch is not working as expected yet.
Comment #3
philalawst commentedSorry ! The type of social_share_platforms is incorrect
I change type string to mappy for this config social_share_platforms
Comment #4
dkmishra commentedHi @philalawst, thanks for the update in #3.
I tried better_social_share_20260929.patch and it doesn't apply.
patch -p1 and git applyboth fail withThe cause is the file encoding. The file was saved in the wrong text format (UTF-16 instead of UTF-8).
I converted your patch to UTF-8 and tested it. The schema additions work and the "missing schema" errors are gone. Running
drush config:inspect --detail --only-errorthen showed two more issues.Comment #5
sujan shrestha commentedFixed in 1.1.8 (commit 2388a9e). The schema now covers every setting, the block settings and the new popup settings; the lable typo is fixed. The forms store integers, and update hooks convert values saved by older releases (string weights, missing keys), so config:inspect reports no errors after drush updb. Kernel tests check the schema.