Question: Barcode on POS Receipt

Barcode on POS Receipt

on localhost the when i submit order the system is printing barcode...but after moving online barcode cannot be printed kindly help

E

Erico

Asked
on localhost the when i submit order the system is printing barcode...but after moving online barcode cannot be printed
kindly help
  • MS

    Mian Saleem

    Answered
    Hello,

    It might be due to some server config or different versions. I suggest to check the server requirements in the documentation.pdf against your sever. Lastly please check the server error logs and let me know the error details so that I can suggest.

    Thank you
  • E

    Erico

    Answered
    [06-Feb-2020 09:41:27 Europe/London] PHP Fatal error: session_start(): Failed to initialize storage module: user (path: /tmp) in /home1/tekneihl/public_html/stockm/system/libraries/Session/Session.php on line 143
  • E

    Erico

    Answered
    that is the only error i get...but one localhost after selling product i can see the barcode on receipt
  • MS

    Mian Saleem

    Answered
    Hello,

    You mean barcode is being display on local install but not on live server. There should be error logs on your server.

    You can enable app log by changing the `log_threshold` to 1 in `app/config/config.php` and the visit the page again to reproduce the error and the logs will be in `app/logs/`

    Thank you
  • E

    Erico

    Answered
    This is the error

    ERROR - 2020-02-10 07:44:49 --> Severity: error --> Exception: Class 'PHPQRCode\QRcode' not found /home1/tekneihl/public_html/joyand/app/libraries/Tec_qrcode.php 22
    ERROR - 2020-02-10 07:44:49 --> Severity: error --> Exception: Class 'Zend\Barcode\Barcode' not found /home1/tekneihl/public_html/joyand/app/libraries/Tec_barcode.php 40
  • MS

    Mian Saleem

    Answered
    The php packages are not being loaded. Please download file again and then replace the `vendor` with latest. If still same then check the `app/config/config.php` for `composer_autoload` it should be

    ```
    $config['composer_autoload'] = FCPATH.'vendor/autoload.php';
    ```
  • E

    Erico

    Answered
    Thank you it have worked well
  • Login to Reply