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

Comments

philalawst created an issue. See original summary.

dkmishra’s picture

Status: Active » Needs work

Hi @philalawst, thanks for sharing the patch.

I applied the patch. I installed better_social_share 1.1.6 and then ran drush config:inspect --detail --only-error, and I got the following missing schema validation error:

----------------------------------------------------- ---------------- ------------- ------ 
  Key                                                   Status           Validatable   Data  
 ----------------------------------------------------- ---------------- ------------- ------ 
  better_social_share.settings:social_share_platforms   missing schema                       
 ----------------------------------------------------- ---------------- ------------- ------ 

I then applied this patch and ran drush config:inspect --detail --only-error again, and got:

In ArrayElement.php line 100:
The configuration property social_share_platforms.facebook.enabled doesn't exist. 

It seems that the patch is not working as expected yet.

philalawst’s picture

StatusFileSize
new3.19 KB

Sorry ! The type of social_share_platforms is incorrect

I change type string to mappy for this config social_share_platforms

dkmishra’s picture

Hi @philalawst, thanks for the update in #3.

I tried better_social_share_20260929.patch and it doesn't apply. patch -p1 and git apply both fail with

patch unexpectedly ends in middle of line
patch: **** Only garbage was found in the patch input.

The 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-error then showed two more issues.

better_social_share.settings:social_share_platfor   variable type is string but applied schema class is                        
  ms.facebook.enabled                                 Drupal\Core\TypedData\Plugin\DataType\BooleanData                          
  better_social_share.settings:social_share_platfor   variable type is string but applied schema class is                        
  ms.facebook.weight                                  Drupal\Core\TypedData\Plugin\DataType\IntegerData                          
  better_social_share.settings:social_share_platfor   variable type is string but applied schema class is                        
  ms.twitter.enabled                                  Drupal\Core\TypedData\Plugin\DataType\BooleanData                          
  better_social_share.settings:social_share_platfor   variable type is string but applied schema class is                        
  ms.twitter.weight                                   Drupal\Core\TypedData\Plugin\DataType\IntegerData                          
  better_social_share.settings:social_share_platfor   variable type is string but applied schema class is                        
  ms.linkedin.enabled                                 Drupal\Core\TypedData\Plugin\DataType\BooleanData                          
  better_social_share.settings:social_share_platfor   variable type is string but applied schema class is                        
  ms.linkedin.weight                                  Drupal\Core\TypedData\Plugin\DataType\IntegerData                          
  better_social_share.settings:social_share_platfor   variable type is string but applied schema class is                        
  ms.pinterest.enabled                                Drupal\Core\TypedData\Plugin\DataType\BooleanData                          
  better_social_share.settings:social_share_platfor   variable type is string but applied schema class is 
sujan shrestha’s picture

Version: 1.1.6 » 1.1.8
Status: Needs work » Fixed

Fixed 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.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.