Can't save encounter, new user and facilities

question

(syedyawar) #1

Dear Openemr community, I am Unable to save new user, encounter and facilities. Whenever i insert data and click save button nothing happens. I had also seen previous threads and worked on instructions but nothing working. I also have correct php.ini configuration according to Openemr. I have Haier Laptop in which had xampp server with php 5.6 and openemr 5.0.1.
I don’t know what to do, anyone can help @brady.miller .Appreciated


(Nilesh Hake) #2

@syedyawar

Please share your xampp apache log file then I can point you out whats exact issue to save data.


(syedyawar) #5

::1 - - [27/Jul/2019:15:11:24 +0300] “GET /openemr/library/js/fancybox-1.3.4/jquery.fancybox-1.3.4.pack.js HTTP/1.1” 404 1306 “http://localhost/openemr/interface/forms/newpatient/new.php?autoloaded=1&calenc=” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36”


(syedyawar) #6

::1 - - [27/Jul/2019:15:16:30 +0300] “GET /openemr/interface/themes/themeBuilder.php HTTP/1.1” 200 67 “http://localhost/openemr/interface/usergroup/usergroup_admin.php” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36”
::1 - - [27/Jul/2019:15:16:32 +0300] “GET /openemr/interface/usergroup/usergroup_admin_add.php HTTP/1.1” 200 25045 “http://localhost/openemr/interface/main/tabs/main.php” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36”
::1 - - [27/Jul/2019:15:16:33 +0300] “GET /openemr/interface/themes/themeBuilder.php HTTP/1.1” 200 67 “http://localhost/openemr/interface/usergroup/usergroup_admin_add.php” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36”


(Nilesh Hake) #7

@syedyawar

Log did not telling anything , there might other error like JavaScript.


(syedyawar) #8

thanks for your reply .it didnot not show any error what error can be there like javascript. any posibilities


(Nilesh Hake) #9

@syedyawar

I have received your log file in mail please ignore my last comment and see my below comment from your log file.

Below are the three error I have found from your log file:

  1. First Error from log file:
    PHP Fatal error: Call to undefined function js_escape() in C:\xampp\htdocs\openemr\interface\forms\newpatient\common.php on line 66, referer: http://localhost/openemr/interface/main/tabs/main.php

This error might be occurred because of incorrect upgrade of OpenEMR or if you customized some code that code might be missing like “js_escape()” function is missing therefore your save is not working for encounter.

  1. Second error from log file

PHP Fatal error: require_once(): Failed opening required ‘/options.inc.php’ (include_path=’\xampp\php\PEAR’) in C:\xampp\htdocs\openemr\interface\forms\newpatient\common.php on line”

Code is not able to find the Options.inc.php file that should be located in /openemr/library/Options.inc.php file

  1. Third error from log file
    [Sat Jul 27 12:43:17.696186 2019] [:error] [pid 14752:tid 1992] [client ::1:57882] SQL Error with statement:query failed: Select code,long_desc from facility_data Where facility_type_desc = ‘Chief Complain’–Table ‘openemr.facility_data’ doesn’t exist==>C:\xampp\htdocs\openemr\interface\forms\newpatient\common.php at 588:sqlStatement, referer: http://localhost/openemr/interface/main/tabs/main.php

Code tried to look facility_data table but in your OpenEMR database there is no such table therefore your facility data is not saving


(syedyawar) #10

thank you @Nilesh_Hake I will look into these issues