Note the ‘Submit Form’ for SOAP submits forms with following:
<form name=“soap” method=“post” action="/openemr/interface/forms/soap/save.php"
Here’s the file/line that build this:
openemr/interface/forms/soap/templates/general_new.html:<form name=“soap” method=“post” action="{$FORM_ACTION}/interface/forms/soap/save.php"
I haven’t made any customizations. However, I did upgrade recently from 3.2 to 4. The staff didn’t use the SOAP form previously, so I don’t know if it worked in the old version.
Try removing all files from the following directory:
/srv/www/htdocs/openemr/interface/main/calendar/modules/PostCalendar/pntemplates/compiled/
(this should not break anything, but to be safe recommend copying all the files from above directory into a backup directory before removing them)
Unfortunately, the saga continues. I removed everything from that directory, but am getting the same error. “Object not found. The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated.”
Could there be some sort of issue between the /contrib/forms/soap2/ and interface/forms/soap/ directories?
Thanks for your continued help in resolving this issue.
This is an interesting problem. Lets try the following (to be safe, probably best to copy your production environment to a testing environment while trying to fix this issue):
1. again, remove all files from the following directory:
/srv/www/htdocs/openemr/interface/main/calendar/modules/PostCalendar/pntemplates/compiled/
2. modify srv/www/htdocs/openemr/contrib/forms/soap2/templates/general_new.html to be <form name=“soap” method=“post” action="{$FORM_ACTION}/interface/forms/soap/save.php"
Note, if this works, then there is a potentially nasty bug here that needs to be addressed(ie. do not enter any notes with this modification; just seeing if it makes it work). Let me know if this works or doesn’t work and can then go from there.
Well, I removed all files from /srv/www/htdocs/openemr/interface/main/calendar/modules/PostCalendar/pntemplates/compiled/
Then, I modified srv/www/htdocs/openemr/contrib/forms/soap2/templates/general_new.html to <form name=“soap” method=“post” action="{$FORM_ACTION}/interface/forms/soap/save.php"
The result was a 403 error on the SOAP form.
Some more digging on my part (perhaps it’s related somehow): The following forms are not working when I submit:
SOAP
Prior Authorization
Review of Systems Check
All the other forms work, including a custom form I inserted (called wellness_form). I compared the “general_new.html” file in each /contrib/forms/XXXX/templates/ directory to see look for differences in the form name=, method=, and action=. They were all the same: action="{$FORM_ACTION}/interface/forms/XXXX/save.php"
I didn’t keep the old interface/globals.php file. The new globals.php is there with a creation date that coincides with the date I did the upgrade. My backup of the old version globals.php file has a much older creation date. The interface appears to be the 4.0 version as well.
I also upgraded the database when I did the upgrade.
When I grep, I get the following results:
grep -R “contrib/forms” /srv/www/htdocs/openemr
/srv/www/htdocs/openemr/interface/fax/fax_dispatch.php: // The following is cloned from contrib/forms/scanned_notes/new.php:
/srv/www/htdocs/openemr/interface/main/calendar/modules/PostCalendar/pntemplates/compiled/%%-51^%%-519020742^general_new.html.php: compiled from /srv/www/htdocs/openemr/contrib/forms/soap2/templates/general_new.html */ ?>
/srv/www/htdocs/openemr/interface/main/calendar/modules/PostCalendar/pntemplates/compiled/%%-10^%%-1002524454^general_new.html.php: compiled from /srv/www/htdocs/openemr/contrib/forms/prior_auth/templates/prior_auth/general_new.html */ ?>
/srv/www/htdocs/openemr/contrib/util/language_translations/filterDirectories.txt:openemr/contrib/forms
Now lets try the following to catch which script is making the bad call:
1. remove all files from the following directory:
/srv/www/htdocs/openemr/interface/main/calendar/modules/PostCalendar/pntemplates/compiled/
2. Move the contrib/forms directory somewhere else (can put it back later)
3. For the following forms, open them up and try to save them:
SOAP
Prior Authorization
Review of Systems Check
(of course, you will likely get errors or white screen of death; this is expected)
I followed your instructions re: moving the /contrib/ directory. When I went to the broken forms, i.e. SOAP, they did not show up. In other words, there was no form to save.
Here is the output from the error log after I moved the /contrib/ directory: