1. Kedar Member

    Call to undefined function json_encode

    Topic geplaatst op: 12-09-2018 om 10:30

    Could you please confirm if json is installed and set to be accessible? My PHP version is 7.2.
    I am getting following error during ajax request for json dataType:

    Fatal error: Uncaught Error: Call to undefined function json_encode() in test.php

    Thanks

    Reageer
  2. Alex Versio medewerker
    Reactie geplaatst op: 12-09-2018 om 10:40

    Hi Kedar,

    In directadmin under "PHP Selector" you have to enable the json module and save the settings.

    Vond u dit antwoord nuttig?

  3. Kedar Member
    Reactie geplaatst op: 12-09-2018 om 10:43

    Awesome...Works now.
    Thanks Alex.

    Vond u dit antwoord nuttig?