Upgrade from 7.12.4 to 7.12.7 Database failure

Upgraded from 7.12.4 yesterday to 7.12.7. Upgraded appeared to run normally.
We are on
Ubuntu 20.04.5
PHP 7.4
MySQL 8.0.31
Apache 2.4.41

Today I added a new Contact but the Account does not show the new Contact. It says
“Database failure. Please refer to suitecrm.log for details”

The log shows the following:
Tue Oct 25 08:32:16 2022 [340685][74637fbf-996c-2f1a-ec39-5903df3135eb][FATAL] Mysqli_query failed.
Tue Oct 25 08:32:16 2022 [340685][74637fbf-996c-2f1a-ec39-5903df3135eb][FATAL] Error retrieving Account list: Query Failed: (SELECT contacts.id , contacts.first_name , contacts.last_name , contacts.salutation , LTRIM(RTRIM(CONCAT(IFNULL(contacts.first_name,’’),’ ‘,IFNULL(contacts.last_name,’’)))) as name, contacts.primary_address_city , contacts.primary_address_state , contacts.phone_work , contacts.assigned_user_id , ‘contacts’ panel_name FROM contacts LEFT JOIN contacts_cstm ON contacts.id = contacts_cstm.id_c INNER JOIN accounts_contacts ON contacts.id=accounts_contacts.contact_id AND accounts_contacts.account_id=‘222807ea-f0d7-4d24-cb3b-5dcacdc267bf’ AND accounts_contacts.deleted=0

where contacts.deleted=0) ORDER BY contacts.last_name, contacts.first_name asc LIMIT 0,10: MySQL error 1250: Table ‘contacts’ from one of the SELECTs cannot be used in global ORDER clause

I also installed Elasticsearch and enabled the cron jobs on the host yesterday.

Thanks,

Todd

We’re running version 7.6.6 on Ubuntu 20.04 LTS.
Yesterday, we upgraded to MySQL 8.0.31 via apt-get and it broke our installation. When clicking on detail for a particular Account, the ajax pop-up was broken. When disabling ajax for that module, we would get just the basic information about the Account, but no Tasks, Meetings, Calls, Notes, etc. When creating a test call, could not associate to an Account. SugarBean.php throwing mysql errors. I didn’t have time to debug further. I simply reverted the VM to a snapshot and we’re back up and running. Thank god I took a snapshot.

The solution in the link provided work.

The solution being to comment out line 930 in the /data/SugarBean.php file like so.

//$query = ‘(’ . $query . ‘)’;

1 Like