- Issue created by @srjosh
- Merge request !24Issue #3487634 by srjosh: FieldFormatter throwing error with tecnickcom/tc-lib-barcode 2.3 β (Open) created by srjosh
- πΊπΈUnited States tr Cascadia
I can't reproduce this. How did you set the width? Do you see the same error when using the default width?
What version of Drupal? Are you using Barcodes 2.1.0?The field formatter parameters that need to be integers are width, height, padding_top, padding_bottom, padding_right, and padding_left. All of these are defined as integers in the field formatter schema.
All of these are initialized to integer values.
All of these use "number" form elements for user input, ensuring that only integers get passed to the code.
I would expect either all of these show the same error or that none of them show that error.I don't see how width can be a string at that point in the code, unless you are setting it by importing a config file. Drupal doesn't enforce types when importing config files, so if your config file is setting the width to a string value then it won't be checked - if that's the case just edit your config file to ensure the width is an integer and not quoted like a string.
- πΊπΈUnited States tr Cascadia
@srjosh: Is this still a problem? If so please provide the requested information so I can help.