Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: fopen(/pathto/qrcode/assets/data/rsc0.dat): failed to open stream: No such file or directory #56

Closed
jjsty1e opened this issue Sep 12, 2016 · 1 comment
Assignees
Labels

Comments

@jjsty1e
Copy link

jjsty1e commented Sep 12, 2016

It's ok last few days, but today I got this problem and it can' generate the qrcode image for me, and before this I din't change anything, actually there is no file named rsc0.dat in the path, below is my code :

$qrCode = new QrCode();
        $qrCode
            ->setText($string)
            ->setSize(300)
            ->setPadding(10)
            ->setErrorCorrection('high')
            ->setForegroundColor(array('r' => 0, 'g' => 0, 'b' => 0, 'a' => 0))
            ->setBackgroundColor(array('r' => 255, 'g' => 255, 'b' => 255, 'a' => 0))
            //->setLabel($label)
            //->setLabelFontSize(16)
            ->setImageType(QrCode::IMAGE_TYPE_PNG)
        ;
        return $qrCode;

what's wrong with me ?

parameters:

$string = 'I864';
$label = '';
@jjsty1e
Copy link
Author

jjsty1e commented Sep 12, 2016

such a stupid question, I have found my .dat file in asset folder are all 0 size, and then I reinstlall your package, everything seems to be ok !

@jjsty1e jjsty1e closed this as completed Sep 12, 2016
@endroid endroid self-assigned this Sep 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants