Everything in our installation works fine with the exception of a recurring error, which we would like to fix.
When displaying Campaigns and picking any campaign, we get an error in the display for the Target list and e-mail marketing entry even though these exist and the campaigns run successfully via that campaign wizard.
The error is ‘Database Failure - please refer to suitecrm log for details’. I have seen other posts with similar issues but in different areas of the app.
The log file entries that relate are below;
where prospect_lists.deleted=0) ORDER BY prospect_lists.name asc LIMIT 0,10: MySQL error 1250: Table ‘prospect_lists’ from one of the SELECTs cannot be used in global ORDER clause
Thu Mar 23 10:16:47 2023 [3812][1][FATAL] [ListView::processUnionBeans] . Database failure. Please refer to suitecrm.log for details.
Thu Mar 23 10:16:49 2023 [3812][1][FATAL] Mysqli_query failed.
Thu Mar 23 10:16:49 2023 [3812][1][FATAL] Error retrieving Campaign list: Query Failed: (SELECT prospect_lists.id , prospect_lists.name , prospect_lists.description , prospect_lists.list_type , prospect_lists.assigned_user_id , ‘prospectlists’ panel_name FROM prospect_lists INNER JOIN prospect_list_campaigns ON prospect_lists.id=prospect_list_campaigns.prospect_list_id AND prospect_list_campaigns.campaign_id=‘da418580-3a7c-a7e0-3ad4-6419ea21764e’ AND prospect_list_campaigns.deleted=0
** where prospect_lists.deleted=0) ORDER BY prospect_lists.name desc LIMIT 0,10: MySQL error 1250: Table ‘prospect_lists’ from one of the SELECTs cannot be used in global ORDER clause**
Thu Mar 23 10:16:49 2023 [3812][1][FATAL] [ListView::processUnionBeans] . Database failure. Please refer to suitecrm.log for details.
Thu Mar 23 10:16:53 2023 [3812][1][FATAL] Mysqli_query failed.
Thu Mar 23 10:16:53 2023 [3812][1][FATAL] Error retrieving Campaign list: Query Failed: (SELECT prospect_lists.id , prospect_lists.name , prospect_lists.description , prospect_lists.list_type , prospect_lists.assigned_user_id , ‘prospectlists’ panel_name FROM prospect_lists INNER JOIN prospect_list_campaigns ON prospect_lists.id=prospect_list_campaigns.prospect_list_id AND prospect_list_campaigns.campaign_id=‘da418580-3a7c-a7e0-3ad4-6419ea21764e’ AND prospect_list_campaigns.deleted=0
** where prospect_lists.deleted=0) ORDER BY prospect_lists.list_type asc LIMIT 0,10: MySQL error 1250: Table ‘prospect_lists’ from one of the SELECTs cannot be used in global ORDER clause**
Thu Mar 23 10:16:53 2023 [3812][1][FATAL] [ListView::processUnionBeans] . Database failure. Please refer to suitecrm.log for details.
Thu Mar 23 10:16:57 2023 [3812][1][FATAL] Mysqli_query failed.
Thu Mar 23 10:16:57 2023 [3812][1][FATAL] Error retrieving Campaign list: Query Failed: (SELECT prospect_lists.id , prospect_lists.name , prospect_lists.description , prospect_lists.list_type , prospect_lists.assigned_user_id , ‘prospectlists’ panel_name FROM prospect_lists INNER JOIN prospect_list_campaigns ON prospect_lists.id=prospect_list_campaigns.prospect_list_id AND prospect_list_campaigns.campaign_id=‘da418580-3a7c-a7e0-3ad4-6419ea21764e’ AND prospect_list_campaigns.deleted=0
** where prospect_lists.deleted=0) ORDER BY prospect_lists.name desc LIMIT 0,10: MySQL error 1250: Table ‘prospect_lists’ from one of the SELECTs cannot be used in global ORDER clause**
Thu Mar 23 10:16:57 2023 [3812][1][FATAL] [ListView::processUnionBeans] . Database failure. Please refer to suitecrm.log for details.
This is SuiteCRM v 8.2.3 PHP 7.4.3 Windows based installation on Apache and MySQL v 8.0.31 within WAMP.
Screenshot below.
I don’t want to dive in and start changing code in line with some of the other post suggestions without checking with the community that this will fix the problem.
Thanks for any help in advance.