On October 19, 2021, we have enabled single-sign-on for our Plesk Support Center to provide a seamless login/account experience. This implies that you’ll be able to use a single account across any of our web-facing properties.
If you had already registered your account at Plesk 360 (formerly known as My Plesk) please use one for login. Otherwise please re-register it using the same email address as your existing Zendesk login (support account). It’s essential that you use the same email address on our support center to ensure that your tickets stay attached to the same account.

Unable to install WordPress using Plesk WordPress Toolkit on CloudLinux : Call to undefined function json_encode()

Follow

Comments

9 comments

  • Avatar
    Unknown User

    Need to ensure cagefs is updated / restart your alt-php service or you may experience a post install issue of WordPress saying the mysql extension is missing

    Example:

    cagefsctl --force-update-etc
    cagefsctl --force-update
    cagefsctl --rebuild-alt-php-ini
    service alt-php71-fpm restart

    0
    Comment actions Permalink
  • Avatar
    Lars-Erik H.Bergland

    You dont need to log in to ssh, you can go to Tools & Settings > PHP Settings and enable mbstring, json and mysqli there :)

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello @Lars-Erik,

    Thank you for notice.

    This article's author will review it soon.

    0
    Comment actions Permalink
  • Avatar
    Boss

    Do you have some resolution for CloudLinux 6?

     

    0
    Comment actions Permalink
  • Avatar
    Denis Bykov

    @Boss

    We have yet to encounter this issue on CloudLinux 6, but the same logic must apply - enable required PHP extensions.
    If the issue still persists, provide us with the new error message from '/var/log/plesk/panel.log'.

    0
    Comment actions Permalink
  • Avatar
    Lenusch

    Hi, 

    i have this: 

    • CloudLinux 7.x with LVE Manager and CageFS support is used

    • alt-php is enabled on the affected domain

    and after moving to other Server via migrator all WP Instances are not Working anymore with WP Toolkit. 

    No Chance... I tried your Support Articles. Whats wrong here? 

    stderr:
    Fehler beim Aufbau einer Datenbankverbindung.
    {"err_code":true,"err_message":"Fehler beim Aufbau einer Datenbankverbindung."}

    [2019-07-22 17:52:11.023] ERR [extension/wp-toolkit] An error occurred while executing WP-CLI command for instance: WordPress instance #7 ('')
    [2019-07-22 17:52:11.442] ERR [extension/wp-toolkit] Failed to generate screenshot of instance #7: URL of instance #7 is empty

    0
    Comment actions Permalink
  • Avatar
    Lenusch

    Cloudlinux Support sais its a bug with you as your toolkit is not using right PHP Instance.... 

    I can't open Ticket, as i am not registered with you directly.. .

    0
    Comment actions Permalink
  • Avatar
    Ekaterina Babenko

    Hi Lenor,

    The error provided is not enough to understand the cause of the issue: we need to investigate it deeper. If it is not possible to submit request, you either can contact your Hosting Provider or purchase support subscription and then contact support team:
    https://support.plesk.com/hc/en-us/articles/213953025-How-to-get-support-directly-from-Plesk-

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request