• We value your experience with Plesk during 2026
    Please help us understand which Plesk features made your work easier this year, what is still missing and how AI should help you in Plesk ?
    Take this short 5-minutes survey. Your answers go straight into the Plesk roadmap for 2027.

Error while choosing the template - PHP Warning : json_encode(): Invalid UTF-8

AlexandreS

New Pleskian
Hello

I'm having a problem while choosing the template in Web Presence Builder for one specific site:

PHP Warning : json_encode(): Invalid UTF-8 sequence in argument
Acompanhamento da pilha:
#0 [internal function]: Base_SyntaxException::handleError(2, 'json_encode(): ...', '/usr/local/psa/...', 146, Array)
#1 /usr/local/psa/admin/externals/Zend/Json.php(146): json_encode(Array)
#2 /usr/local/psa/admin/externals/Zend/View/Helper/Json.php(67): Zend_Json::encode(Array, NULL, Array)
#3 /usr/local/psa/admin/externals/Zend/Controller/Action/Helper/Json.php(72): Zend_View_Helper_Json->json(Array, false)
#4 /usr/local/psa/admin/externals/Zend/Controller/Action/Helper/Json.php(100): Zend_Controller_Action_Helper_Json->encodeJson(Array, false)
#5 /usr/local/sb/include/SB/Controllers/JsonApi.php(421): Zend_Controller_Action_Helper_Json->sendJson(Array)
#6 /usr/local/psa/admin/externals/Zend/Controller/Action.php(521): SB_Controllers_JsonApi->postDispatch()
#7 /usr/local/psa/admin/externals/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('defaultAction')
#8 /usr/local/psa/admin/externals/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(SB_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#9 /usr/local/sb/include/SB/Application/Web.php(260): Zend_Controller_Front->dispatch()
#10 /usr/local/sb/htdocs/index.php(3): SB_Application_Web::run()
#11 {main}

Centos 6.4 x64
Plesk 11.5

What can be wrong?

Thanks,
Alexandre
 
It looks like that you have locale with incorrect symbols for UTF-8 in some files or some records in database with non-UTF-8 symbols that corrupted json.
Try to find and correct it by yourself or contact Support Team.
 
Back
Top