@stephenwaite I only just completed the upgrade. However the client is getting an error when trying to upload a document to the patients
SQL Statement failed on preparation: Select pd.pid, Concat_Ws(‘, ‘, lname
, fname
) as name, pd.patient_groups, tplId.profile, tplId.member_of, tplId.recurring, tplId.event_trigger, tplId.period, tplId.modified_date as profile_date, tpl.* From patient_data
pd Join document_template_profiles
as ptd On pd.patient_groups LIKE CONCAT(’%’,ptd.member_of, ‘%’) And pd.pid = ? Join (Select * From document_template_profiles
) tplId On tplId.profile = ptd.profile And ptd.active = ‘1’ Join (Select id
, category
, template_name
, location
, template_content
, mime
, modified_date
From document_templates
) as tpl On tpl.id = tplId.template_id Group By pid
, category
, template_name
Order By lname
’
Query Error
ERROR: query failed: Select pd.pid, Concat_Ws(‘, ‘, lname
, fname
) as name, pd.patient_groups, tplId.profile, tplId.member_of, tplId.recurring, tplId.event_trigger, tplId.period, tplId.modified_date as profile_date, tpl.* From patient_data
pd Join document_template_profiles
as ptd On pd.patient_groups LIKE CONCAT(’%’,ptd.member_of, ‘%’) And pd.pid = ? Join (Select * From document_template_profiles
) tplId On tplId.profile = ptd.profile And ptd.active = ‘1’ Join (Select id
, category
, template_name
, location
, template_content
, mime
, modified_date
From document_templates
) as tpl On tpl.id = tplId.template_id Group By pid
, category
, template_name
Order By lname
Error: Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation ‘like’
/home/removed/public_html/openemr/src/Services/DocumentTemplates/DocumentTemplateService.php at 82:sqlStatement
/home/removed/public_html/openemr/src/Services/DocumentTemplates/DocumentTemplateService.php at 883:getPortalAssignedTemplates(1,1)
/home/removed/public_html/openemr/controllers/C_Document.class.php at 111:renderPortalTemplateMenu(1,-patient-,)
/home/removed/public_html/openemr/library/classes/Controller.class.php at 157:upload_action(1,31)
/home/removed/public_html/openemr/controller.php at 6:act(Array)