objecttothis

Results 355 comments of objecttothis

> Here is the code I used. Hope it helps > ``` > > > > > > ``` Epic. Thanks. I'm hoping that's what is causing the null reference...

@odiea your code change resolves the issue with the configuration. Thank you for posting that. Our bug with getting an `undefined array key ""` error when EAN-13 is the barcode...

I'm using 9780230766518 for the value of item_number (the barcode) on an item that isn't generating but throwing the exception. The thing I find interesting is that the barcode content...

Here's the exact error and stack trace Caught exception: Undefined array key "" Stack trace: #0 \app\Libraries\Barcodes\Ean13.php(277): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array...', 'C:\\Users\\objec\\...', 277) #1 \app\Libraries\Barcode_lib.php(157): App\Libraries\Barcodes\Ean13->draw() #2 \app\Libraries\Barcode_lib.php(214): App\Libraries\Barcode_lib->generate_barcode(Array, Array) #3...

The place that it's dying is in this for loop ``` for ($idx = 1; $idx < 7; ++$idx) { $value = substr($this->data, $idx, 1); if(isset($this->_codingmap[$value][$set_array[$idx - 1]])) { foreach($this->_codingmap[$value][$set_array[$idx...

The frustrating thing is that this is working in 3.3.9.

> I understand your pain. Sendmail also does not work depending on the php version or Apache version. That reminds me. The `mixed` type hint for function parameters wasn't introduced...

Exactly. Just take the mixed type hint out and it will work. We need to do a code search for other places with mixed in there.

> I changed the location of the $value and it is not givng me the error now. But does it give a correct ean13 for you > > ``` >...

Yeah, I'm sick of trying to make this abandonware work in the new code. Per #3455 I'm stripping out the emberlabs code and adding in Picquer/php-barcode-generator