Symptoms
When attempting to publish a site with Site Publisher in cPanel, you encounter a message similar to one of the following.
Cannot read properties of undefined (reading 'track')
A problem has occurred: window.mixpanel is undefined
Description
This issue occurs when the cpanel-analytics
package has been removed. This package provides "Configure Analytics," which is mandatory for all servers.
Workaround
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Install the
cpanel-analytics
package.- CentOS 7, CloudLinux 6/7
yum install cpanel-analytics
- CloudLinux 8/9, AlmaLinux 8/9, Rocly Linux 8/9
dnf install cpanel-analytics
- Ubuntu 20.04
apt install cpanel-analytics
- CentOS 7, CloudLinux 6/7