PHP Classes

fatal error

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in

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

  1. fatal error   Reply   Report abuse  
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.

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

Do you have something like this:

$qr = new qrcode();

before calling $qr->link method?