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

Member function on null #18

Open
MML1357 opened this issue Jul 5, 2020 · 1 comment
Open

Member function on null #18

MML1357 opened this issue Jul 5, 2020 · 1 comment

Comments

@MML1357
Copy link

MML1357 commented Jul 5, 2020

I'm doing this:

include('barcode.php');
$generator = new barcode_generator();
$svg = $generator->render_svg('code-128', '13123');
echo $svg;

And I'm getting this error:
Uncaught Error: Call to a member function render_svg() on null
If I do a var_dump($generator); just get NULL

@RebeccaRGB
Copy link
Member

That looks right. Which version of PHP do you have?

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

2 participants