WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
07/30/13 11:36 AM (12 years ago)

Android push error

I get this error in my CP after confirming the push. Everything actually seems to work, phone receives it ok, but get this error each time. Oops, a PHP error was trapped. File: /home/xxxx/xxxxxx/xxxx/xxx/xxx/xxx/bt_pushNotifications_AJAX.php Line: 265 Message: Call to undefined function json_last_error() Looks like maybe a "message delivered" prompt or something isn't working, not sure. Tim
 
Rishav
Code is Art
Profile
Posts: 153
Reg: Jan 26, 2012
Dubai
8,780
like
07/30/13 12:14 PM (12 years ago)
Upgrade your server's php. According to my understanding your php version is lower then 5.3 as json_last_error() was introduced in php 5.3
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
07/30/13 12:18 PM (12 years ago)
Hmmm. Hosted with HostGator. I'll call them. Thanks
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
07/30/13 02:20 PM (12 years ago)
Ok. Had PHP 5.2 as Rishav so brilliantly deduced. Nice job. Switched to PHP 5.3, now I get the confirmation the message was sent, but three errors instead of one. The push did appear to work. Notice: Undefined property: stdClass::$error in /xxxxx/bt_app/bt_pushNotifications_AJAX.php on line 291 Notice: Undefined property: stdClass::$error in /xxxx/bt_app/bt_pushNotifications_AJAX.php on line 307 Notice: Undefined property: stdClass::$error in /xxxxxx/bt_app/bt_pushNotifications_AJAX.php on line 323 Notifications Sent Oops, a PHP error was trapped. File: /xxxxxx/bt_app/bt_pushNotifications_AJAX.php Line: 323 Message: Undefined property: stdClass::$error What does this mean? Tim
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.