Replies: 1 comment 5 replies
-
Looks like you got a version mismatch between your installed version and the example from the |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Appologies for what is probably a noob question...
I am trying to get the https://github.com/chillerlan/php-qrcode/blob/main/examples/svgWithLogo.php example running.
I installed the latest version by running
composer require chillerlan/php-qrcode
and then pulled down the svgLogo example php file into that project's example directory. I updated the require to berequire_once '/var/www/html/qr/vendor/autoload.php';
but when running that php file i receive these exceptions`[Wed Jul 06 20:59:16.061095 2022] [php:error] [pid 19119] [client 10.0.0.170:53094] PHP Fatal error: Uncaught Error: Class "chillerlan\QRCodeExamples\EccLevel" not found in /var/www/html/qr/vendor/chillerlan/php-qrcode/examples/svg.php:31\nStack trace:\n#0 {main}\n thrown in /var/www/html/qr/vendor/chillerlan/php-qrcode/examples/svg.php on line 31
[Wed Jul 06 21:03:20.949402 2022] [php:error] [pid 19117] [client 10.0.0.170:53136] PHP Fatal error: Uncaught Error: Undefined constant chillerlan\QRCode\Data\QRMatrix::IS_DARK in /var/www/html/qr/vendor/chillerlan/php-qrcode/examples/svgWithLogo.php:48\nStack trace:\n#0 {main}\n thrown in /var/www/html/qr/vendor/chillerlan/php-qrcode/examples/svgWithLogo.php on line 48
`
When looking at the files in the project it looks like there are files in the repo in say SRC that are not in the composer install.
Beta Was this translation helpful? Give feedback.
All reactions