Selecting a Pod on the Setup->Pods tab throws a JavaScript syntax error

0

When I select a Pod in the "Choose a Pod" drop-down menu, the Pod Settings form fields appear, but are not populated with any data, so I can't edit an existing Pod. I also see a JavaScript syntax error. The syntax error refers to line 99 in manage_pods.php:

var json = eval('('+msg+')');

It appears that the 'msg' variable, which is the result of an AJAX call returns empty. This issue only occurs on our live server. There is no problem loading a Pod to edit on my local copy. Any ideas?

Thanks in advance for any help,

~Avi

asked Aug 30 '10 at 7:08

avrame

1

add comment
enter at least 15 characters

2 Answers

0

Just talked to him on the chat. Seems like its because hes running php 5.1.6 where JSON isnt baked into PHP until 5.2

answered Aug 30 '10 at 11:36

wesbos

56

add comment
enter at least 15 characters
0

Thanks wesbos. I'll let you know if either updating PHP or using the Services_JSON class works.

answered Aug 30 '10 at 11:39

avrame

1

add comment
enter at least 15 characters