Thread: Class Parameter

  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Rep Power

    Class Parameter

    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.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jul 2003
    Rep Power
    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.
  4. #3
  5. Sarcky
    Devshed Supreme Being (6500+ posts)

    Join Date
    Oct 2006
    Pennsylvania, USA
    Rep Power
    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.

IMN logo majestic logo threadwatch logo seochat tools logo