4.0- Unable To Create Patient After DB Import

mike-h30 wrote on Sunday, March 27, 2011:

After I import my DB and run sql_upgrade.php and acl_upgrade.php I am unable to create a new patient with my database on OpenEMR 4.0.  I am able to update data on existing patients but just unable to create a new patient.  After entering the required fields for creating a new patient, when I click on the “create new patient” button, nothing happens.  I tested a separate copy of a fresh download of OpenEMR 4.0 and I am able to create new patients there.  I am just not able to create patients after I import my DB and run SQL and ACL upgrade scripts.  Does anyone have an idea of where my trouble might be?  Is this a file permissions issue or DB issue?  Thanks.

-Mike

bradymiller wrote on Sunday, March 27, 2011:

Hi,

Anything showing up in the php error log or the browser javascript error log?

-brady

mike-h30 wrote on Sunday, March 27, 2011:

Hi Brady,

Below are the Apache and Firefox error logs.  I am using FireFox 4.  I am going to take a look at new.php line 369 and see if I can tell what is going on.  Thanks.

FireFox’s Error Log ( at the time I click the “create new patient” button.)

Error: errMsgs is not defined
Source File: http://192.168.1.31/openemr/interface/new/new.php              Line: 369

Apache Error Log ( portion of Apache’s error log at the time I click on the “create new patient” button.)

   PHP Notice:  Undefined variable: sanitize_all_escapes in /srv/www/htdocs/openemr/interface/globals.php on line 56, referer: http://192.168.1.31/openemr/interface/main/main_screen.php?auth=login&site=default
   PHP Notice:  Undefined index:  enable_auditlog in /srv/www/htdocs/openemr/library/log.inc on line 485, referer: http://192.168.1.31/openemr/interface/main/main_screen.php?auth=login&site=default
   PHP Notice:  Undefined index:  enable_auditlog in /srv/www/htdocs/openemr/library/log.inc on line 485, referer: http://192.168.1.31/openemr/interface/main/main_screen.php?auth=login&site=default
   PHP Notice:  Undefined index:  enable_auditlog in /srv/www/htdocs/openemr/library/log.inc on line 485, referer: http://192.168.1.31/openemr/interface/main/main_screen.php?auth=login&site=default
   PHP Notice:  Undefined index:  enable_auditlog in /srv/www/htdocs/openemr/library/log.inc on line 485, referer: http://192.168.1.31/openemr/interface/main/main_screen.php?auth=login&site=default
   PHP Notice:  Undefined variable: ignoreAuth in /srv/www/htdocs/openemr/interface/globals.php on line 356, referer: http://192.168.1.31/openemr/interface/main/main_screen.php?auth=login&site=default

mike-h30 wrote on Sunday, March 27, 2011:

Brady,

If I comment out the code below from /interface/new/new.php,  I am able to create a new patient with my OpenEMR DB.  I am getting closer.  I’ll keep looking as to why my OpenEMR DB does not work with this code.

if ($GLOBALS) {
  require(“new_comprehensive.php”);
  exit;
}