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

Error generate grcode #14

Open
hidayat-io opened this issue Jun 28, 2016 · 3 comments
Open

Error generate grcode #14

hidayat-io opened this issue Jun 28, 2016 · 3 comments

Comments

@hidayat-io
Copy link

Hi,
thanks to create this nice library for codeigniter.
But, why when i'm trying to use it as your instruction in main page, i get this error

A PHP Error was encountered

Severity: Warning

Message: file_put_contents(G:\xampp\htdocs\erp\index.phpapplication/logs/qr_.png-errors.txt) [function.file-put-contents]: failed to open stream: No such file or directory

Filename: qrcode/qrtools.php

Line Number: 106

i extract the file to application/libraries

and use this code to load it

 $this->load->library('ciqrcode');

header("Content-Type: image/png");
$params['data']        = 'This is a text to encode become QR Code';
$this->ciqrcode->generate($params);

thank's for the advice

@Afdhal-Mahdi
Copy link

I also have the same problem, please help !!

@dwisetiyadi
Copy link
Owner

Hi all,

it seems getting wrong with error log configuration path, try this code (add before you call ciqrcode generate method):

$params['errorlog'] = FCPATH.'application/logs/';
(dont forget to create folder with name "logs" inside application, if that folder doesn't exist, or you can change the name with everything names)

@Afdhal-Mahdi
Copy link

Ok thank u,,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants