webdna / craft-qrcode Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
I tired to install the plugin via the plugin store but unfortunately ran into an error while doing so.
Composer was unable to install the updates due to a dependency conflict.
Composer output: Package "craftcms/vue-asset" listed for update is not installed. Ignoring.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- endroid/qr-code 3.5.3 requires php >=7.1 -> your PHP version (7.2.10) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- endroid/qr-code 3.5.2 requires php >=7.1 -> your PHP version (7.2.10) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- endroid/qr-code 3.5.1 requires php >=7.1 -> your PHP version (7.2.10) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- endroid/qr-code 3.5.0 requires php >=7.1 -> your PHP version (7.2.10) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- kuriousagency/qrcode 1.0.0 requires endroid/qr-code ^3.5 -> satisfiable by endroid/qr-code[3.5.0, 3.5.1, 3.5.2, 3.5.3].
- Installation request for kuriousagency/qrcode 1.0.0 -> satisfiable by kuriousagency/qrcode[1.0.0].
Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.
Yii Events 45 User 1 Status 200 Route pluginstore/install/index Log 88 Deprecated 0 Time 973 ms Memory 23.653 MB DB 68 46 ms Asset Bundles 23
Hi guys,
I am trying to install Two Factor Authentication plugin for my Craft site and I am having dependency issues.
webdna/qrcode requires endroid/qr-code[3.5.0, ..., 3.9.7]
but
born05/craft-twofactorauthentication requires endroid/qr-code[4.0.2].
Is there anything you can do?
Thank you
Hello. I am looking to use this in a project. Are you planning on porting this to craft 4? Is it still maintained? Thanks! ๐๐ผ
The code sample that passes in an array throw errors for me.
{{ {"name":"John Smith"}|qrcode(100) }}
or
{{ craft.qrcode.generate({"name":"John Smith"}, 100) }}
The error I receive is:
Argument 1 passed to Endroid\QrCode\QrCode::__construct() must be of the type string, array given, called in /Users/john/Sites/mytestsite/vendor/kuriousagency/qrcode/src/services/QRCodeService.php on line 36
Passing a simple string does work though. The following generates no errors.
{{ craft.qrcode.generate(1234567890) }}
I'm unclear on the benefit of passing an array but wondered if there is something broken since the example code isn't generating a QR code.
I just installed this plugin in Craft 4 and upon editing an entry in which this field is in a Matrix field I get the following error:
Endroid\QrCode\QrCode::__construct(): Argument #1 ($text) must be of type string, null given, called in /var/www/vendor/webdna/qrcode/src/services/QRCodeService.php on line 42
Probably an unrelated question, but the documentation does not seem very clear on what the "Data" field expects when configuring the field type. I'm under the assumption that the plugin provides a text field to enter a URL in an entry, which is turned into a QR code. Meaning each entry gets a different code. Is that not the case?
I'm trying to use the plugin to generate a QR code link to URL but unfortunately it seems like there always are "
at the start and end resulting in not mobile readable QR-Codes.
This is what I'm using
{% set qrURL = craft.app.request.absoluteUrl|url_encode %}
{% set qr = craft.qrcode.generate(qrURL) %}
{{ qrURL }}
</br>
<img src="{{ qr }}">
Removing |url_encode
results in the same problem.
What the camera reads is "https://example.com/"
Hi, any plans on doing a craft 4 update, I saw that there is a craft4 branch, is it ready to be used?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.