php-qrcode-detector-decoder icon indicating copy to clipboard operation
php-qrcode-detector-decoder copied to clipboard

Class 'QrReader' not found

Open honeyanupam opened this issue 6 years ago • 6 comments

i have install "khanamiryan" But Class 'QrReader' not found Please help me

honeyanupam avatar May 31 '18 05:05 honeyanupam

same issue here. using PHP 5.6.30, gd enabled

mark-rodgers avatar May 31 '18 19:05 mark-rodgers

See #43

Use the Zxing namespace when initializing your class. $qrcode = new Zxing\QrReader($image);

mark-rodgers avatar May 31 '18 19:05 mark-rodgers

I had the same error, I've made the correction as you said, but I've a new error:

Fatal error: Uncaught Error: Class 'Zxing\Zxing\GDLuminanceSource' not found in C:\xampp\htdocs\QRdetector\lib\QrReader.php:70 Stack trace: #0 C:\xampp\htdocs\QRdetector\qrReader.php(11): Zxing\QrReader->__construct('uploads/hello_w...') #1 {main} thrown in C:\xampp\htdocs\QRdetector\lib\QrReader.php on line 70

Help would be nice! Thanks

Timytim avatar Jun 07 '18 14:06 Timytim

Ok that was my fault: didn't execute the composer requiery in the right place! Thanks for the code anyway

Timytim avatar Jun 13 '18 12:06 Timytim

This should be written in the readme file!

bulgariamitko avatar Oct 28 '19 13:10 bulgariamitko

This is a really important information. You can be in the dark for hours if you don't know the namespace the class is in.

benediktcarda avatar Aug 16 '21 08:08 benediktcarda