Undefined constant error (Solved)

Hello I have openemr Version Number: v5.0.1 (7)
Linux Mint 19.1

Solved: Name of Context should not have any spaces. Example: Chief Compliant = Error. Changed to Chief_Complaint = Good so far

When I went to Nation Notes and clicked the screen displayed NO SUCH CONTEXT NAMEChief. This error would be for a few Nation Notes. I have the same setup with xampp on a different computer and it has been working but for some reason but this one is not.

Updated: Added pictures. Not All Nations Notes were affected, only a few

Error were below.

[Mon Jul 29 11:57:12.642915 2019] [php7:warn] [pid 5186] [client 192.xxx.x.xxx:xxxxx] PHP Warning: Use of undefined constant CURRENT_ACTION - assumed ‘CURRENT_ACTION’ (this will throw an Error in a future version of PHP) in /var/www/openemr/interface/patient_file/encounter/forms.php on line 886, referer: http://192.xxx.x.xxx/
[Mon Jul 29 11:57:12.642976 2019] [php7:warn] [pid 5186] [client 192.xxx.x.xxx:xxxxx] PHP Warning: Use of undefined constant id - assumed ‘id’ (this will throw an Error in a future version of PHP) in /var/www/openemr/interface/patient_file/encounter/forms.php on line 886, referer: http://192.xxx.x.xxx/
[Mon Jul 29 11:57:12.643003 2019] [php7:warn] [pid 5186] [client 192.xxx.x.xxx:xxxxx] PHP Warning: Use of undefined constant id - assumed ‘id’ (this will throw an Error in a future version of PHP) in /var/www/openemr/interface/patient_file/encounter/forms.php on line 890, referer: http://192.xxx.x.xxx/
[Mon Jul 29 11:57:12.643457 2019] [php7:warn] [pid 5186] [client 192.xxx.x.xxx:xxxxx] PHP Warning: Use of undefined constant docdate - assumed ‘docdate’ (this will throw an Error in a future version of PHP) in /var/www/openemr/interface/patient_file/encounter/forms.php on line 902, referer: http://192.168.1.186/
[Mon Jul 29 11:57:12.643493 2019] [php7:warn] [pid 5186] [client 192.xxx.x.xxx:xxxxx] PHP Warning: Use of undefined constant url - assumed ‘url’ (this will throw an Error in a future version of PHP) in /var/www/openemr/interface/patient_file/encounter/forms.php on line 902, referer: http://192.xxx.x.xxx/

Thank you