November 5th, 2012, 05:28 AM
I've having this error:
Catchable fatal error: Argument 1 passed to TestVBGetCustomerInfo::GetCustomerInfo_XML() must be an instance of GetCustomerInfo_XML, array given, called in /getcustomerinfo.php on line 31 and defined in /TestVBGetCustomerInfo.php on line 52
any idea, thanks.
November 5th, 2012, 07:58 AM
Sorry but my clairvoyance abilities are not functioning today. See ManiacDan's New User Guide to learn how to post a proper question and for some debugging tips.
There are 10 kinds of people in the world. Those that understand binary and those that don't.
November 5th, 2012, 09:35 AM
Well...I have an idea.
In /TestVBGetCustomerInfo.php on line 52 you define the function GetCustomerInfo_XML(). That function requires that its first argument be a GetCustomerInfo_XML object. You've given it an array when you called it in /getcustomerinfo.php on line 31.
Of course, I just read the error back to you, which is really all we can do with just an error message and no code.
HEY! YOU! Read the New User Guide and Forum Rules
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin
"The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002
Think we're being rude? Maybe you asked a bad question
or you're a Help Vampire.
Trying to argue intelligently? Please read this.