Symptoms

When loading domains, the default page is returned from ea-nginx, and attempts to rebuild the configuration report the following error.

User “cptest”: Undefined subroutine &Cpanel::Server::Type::is_wp_squared called at /usr/local/cpanel/scripts/ea-nginx line 2026.

 

Cause

The CloudLinux version of EA-NGINX has been updated to version 1.29.3-3.el7.cloudlinux. This version of the script is attempting to use a function that does not exist in 110:

[root@server ~]# grep is_wp_squared /scripts/ea-nginx
    my $is_wp_squared = Cpanel::Server::Type::is_wp_squared() ? 1 : 0;

The CloudLinux team has confirmed they have opened case MAXWS-947 on their end to publish a resolution to this issue. 

Cloudlinux changelog: ea-nginx

 

Resolution

In the meantime, you can downgrade the ea-nginx package to work around this issue.

yum downgrade ea-nginx

You can also version lock the ea-nginx package to prevent further updates until the issue is resolved.

How to version lock RPM packages