Due to incorrect function declaration in modules\barcode\plugins\code39.inc and modules\barcode\plugins\code93.inc barcode image was built wit zero width of wide bars and wide spaces. Of course it results in broken barcode image. To solve this just correct the declaration:

in modules\barcode\plugins\code39.inc:
* DoD applications
*/

function barcode_code39_barcode($barnumber, $settings) { //corrected line
$bars = barcode_code39_encode($barnumber, $settings); //corrected line

in modules\barcode\plugins\code93.inc:
* Barcode plugin
* Code 93 (aka USS-93): Compressed form of Code 39
*/

function barcode_code93_barcode($barnumber, $settings) { //corrected line
$bars = barcode_code93_encode($barnumber, $settings); //corrected line

Comments

stewart.adam’s picture

Title: Incorrect code39 and code93 generation » Incorrect code39 and code93 generation on 6.x
Issue summary: View changes

Note - this issue does not affect 7.x branch.

tr’s picture

Status: Needs review » Closed (won't fix)

Drupal 6 is long out of support.

This module is no longer supported. I suggest you try using the Barcodes module instead (https://www.drupal.org/project/barcodes)

Barcodes is very similar to this module, and is supported for Drupal 7, 8, and 9.