Hi Muthu, Am Mittwoch, den 29.09.2010, 01:21 +0530 schrieb Ap.Muthu: > Further investigation reveals that the value of $create_id at line 458 in > the said file: > include/care_api_classes/class_gui_person_show.php > is empty (NULL) for the first person entry. > This will make the value of $buffer empty (NULL) as well. > > At this point only $glob_obj->config['person_id_nr_init'] = 10000000 (the > value set in the care_config_global table) > $_POST Array is empty here. > $_REQUEST = array(11) { > ["sid"]=> string(32) "1fb7f38b20c27da217c4942de07dd67a" > ["lang"]=> string(2) "en" > ["pid"]=> string(1) "0" > ["from"]=> string(5) "entry" > ["newdata"]=> string(1) "1" > ["target"]=> string(5) "entry" > ["ck_config"]=> string(41) "CFG4ca2267d1c1a30.11511000 1285695101.cfg" > ["ck_sid1fb7f38b20c27da217c4942de07dd67a"]=> string(53) > "T1YAAA==#QQiI030jFNwenf18ks/rphj2nQZgN+g7vmK5Am/OLNA=" > ["ck_login_logged1fb7f38b20c27da217c4942de07dd67a"]=> string(4) "true" > ["ck_2level_sid1fb7f38b20c27da217c4942de07dd67a"]=> string(53) > "OHsAAA==#sBQKlHBTNjZy73vM+LXTHqBp80qxcgtPIsCLbNJeiR0=" > ["aufnahme_user1fb7f38b20c27da217c4942de07dd67a"]=> string(12) "Doctor > Super" > }
So I can read out here that you still have an issue by register the very first patient to your system? Interesting... > > > Lines 356 to 360 have no final "else" - is it optional? > you mean this "construct"?: <---------------> if($civil_status=="single") $sCSBuffer = $LDSingle; elseif($civil_status=="married") $sCSBuffer = $LDMarried; elseif($civil_status=="divorced") $sCSBuffer = $LDDivorced; elseif($civil_status=="widowed") $sCSBuffer = $LDWidowed; elseif($civil_status=="separated") $sCSBuffer = $LDSeparated; <---------------> Well, such nice things are everywhere. Guess you know the answer. > This must be tested after clearing the cache in the browser. > > Regards, > Ap.Muthu > > > > SVN 6820 Fresh Install: > > Create "super user" as Medical Consultant role (_a_0_all) and assign all > > depts. > > Login as "super user" > > Create a new patient first as person: > > Although data gets saved in the table with the correct PID, an error is > > raised that "an invalid PID caused the data not to be saved in the > > databank"! > > The exact error message is: > > > > Invalid PID number or the data is not available from the databank! Please > > report this to i...@care2x.org. Thank you. > > > > Second person (onwards) gets saved correctly and does not display any > > error. > > > > This error is due to execution of line 463 in file: > > include/care_api_classes/class_gui_person_show.php > > > > Analysing the said file, we find that there are 64 opening curly braces > > and > > only 63 closing braces. > > It appears that the lines 462 to 464 are a dangling orphan "else" > > construct > > with no parent "if". > > > > Regards, > > Ap.Muthu > > > > > > > > ------------------------------------------------------------------------------ > > Start uncovering the many advantages of virtual appliances > > and start using them to simplify application deployment and > > accelerate your shift to cloud computing. > > http://p.sf.net/sfu/novell-sfdev2dev > > _______________________________________________ > > Care2002-developers mailing list > > Care2002-developers@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/care2002-developers > > > > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Care2002-developers mailing list > Care2002-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/care2002-developers -- -- -------------------------------------------- CARE2X - free Integ Hospital Info System https://sourceforge.net/projects/care2002/ http://www.care2x.org ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Care2002-developers mailing list Care2002-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/care2002-developers