Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2006
    Posts
    168
    Plugin Contributions
    0

    Default json error with zc 1.5 eventhough json installed

    Hi. I have a client that upgraded to zencart 1.5. In Admin login, he gets a blank page, and the debug error shows:

    [29-Feb-2012 11:06:53] PHP Fatal error: Call to undefined function json_encode() in /home/domain/domain.com/html/admin/includes/init_includes/init_admin_history.php on line 34


    Hi. I have checked my /etc/php.d/json.ini and have this: extension=json.so

    I also checked my php compile settings and I have json in there.

    Older versions of zencart appear to be working fine.

    We are running PHP 5.2.17 with litespeed

    Please advice.

    Thank you

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    18,138
    Plugin Contributions
    2

    Default Re: json error with zencart 1.5 eventhough json installed


  3. #3
    Join Date
    Jun 2006
    Posts
    168
    Plugin Contributions
    0

    Default Re: json error with zc 1.5 eventhough json installed

    Thanks but I already checked that page :)

    i believe it's the json error, but then we are running 5.2.17 and json is built in.

  4. #4
    Join Date
    Jan 2004
    Posts
    58,464
    Blog Entries
    3
    Plugin Contributions
    111

    Default Re: json error with zc 1.5 eventhough json installed

    If it's saying the function is undefined, then whatever instance of PHP your store is using doesn't have json available to it.
    It would seem as though you're editing the wrong files, or if you changed settings without restarting the PHP and/or Apache processes, then the changes won't be available yet.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Jun 2006
    Posts
    168
    Plugin Contributions
    0

    Default Re: json error with zc 1.5 eventhough json installed

    Thanks!! Got it fixed. I ended up recompiliing php. Original config was --enable-json=shared. I recompiled PHP 5.2.17 and change --enable-json=shared to just --enable-json.

    Weird... =enable-json=shared worked fine when we were using apache. with litespeed i'm not sure why it didn't work.

 

 

Similar Threads

  1. v150 Admin area blank- php fatal error json_encode, though JSON shows enabled in phpinfo()
    By mattgulden in forum Upgrading from 1.3.x to 1.5.x
    Replies: 2
    Last Post: 22 Feb 2012, 06:07 PM
  2. JSON undefined in internet explorer 6 and 7
    By lindanewbie in forum General Questions
    Replies: 1
    Last Post: 10 Mar 2011, 11:27 AM
  3. Some product attributes won't show up on live site, eventhough they're activated
    By lamajlooc in forum Setting Up Categories, Products, Attributes
    Replies: 10
    Last Post: 4 Aug 2008, 09:20 PM
  4. Installed testimonials.zip but error
    By aphro6677 in forum General Questions
    Replies: 3
    Last Post: 10 Dec 2006, 03:35 PM
  5. Error installed Zencart 1.3
    By darkswan in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 24 May 2006, 12:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •