Upon attempting to access the format settings for the 'JSON data document' format in the views_ui I get the error below:

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /admin/structure/views/ajax/display/daily_share_graph_json/default/style_options
StatusText: OK
ResponseText: Notice: Undefined index: json_char_encoding in options_form() (line 161 of /var/www/mi_auxillary/sites/all/modules/views_datasource/views/plugins/views_plugin_style_json.inc).

The fix is really simple I think, and a patch is coming up in the first comment.

Comments

phizes’s picture

The patch.

I searched for an existing issue for this error, but could not find one. If it is indeed a duplicate please close this as such.

phizes’s picture

Assigned: phizes » Unassigned
Status: Needs work » Needs review

Forgot to update issue status with the patch comment.

sumithb’s picture

Issue summary: View changes

Hi,

For me with the #default_value' => $this->options['json_char_encoding'] there was no issue in both Dev and QC version. But when I moved this to staging environment this issue came. So is it related to some php settings?

Thanks

Sumith

dobe’s picture

I just hit this. I did the same thing the patch did to fix it. I was going to submit the same exact patch. +1 to #1

ultrabob’s picture

Status: Needs review » Reviewed & tested by the community

Works for me too!

ultrabob’s picture

anthonylindsay’s picture

Status: Reviewed & tested by the community » Fixed

The patch was a bit old, but was easy to apply manually. This one's now committed to the 7.x-1.x branch.
https://www.drupal.org/commitlog/commit/6192/b43cdeeecc091a68216743f5b31...

anthonylindsay’s picture

Status: Fixed » Closed (fixed)

closing.