On Wed, Jan 16, 2002 at 06:09:12PM +0100, Markus Geiger wrote: > Hi! > > I am experiencing strange problems with the mgd_get_person() > function. The function _sometimes_ fails and returns the error > "Object does not exist" with no good reason at all:
Check type of variable that you pass in mgd_get_person() function by gettype($var). It may be "string", even if you see only number in it. In this case mgd_get_person() tried to find person record by its name. Emile, may be more useful would be make usual mgd_get_person_by_name()? :) > > From my debug log: > 2002-01-15 19:43.32 Success mgd_get_person # 23598 () > 2002-01-15 19:43.32 Success mgd_get_person # 23123 () > 2002-01-15 19:43.33 Success mgd_get_person # 23123 () > 2002-01-15 19:43.34 Error mgd_get_person # 23598 (Object does not exist) > 2002-01-15 19:43.38 Success mgd_get_person # 23594 () > > You can see that person # 23598 exists. The error also occurs > when I try to get other person objects of which all exist > in the database. > > Unfortunately I haven't found a way to reproduce the error yet. > > Although the error is very unlikely (my debug log registered about 100,000 > successful calls while about 110 failed, that is 99,9% reliability) I am > still searching for an explanation... > > (using apache 1.3.20 / php 4.0.6 / mid 1.4.2) > > Did anyone experience similar problems? > > > Markus > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Sergei Dolmatov. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
