I don't understand this error message:undefined method stdClass::AddAction()

Login or register to post comments
3 replies [Last post]
vargasandor's picture
Offline
Joined: 03/10/2010

Hello All!

Sometimes, when I create new functions in an allready sophisticated php file, calling that new function, which is similary to the other allready existing there, so nothing new, calling it from the Form_Create basic function, I receive the following error:

Fatal error: Call to undefined method stdClass::AddAction() in C:\Program Files\wamp\www\cardemoworld\modelpage.php on line 4798

Simply, I cannot understand why it became undefined the StdClass.
If I do not invoke that function, everything goes well.

Please advice me, what am I doing wrong?

Thank You,
Sanyi.

Offline
Joined: 04/22/2009

Hello Sanyi,

Can you give an example? I guess it is the way how you call the method which is the problem.

Cheers

Helge

alex94040's picture
Offline
Joined: 11/06/2008

You're most likely calling AddAction() on an object that does not support it. Take a look at your "$obj = new Blah()" call that instantiates the object you're trying to add an action to. Make sure that Blah is a QControl :)

vargasandor's picture
Offline
Joined: 03/10/2010

It surely is a QControl, so it is probably the calling incorrect, but I do not see why.
For the moment I solved the problem avoiding the AddAction, but as soon as I will have some time for it I will be back with code and info.
Thank You for Your time and help.
Sanyi.