JSON error

Discussion in 'aMember Pro v.4' started by s_teachings, Dec 2, 2011.

  1. s_teachings

    s_teachings Member

    Joined:
    Jul 24, 2008
    Messages:
    32
    While installing v4.1.7 it seems to run through all the steps without a problem. However, when I click on any of the links on the last page of the installation process, it opens to a blank page.

    I checked my PHP error log and the last line reads:

    Code:
    PHP Fatal error:  Call to undefined function json_encode() in /var/www/html/amember/library/Am/Controller.php on line 190, referer: http://www.domain.com/amember/setup/index.php?step=5
    json.so is installed in the module directory, ini seems to load it.

    Any ideas how to solve this?
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Please check your PHP version.
  3. s_teachings

    s_teachings Member

    Joined:
    Jul 24, 2008
    Messages:
    32
    PHP is 5.2.17
  4. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
  5. s_teachings

    s_teachings Member

    Joined:
    Jul 24, 2008
    Messages:
    32
    The install of json was ok but when I took a closer look at the /etc/php.d/json.ini file, I noticed that it had

    Code:
    "extension=json.so"
    instead of

    Code:
    extension=json.so
    The quotes were messing everything up. Thanks for the reply.
  6. s_teachings

    s_teachings Member

    Joined:
    Jul 24, 2008
    Messages:
    32

Share This Page