Login   Register  
PHP Classes
elePHPant
Icontem

fatal error

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      QR code generator  >  All threads  >  fatal error  >  (Un) Subscribe thread alerts  
Subject:fatal error
Summary:script doesn't work
Messages:2
Author:jason_bourne
Date:2011-11-11 02:21:07
Update:2011-11-11 06:39:50
 

  1. fatal error   Reply  
Picture of jason_bourne
jason_bourne
2011-11-11 02:21:07
When i execute script it throw a Fatal error:

Fatal error: Call to a member function link() on a non-object in /home/xxx/public_html/xxx/xxx.php on line 44

This what there is in line 44.
$qr->link("http://code-snippets.co.cc");

  2. Re: fatal error   Reply  
Picture of Arturs Sosins
Arturs Sosins
2011-11-11 06:39:50 - In reply to message 1 from jason_bourne
Hi,
it seems that you didn't create an instance before calling class method.

Do you have something like this:

include("qrcode.php");
$qr = new qrcode();


before calling $qr->link method?