• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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