Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED API Failure When Switching PHP Version

Discussion in 'EasyApache' started by Evil, Oct 26, 2018.

  1. Evil

    Evil Registered

    Joined:
    Oct 25, 2018
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,331
    Likes Received:
    2,161
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Evil

    Evil Registered

    Joined:
    Oct 25, 2018
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    Problem solved, thanks Michael. :)
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,331
    Likes Received:
    2,161
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice