I have a website on MODX Cloud which is running on 2.8.4 and I upgraded to PHP8 partly due to the requirement of the latest version of Commerce, however, the custom dashboard widget I was using appears to cause the dashboard to not load. It was working fine until the upgrade to PHP8.
The code that is in use is
The chunk is simply some HTML and inline styling which lists some quick links for clients to maintain their site. It is set as a widget type Inline PHP Widget and namespace Core.