Giter Club home page Giter Club logo

craft-qrcode's People

Contributors

boboldehampsink avatar charliegentle avatar magnessjo avatar samuelbirch avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

craft-qrcode's Issues

Installation dependency conflict

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

Package dependancy

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

Craft 4 Install

We just recently updated our Craft CMS to v4 and are now trying to install QRCode but are all having the same errors.

image

We also installed several plugins after updating to v4 and they all went smoothly except for this one.

Roadmap / future craft 4?

Hello. I am looking to use this in a project. Are you planning on porting this to craft 4? Is it still maintained? Thanks! ๐Ÿ‘Œ๐Ÿผ

Error using sample code

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.

PHP error after install

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?

URL opening

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/"

Craft 4

Hi, any plans on doing a craft 4 update, I saw that there is a craft4 branch, is it ready to be used?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.