Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder MrBiggZ's Avatar
    Join Date
    Apr 2005
    Location
    Indianapolis IN
    Posts
    276
    Thanks
    39
    Thanked 0 Times in 0 Posts

    Question This is a new on to me: Call to a member function CellValue() on a non-object

    Greetings!

    I got this nifty little error
    Fatal error: Call to a member function CellValue() on a non-object in /var/www/mrbiggz.kicks-***.net/httpdocs/font-test/test.html on line 98
    Lines 97-98 respectively in the script are
    $cellData = $FontName[1] . '&nbsp;&nbsp;<a href="#" rel="toggle[' . strtolower($FontName[0]) . ']" data-openimage="minus.png" data-closedimage="plus.png"><img src="minus.png" border="0" /></a>';
    $ftm->CellValue($tblRow, $col, $cellData );


    The function in the class CellValue looks like this
    function CellValue($row, $col, $value='')
    {
    if ($row < 0|| $col < 0){$this->SpeakError("WhisperTable::CellValue() -- invalid row/col indicated");}
    $this->Expand($row, $col);
    $this->TheTable['rows'][$row]['cols'][$col]['value'] = $value;
    }


    To the best of my knowledge all my quotes match up. Not really sure what causes this fatal error. Then again I've never seen this error before! Please help! Could you please explain to me what I did wrong so the next time I see something like this I have an idea of what to look for?!

    Thanks in advance!

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Where do you define $ftm?
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Regular Coder MrBiggZ's Avatar
    Join Date
    Apr 2005
    Location
    Indianapolis IN
    Posts
    276
    Thanks
    39
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by _Aerospace_Eng_ View Post
    Where do you define $ftm?
    Sir .. I thank you and so do my blind eyes! Four lines of my code were missing! Not sure how .. but the vanished some where along the line! I put them back in and vio'la it works!!!

    I guess this was the most important part!
    Code:
    $ftm = new WhisperTable('fontMenu');


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •