Email link creates unformatted compose email screen - cache issue

I’m on 7.11.21 - upgraded from 7.11.10 (i think) but I also moved hosts from hostgator to digitalocean. I had to reconfigure some settings and for the most part everything worked. But I just found that if I create a new Lead and save it and then click the email address to send an email, it brings up the Compose Email screen as expected (fully formatted correctly) but the To field is blank. If you fill in the To field and send, it brings up an unformatted text based Compose Email screen. If you hit Cancel, it brings up the same unformatted Compose Email screen.

These errors show in the logs.
Fri Sep 24 08:07:42 2021 [2253][1][ERROR] EmailController::action_getFromFields() expects an outbound email id as stored option of inbound email (6edf2fa9-8cd6-565c-4ae9-5f85cb8e91ad) but it isn’t valid.
Fri Sep 24 08:07:42 2021 [2253][1][ERROR] EmailController::action_getFromFields() panic: An error occurred! (203)
Fri Sep 24 08:07:42 2021 [2253][1][ERROR] Incorrect “replay to” format found: editedemailaddress@gmail.com
Fri Sep 24 08:07:42 2021 [2253][1][ERROR] EmailController::action_getFromFields() error: 205
Fri Sep 24 08:07:42 2021 [2253][1][ERROR] Signature html not found!
Fri Sep 24 08:07:42 2021 [2253][1][ERROR] Signature plain text not found!

I was checking settings and verified all email settings. On a whim, I decided to log out, clear my browser (Brave) cache (shift F5) and log back in. I go to Leads and the record I created previously, click the email, and the To field is populated! So I tried from a different browser and the identical symptoms occurred (both with fails and successes as above).

I was thinking it was a browser cache issue so I kept clearing the cache to reproduce but that was a false positive.
It appears that the suitecrm cache is the issue and it takes Logging Out and Logging In to fix the email link.
If I create a new lead and then immediately click the email on the screen, I can reproduce it.
If I create a new lead, log out and log in (without clearing browser cache) and then go back to the View Leads list and then click the email - it works correctly.
I then happened to click the Recently Viewed lead (same lead that worked prior) and it loads the Lead and I click the email link and it fails. But if I go back to the Lead list and do the same on the “real” lead, it works. So somewhere I have a screwed up cache. I have run a Quick Repair and Rebuild, reset the relationships, cleared out all the cache and js files. I’ve reset permissions. I’ve run chperms.php. The problem still occurs.

Anybody have any ideas here? I’m looking for any kind of guidance.

Try other repairs from Admin / Repairs

Namely, rebuilding all things Javascript

Hi, I have run all the javascript repairs multiple times. Ended up being a missing folder and files for tinymce in the includes folder structure.