Closed (fixed)
Project:
Ubercart AJAX Cart
Version:
5.x-1.0-beta4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
17 Nov 2008 at 09:36 UTC
Updated:
2 Dec 2008 at 03:13 UTC
I'm using Ubercart 1.3 and Ubercart Ajax Cart 1.0-beta4 and this error comes up (via firebug console) every time I add an item to cart. The add to cart button is replaced by spinning wheel, but after that, nothing happens.
Actual error message:
Fatal error: Call to undefined function json_encode() in /chroot/home/mysite.com/sites/all/modules/ubercart/contrib/uc_ajax_cart/uc_ajax_cart.module on line 308
Oh, and this only occurs on my live site, my localhost copy is working just fine. Does anyone have also this problem? How can I fix this?
Thanks!
Comments
Comment #1
erik seifert commentedThis is your PHP Version. json_encode is in PHP5.2 not earlier. But in next release ( today ) there will be a wrapper for this function.
Comment #2
erik seifert commentedPlease check and give me a feedback.
Comment #3
erik seifert commentedAssign to me ;- )
Comment #4
peps commentedDidn't knew that my host disabled json by default.
Thanks for the fix!