You are here: Re: What does "Call to a member function on a non-object" mean? « PHP Programming Language « IT news, forums, messages
Re: What does "Call to a member function on a non-object" mean?

Posted by Tony Marston on 03/24/06 11:03

This is because you are doing something like
$result = $object->function($arg);
and $object is not an actual object. Perhaps you have not initialised it
yet, or miss-spelled it?

--
Tony Marston

http://www.tonymarston.net



"Stephen Kay" <sk@karma-lab.nospam.com> wrote in message
news:C0485985.5A1BB%sk@karma-lab.nospam.com...
> Getting an error like this, when trying to call a function in another php
> module from a different one:
>
> Fatal error: Call to a member function on a non-object in
> /home/mysite/public_html/forumtr/admin/functions.php
>
> Thanks for any info.
>
> --
> Stephen Kay
> Karma-Lab sk@karma-lab.NOSPAM.com
> ^^^^^^^
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация