Question: No Barcode In Print Labels

No Barcode In Print Labels

Hi, I have already solved the problem with the Barcode Symbology Update error based on a support question. However, I still have a big problem. In the items page, when I want to print a labe

DV

Daan Vervoort

Asked

Hi, I have already solved the problem with the Barcode Symbology Update error based on a support question. However, I still have a big problem. In the items page, when I want to print a label, the print modal only shows the barcode in characters and a broken link icon instead of the barcode. So no barcode has been created i think. How can I solve this? Thanks in advance for the quick response. Regards, Daan

  • MS

    Mian Saleem

    Answered

    Hello,

    Can you please take screenshot of the page?

    Thank you

  • DV

    Daan Vervoort

    Answered

    Hi, See attachment. Thanks! Daan

  • MS

    Mian Saleem

    Answered

    Hello,

    Looks like barcode library is having issue. Please check your server php error logs and let me know the error details.

    If you are not sure about server error logs, you can enable app logs by changing the log_threshold to 1 in the app/config/config.php and then visit the barcode page again to reproduce errors. Lasly check the laest log file in the app/logs/ folder.

    Thank you

  • DV

    Daan Vervoort

    Answered

    Thanks for the reply. I am attaching the error log. As you can see there is now also a login problem. I can already tell you that downloading and installing the SSM application again did not help. I did that this weekend with no success. Thanks in advance for a solution, Regards, Daan

  • DV

    Daan Vervoort

    Answered

    Hi, In the meantime i found the solution: changed the syntax in the file: app\third_party\Zend\Barcode\Object\ObjectAbstract.php line number 1201 from $text{$i} to $text[$i]. Now the barcode is correctly displayed on the print preview. Hopefully this was the last error and everything is now working as may be expected when purchasing an application. Regards, Daan

  • MS

    Mian Saleem

    Answered

    May I know your php version and thanks for sharing the solution

  • DV

    Daan Vervoort

    Answered

    This error in log still remains during login: ERROR - 2022-03-07 10:05:27 --> Severity: error --> Exception: array_merge(): Argument #2 must be of type array, bool given C:\POSLabel\xampp\htdocs\SSM\app\controllers\Welcome.php 36. Thanks for the fast reply!

  • MS

    Mian Saleem

    Answered

    Hello,

    This is not related to barcode and will go away as you have data. Can you please chek that line, if it is not wraped in if then do it as following

    $data = $this->tec_array_merge($check_ins, $check_outs);
    if ($data) {
        ksort($data);
    }
    

    Thank you

  • DV

    Daan Vervoort

    Answered

    Dear, your answer about having no data is by no means a possible cause:

    • the application already has data, +6000 article lines have been loaded into it.
    • the code you provided is in the Welcome.php file in exactly the same way.
    • the error message:‘ERROR - 2022-03-10 11:10:35 --> Severity: error --> Exception: array_merge(): Argument #2 must be of type array, bool given C:\POSLabel\xampp\ htdocs\SSM\app\controllers\Welcome.php 36’ If I type in the browser address bar after the login error this URL ‘http://localhost/SSM/item.php’ , everything works correctly and the user session is active. Thanks, Daan
  • MS

    Mian Saleem

    Answered

    Hello,

    By data, I mean check ins/outs. If you need, you can change the sessions settings in the app/config/config.php

    Thank you

  • Login to Reply