Fatal error: Uncaught Error: Class "chillerlan\QRCodeExamples\QRImageWithLogo" not found #75
Replies: 10 comments 14 replies
-
The example namespace is only available in autoload-dev, so you might need to install the packages with |
Beta Was this translation helpful? Give feedback.
-
You understand that i cannot help you with the little information that i have? Have you tried a clean install/clone of this library and installed the dependencies like described in the readme? Where does the "vendor3" subdirectory come from? From what it seems you have mismatching directories for you dependencies. |
Beta Was this translation helpful? Give feedback.
-
Ok, you definitely have a vendor path mismatch problem and it has absolutely nothing to do with this library. Installing dependencies and then moving the vendor folders just will not work as expected because composer hardcodes the library subdirectories in the autogenerated |
Beta Was this translation helpful? Give feedback.
-
See #78 (comment) |
Beta Was this translation helpful? Give feedback.
-
Also, you're installing v2.x - the class you're looking for is only available since 4.3 (with a backport to 3.2). |
Beta Was this translation helpful? Give feedback.
-
Edit: according to your updated comment, your PHP version does not support the latest and not even v3, which requires PHP 7.2. So it's recommended to upgrade your PHP first as you're running an EOL PHP. |
Beta Was this translation helpful? Give feedback.
-
Once again, i'm not PHP support. For further questions about general things that clearly have nocthing to do with this library, check StackOverflow or the PHPhelp subreddit. Thanks and good luck. |
Beta Was this translation helpful? Give feedback.
-
Fatal error: Uncaught Error: Class "chillerlan\Settings\SettingsContainerAbstract" not found in /var/www/html/vendor/vendor4/chillerlan/php-qrcode/src/QROptions.php:52 where i can find this class SettingsContainerAbstract? |
Beta Was this translation helpful? Give feedback.
-
This library depends on it and it should have been installed automatically (chillerlan/php-settings-container) - you clearly have messed up dependencies. |
Beta Was this translation helpful? Give feedback.
-
Fatal error: Uncaught Error: Class "chillerlan\QRCodeExamples\QRImageWithLogo" not found in /var/www/html/apps/Qrcode/php-qrcode-main/examples/imageWithLogo.php:42 Stack trace: #0 {main} thrown in /var/www/html/apps/Qrcode/php-qrcode-main/examples/imageWithLogo.php on line 42
Hello, whats problem? in other files all work with require_once $root.'/vendor/vendor3/autoload.php';
Beta Was this translation helpful? Give feedback.
All reactions