Call to undefined function mb_check_encoding() in /home/mysitesite/public_html/mysite.org/sites/all/modules/views_datasource/views_json.module on line 166

I get the above error when I try to view the Page URL of a JSON data document formatted View.

And the preview does not show up either. The full error pop-up that appears:

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /en/admin/structure/views/view/myviewname/preview/page/ajax
StatusText: OK
ResponseText:

Fatal error: Call to undefined function mb_check_encoding() in /home/mysitesite/public_html/mysite.org/sites/all/modules/views_datasource/views_json.module on line 166

Thanks for your help!

Comments

tsaks’s picture

Title: Fatal error: Call to undefined function mb_check_encoding() in /home/mysitesite/public_html/mysite.org/sites/all/modules/views_datasource/views_json.module on line 166 » Fatal error: Call to undefined function mb_check_encoding()
Issue summary: View changes
goblin29’s picture

HI tsaks,

Can you please provide me more information on your view. mb_check_encoding() is PHP function supports version greater than 5.1.3.

Cheers

zeip’s picture

Status: Active » Closed (cannot reproduce)

No further information provided, closing the issue. Feel free to open it again if you still experience the problem.

nriitala’s picture

My two cents is to install php-mbstring to get rid of that error message.