PHP Classes

Undefined variable error

Recommend this page to a friend!

      Rounded DIV Corners  >  All threads  >  Undefined variable error  >  (Un) Subscribe thread alerts  
Subject:Undefined variable error
Summary:Error running the RoundedDIV.example.php script
Messages:2
Author:David Wright
Date:2008-01-15 17:28:56
Update:2008-01-15 21:00:00
 

  1. Undefined variable error   Reply   Report abuse  
Picture of David Wright David Wright - 2008-01-15 17:28:56
When I run the script in Firefox on Linux the result looks OK but I am getting the following in the httpd/error_log.

[Tue Jan 15 12:10:56 2008] [error] [client 127.0.0.1] PHP Notice: Undefined variable: aa in /home/dwright/public_html/Test/RoundedDIV.class.php on line 10, referer: http://localhost/~dwright/Test/
[Tue Jan 15 12:10:56 2008] [error] [client 127.0.0.1] PHP Notice: Undefined variable: aa in /home/dwright/public_html/Test/RoundedDIV.class.php on line 10, referer: http://localhost/~dwright/Test/
[Tue Jan 15 12:10:56 2008] [error] [client 127.0.0.1] PHP Notice: Undefined variable: aa in /home/dwright/public_html/Test/RoundedDIV.class.php on line 10, referer: http://localhost/~dwright/Test/
[Tue Jan 15 12:10:56 2008] [error] [client 127.0.0.1] PHP Notice: Undefined index: antialiasing in /home/dwright/public_html/Test/RoundedDIV.class.php on line 34, referer: http://localhost/~dwright/Test/
[Tue Jan 15 12:10:56 2008] [error] [client 127.0.0.1] PHP Notice: Undefined index: autopad in /home/dwright/public_html/Test/RoundedDIV.class.php on line 35, referer: http://localhost/~dwright/Test/
[Tue Jan 15 12:10:56 2008] [error] [client 127.0.0.1] PHP Notice: Undefined index: autopad in /home/dwright/public_html/Test/RoundedDIV.class.php on line 35, referer: http://localhost/~dwright/Test/
[Tue Jan 15 12:10:56 2008] [error] [client 127.0.0.1] PHP Notice: Undefined index: autopad in /home/dwright/public_html/Test/RoundedDIV.class.php on line 35, referer: http://localhost/~dwright/Test/

  2. Re: Undefined variable error   Reply   Report abuse  
Picture of Jon Gjengset Jon Gjengset - 2008-01-15 21:00:00 - In reply to message 1 from David Wright
Ah, found the problem =)
Just forgot to change the constructor to reflect the changes in parameter passing behaviour..
Should be fixed now =)