SOLVED API Failure When Switching PHP Version

Evil

Registered
Oct 25, 2018
2
0
1
United States
cPanel Access Level
Root Administrator
I am trying to switch to PHP 7.2 and when I try either 7.1 or 7.2 it say the following:

API failure: Can't call method "get_default_string" on an undefined value at /usr/local/cpanel/Cpanel/WebServer/Supported/apache.pm line 345.

I am able to use the other PHP versions fine, it is only happening with 7.1 and 7.2
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,227
463
Hello @Evil,

It looks like you may have a support ticket open on this topic (#10570923). Is that correct? If not, could you open a ticket and let me know the ticket number?

Thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,227
463
Hello @Evil,

You're very welcome. For anyone else browsing this thread, the issue stemmed from the installation of an unsupported RPM from the OS (mod_php71). Removing that RPM and reinstalling the ea-php71 package solved the issue.

Thank you.