mike42 / escpos-php

PHP library for printing to ESC/POS-compatible thermal and impact printers
Other
2.58k stars 863 forks source link

Network printer error Xprinter 80C #990

Open zansit opened 4 years ago

zansit commented 4 years ago

Hi everyone

im trying to print my receipt to a printer (Xprinter 80c) on the network from xammp.my pc and the printer are both in the same network but im getting the following error.

Fatal error: Uncaught Error: Call to undefined method Mike42\Escpos\CodePage::encodingArrayFromData() in C:\xampp\htdocs\test\vendor\mike42\escpos-php\src\Mike42\Escpos\CodePage.php:73 Stack trace: #0 C:\xampp\htdocs\test\vendor\mike42\escpos-php\src\Mike42\Escpos\CapabilityProfile.php(132): Mike42\Escpos\CodePage->construct('TCVN-3-1', Array) #1 C:\xampp\htdocs\test\vendor\mike42\escpos-php\src\Mike42\Escpos\CapabilityProfile.php(291): Mike42\Escpos\CapabilityProfile->construct('default', Array) #2 C:\xampp\htdocs\test\vendor\mike42\escpos-php\src\Mike42\Escpos\Printer.php(367): Mike42\Escpos\CapabilityProfile::load('default') #3 C:\xampp\htdocs\test\test.php(14): Mike42\Escpos\Printer->__construct(Object(Mike42\Escpos\PrintConnectors\NetworkPrintConnector)) #4 {main} thrown in C:\xampp\htdocs\test\vendor\mike42\escpos-php\src\Mike42\Escpos\CodePage.php on line 73

Muraveiko commented 4 years ago

https://github.com/mike42/escpos-php/issues/824